difficulty installing simulator Ubuntu 12.04 x64

More
04 Aug 2014 03:10 #49466 by toolmaker69
Hello. I have installed linuxcnc on my 64 bit shop machine using ubuntu 10.04. It works fine.

I am trying to install *the simulator* on my main computer, a 64 bit supermicro with twin xeon processors. I followed the steps on wiki.linuxcnc.org/cgi-bin/wiki.pl?Build_A_Simulator_Manually

dpkg-checkbuilddeps returns silent.

upon ./configure --enable-simulator, I get:

X7DA8:~/git/linuxcnc/src$ ./configure --enable-simulator
checking build toplevel... /home/len/git/linuxcnc
checking installation prefix... run in place
checking for grep... /bin/grep
checking for egrep... /bin/egrep
checking for RT dir... configure: WARNING: --enable-simulator is deprecated. Use --with-realtime=uspace instead.
Using userspace realtime
checking for libudev... yes - version 175
checking for cc version... not specified
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for usability of rdtscll from asm/msr.h... no
checking for usability of linux/hidraw.h... yes
checking for libmodbus3... yes - version 3.0.1
checking for libusb-1.0... yes
checking for module installation directory... configuring for run-in-place
/home/len/git/linuxcnc/rtlib
checking for glib... yes - 2.32.4
checking for GTK 2.4.0 or above... yes - 2.24.10
checking for libgnomeprintui-2.2... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=c++11... no
checking whether g++ supports C++11 features with -std=c++0x... yes
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for install... /usr/bin/install
checking for sed... /bin/sed
checking for ps... /bin/ps
checking for kill... /bin/kill
checking for whoami... /usr/bin/whoami
checking for awk... /usr/bin/awk
checking for insmod... /sbin/insmod
checking for rmmod... /sbin/rmmod
checking for lsmod... /sbin/lsmod
checking for pidof... /bin/pidof
checking for ipcs... /usr/bin/ipcs
checking for fuser... /bin/fuser
checking for mandb... /usr/bin/mandb
checking for python... /usr/bin/python
checking whether to build documentation... no
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for semtimedop... yes
checking for sincos function... yes
checking for __sincos... no
checking for tcl... /usr/lib/tclConfig.sh found
checking for tk... /usr/lib/tkConfig.sh found
checking whether to check for runtime dependencies... yes
checking for BWidget using /usr/bin/tclsh8.5... found
checking for BLT using tclsh8.5... found
checking for img::png using /usr/bin/tclsh8.5... configure: error: not found

I tried make anyway, and got:

X7DA8:~/git/linuxcnc/src$ make
Makefile:64: Makefile.inc: No such file or directory
Makefile:75: *** Makefile.inc must specify RTPREFIX and other variables. Stop.
X7DA8:~/git/linuxcnc/src$

I don't know where to start in fixing this so that I can install.

If anybody could please help me here, I surely would appreciate it.

Thanks.

Please Log in or Create an account to join the conversation.

More
04 Aug 2014 04:41 #49468 by dgarrett
try

sudo apt-get install libtk-img

Please Log in or Create an account to join the conversation.

More
04 Aug 2014 06:42 - 04 Aug 2014 06:49 #49474 by toolmaker69
Thank you!

Now it runs, but I get an error when I choose a sim configuration:

X7DA8:~/git/linuxcnc$ linuxcnc
LINUXCNC - 2.7.0~pre0
Machine configuration directory is '/home/me/git/linuxcnc/configs/sim/axis'
Machine configuration file is 'lathe.ini'
Starting LinuxCNC...
Note: Using POSIX realtime
Unexpected realtime delay on task 0
This Message will only display once per session.
Run the Latency Test and resolve before continuing.


When I try to select latency test from the GUI, the terminal gives me:

X7DA8:~/git/linuxcnc$ linuxcnc
LINUXCNC - 2.7.0~pre0
/home/me/git/linuxcnc/configs/apps/latency/latency-test.demo: line 3: /home/me/git/linuxcnc/scripts/latency-test: Permission denied

I didn't think I needed realtime for the simulator.

EDIT: Looking back, I see I did do a sudo make setuid. Previously wrote that I hadn't. I'm getting confused here. Sorry.
Last edit: 04 Aug 2014 06:49 by toolmaker69. Reason: I did something I thought I didn't.

Please Log in or Create an account to join the conversation.

More
04 Aug 2014 07:14 - 04 Aug 2014 07:18 #49477 by dgarrett

/home/me/git/linuxcnc/configs/apps/latency/latency-test.demo: line 3: /home/me/git/linuxcnc/scripts/latency-test: Permission denied


you found a bug that was just noticed recently:

git.linuxcnc.org/gitweb?p=linuxcnc.git;a...0b0f6c08eb1ed9d44755

you can probably fix with:

chmod 755 /home/me/git/linuxcnc/scripts/latency-test

Last edit: 04 Aug 2014 07:18 by dgarrett. Reason: sudo shouldn't be needed since it is a rip
The following user(s) said Thank You: toolmaker69

Please Log in or Create an account to join the conversation.

More
04 Aug 2014 08:01 #49482 by toolmaker69
Thank you again. That worked.

Now I can run latency test. I get horrible numbers, but I expected that since this is a server running Oracle and a webserver.

I still get the error:

X7DA8:~/git/linuxcnc$ linuxcnc
LINUXCNC - 2.7.0~pre0
Machine configuration directory is '/home/me/git/linuxcnc/configs/sim/axis'
Machine configuration file is 'lathe.ini'
Starting LinuxCNC...
Note: Using POSIX realtime
Unexpected realtime delay on task 0
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Unexpected realtime delay on task 0
This Message will only display once per session.
Run the Latency Test and resolve before continuing.

Shutting down and cleaning up LinuxCNC...
Note: Using POSIX realtime
X7DA8:~/git/linuxcnc$

Is there a place in the configuration where I turn off realtime for simulation? Am I wrong thinking that I should be able to run the simulator on a machine unfit to for actual machining work?

I must be missing something here.

Thanks again.

Please Log in or Create an account to join the conversation.

More
04 Aug 2014 09:09 #49483 by PCW
looks like you are running master (that has uspace realtime), did you try 2.6?

Please Log in or Create an account to join the conversation.

More
04 Aug 2014 09:23 #49484 by dgarrett
Just ignore the error messages when running as a simulator and not driving any hardware.

Please Log in or Create an account to join the conversation.

More
04 Aug 2014 09:28 - 04 Aug 2014 09:34 #49485 by toolmaker69
"looks like you are running master (that has uspace realtime), did you try 2.6? "

No, I just followed the steps in wiki.linuxcnc.org/cgi-bin/wiki.pl?Build_A_Simulator_Manually
I have such a slow connection that it took days to do the install.



"Just ignore the error messages when running as a simulator and not driving any hardware. "

Oh, thanks. Some of the choices (like run program) are greyed out, but I guess I'll need to play with it some more to figure out how to run the simulator.
Last edit: 04 Aug 2014 09:34 by toolmaker69.

Please Log in or Create an account to join the conversation.

More
04 Aug 2014 10:52 #49487 by PCW
If you want to try 2.6 you check out that branch with
git checkout 2.6

in your linuxcnc build directory (one level above src)

and then build
The following user(s) said Thank You: toolmaker69

Please Log in or Create an account to join the conversation.

More
04 Aug 2014 19:59 - 04 Aug 2014 21:15 #49490 by toolmaker69
I'm in unknown territory here.

How do I commit or stash?

X7DA8:~/git/linuxcnc$ git checkout 2.6
error: Your local changes to the following files would be overwritten by checkout:
scripts/latency-test
Please, commit your changes or stash them before you can switch branches.
Aborting
X7DA8:~/git/linuxcnc$

EDIT: did git stash

git checkout seemed to work.

X7DA8:~/git/linuxcnc$ git checkout 2.6
Branch 2.6 set up to track remote branch 2.6 from origin.
Switched to a new branch '2.6'
Last edit: 04 Aug 2014 21:15 by toolmaker69.

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum