2.4. Building emc2 (realtime)
- garymcrobertpdx
- Offline
- Elite Member
-
Less
More
- Posts: 164
- Thank you received: 1
09 Jan 2011 01:05 #6561
by garymcrobertpdx
2.4. Building emc2 (realtime) was created by garymcrobertpdx
I have installed emc2 via the live disk and it works well.
Now my goal is to modify the interp_convert.cc file and incorporate in EMC2
the question is how do I proceed. I have used git to down load and create
the emc2-dev directories. I have studied the doc Installing EMC2 particularly
section 2.4. Building emc2 (realtime) .
the sentence "If you have already installed EMC from the Live CD do not use --
prefix/make install. Use the 'run in place' method (the default) instead. "
What is meant by 'run in place' ?
Run these commands in the directory created by git above (usually emc2-dev):
$ cd src
$ ./autogen.sh
$ ./configure
$ make
$ make install-menus
$ sudo make setuid
some experimenting with this sequence of commands produces only error messages.
me@CNC:~/emc2-dev/src$ cd ..
me@CNC:~/emc2-dev$ cd src
me@CNC:~/emc2-dev/src$ ./autogen.sh
./autogen.sh: line 6: autoconf: command not found
me@CNC:~/emc2-dev/src$ ./configure
bash: ./configure: No such file or directory
me@CNC:~/emc2-dev/src$ make
Makefile:55: Makefile.inc: No such file or directory
Makefile:66: *** Makefile.inc must specify RTPREFIX and other variables. Stop.
me@CNC:~/emc2-dev/src$
Again a guiding hand would be appcated, thanks
Now my goal is to modify the interp_convert.cc file and incorporate in EMC2
the question is how do I proceed. I have used git to down load and create
the emc2-dev directories. I have studied the doc Installing EMC2 particularly
section 2.4. Building emc2 (realtime) .
the sentence "If you have already installed EMC from the Live CD do not use --
prefix/make install. Use the 'run in place' method (the default) instead. "
What is meant by 'run in place' ?
Run these commands in the directory created by git above (usually emc2-dev):
$ cd src
$ ./autogen.sh
$ ./configure
$ make
$ make install-menus
$ sudo make setuid
some experimenting with this sequence of commands produces only error messages.
me@CNC:~/emc2-dev/src$ cd ..
me@CNC:~/emc2-dev$ cd src
me@CNC:~/emc2-dev/src$ ./autogen.sh
./autogen.sh: line 6: autoconf: command not found
me@CNC:~/emc2-dev/src$ ./configure
bash: ./configure: No such file or directory
me@CNC:~/emc2-dev/src$ make
Makefile:55: Makefile.inc: No such file or directory
Makefile:66: *** Makefile.inc must specify RTPREFIX and other variables. Stop.
me@CNC:~/emc2-dev/src$
Again a guiding hand would be appcated, thanks
Please Log in or Create an account to join the conversation.
09 Jan 2011 09:03 #6562
by alex_joni
Replied by alex_joni on topic Re:2.4. Building emc2 (realtime)
sudo apt-get build-dep emc2
You are missing some dependencies needed for compiling emc2
You are missing some dependencies needed for compiling emc2
Please Log in or Create an account to join the conversation.
09 Jan 2011 13:17 #6568
by BigJohnT
Replied by BigJohnT on topic Re:2.4. Building emc2 (realtime)
You skipped a step if your following the wiki instructions.
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Ins...ge_already_installed
RIP, run in place is when you run EMC2 from the directory created by git.
Follow this when you want to run the RIP
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Ins...ng_EMC2#Running_emc2
I create a desktop launcher to build EMC when I'm putzing around with it to save all the typing. Pick launch in a terminal and you can see the errors when you make one.
John
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Ins...ge_already_installed
RIP, run in place is when you run EMC2 from the directory created by git.
Follow this when you want to run the RIP
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Ins...ng_EMC2#Running_emc2
I create a desktop launcher to build EMC when I'm putzing around with it to save all the typing. Pick launch in a terminal and you can see the errors when you make one.
John
Please Log in or Create an account to join the conversation.
- garymcrobertpdx
- Offline
- Elite Member
-
Less
More
- Posts: 164
- Thank you received: 1
10 Jan 2011 21:25 #6605
by garymcrobertpdx
Replied by garymcrobertpdx on topic Re:2.4. Building emc2 (realtime)
Thanks that helped a lot. I think emc2-dev is configured now.
So I did the 2.4. Building emc2 (realtime)
Run these commands in the directory created by git above (usually emc2-dev):
$ cd src
$ ./autogen.sh
$ ./configure
Masses of text scrolled down the terminal window concluding with a
message declaring success.
# It seems that ./configure completed successfully. #
# This means that RT is properly installed #
# If things don't work check config.log for errors & warnings #
# #
# Next compile by typing #
# make #
# sudo make setuid #
# #
# Before running the software, set the emc environment: #
# . (top dir)/scripts/emc-environment #
# #
# To run the software type #
# emc
Looks good so far. Do I set set the emc environment before using make or after
and how do i do this?
So I did the 2.4. Building emc2 (realtime)
Run these commands in the directory created by git above (usually emc2-dev):
$ cd src
$ ./autogen.sh
$ ./configure
Masses of text scrolled down the terminal window concluding with a
message declaring success.
# It seems that ./configure completed successfully. #
# This means that RT is properly installed #
# If things don't work check config.log for errors & warnings #
# #
# Next compile by typing #
# make #
# sudo make setuid #
# #
# Before running the software, set the emc environment: #
# . (top dir)/scripts/emc-environment #
# #
# To run the software type #
# emc
Looks good so far. Do I set set the emc environment before using make or after
and how do i do this?
Please Log in or Create an account to join the conversation.
11 Jan 2011 00:47 - 11 Jan 2011 00:47 #6607
by BigJohnT
Replied by BigJohnT on topic Re:2.4. Building emc2 (realtime)
Yea it is like this for dev...
cd src
./autogen.sh
./configure
make
sudo make setuid
. ./emc-environment
emc /home/path/to/your/config/myconfig.ini
You can navigate to your your config directory and do a pwd to find the fully qualified path.
I love it when a plan comes together...
John
cd src
./autogen.sh
./configure
make
sudo make setuid
. ./emc-environment
emc /home/path/to/your/config/myconfig.ini
You can navigate to your your config directory and do a pwd to find the fully qualified path.
I love it when a plan comes together...
John
Last edit: 11 Jan 2011 00:47 by BigJohnT.
Please Log in or Create an account to join the conversation.
- garymcrobertpdx
- Offline
- Elite Member
-
Less
More
- Posts: 164
- Thank you received: 1
12 Jan 2011 01:59 #6637
by garymcrobertpdx
Replied by garymcrobertpdx on topic Re:2.4. Building emc2 (realtime)
When I ran make, near half way through I see about two dozen warnings like this
Building modules, stage 2.
MODPOST 126 modules
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-rtai'
WARNING: "fabs" [/home/me/emc2-dev/src/steptest.ko] undefined!
WARNING: "rt_task_wait_period" [/home/me/emc2-dev/src/rtapi.ko] undefined!
WARNING: "rt_sem_wait" [/home/me/emc2-dev/src/rtapi.ko] undefined!
WARNING: "frexp" [/home/me/emc2-dev/src/rtapi.ko] undefined!
WARNING: "rt_sem_delete" [/home/me/emc2-dev/src/rtapi.ko] undefined!
WARNING: "rt_task_init_cpuid" [/home/me/emc2-dev/src/rtapi.ko] undefined!
Is this trouble or do I ignore them?
thanks
Building modules, stage 2.
MODPOST 126 modules
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-rtai'
WARNING: "fabs" [/home/me/emc2-dev/src/steptest.ko] undefined!
WARNING: "rt_task_wait_period" [/home/me/emc2-dev/src/rtapi.ko] undefined!
WARNING: "rt_sem_wait" [/home/me/emc2-dev/src/rtapi.ko] undefined!
WARNING: "frexp" [/home/me/emc2-dev/src/rtapi.ko] undefined!
WARNING: "rt_sem_delete" [/home/me/emc2-dev/src/rtapi.ko] undefined!
WARNING: "rt_task_init_cpuid" [/home/me/emc2-dev/src/rtapi.ko] undefined!
Is this trouble or do I ignore them?
thanks
Please Log in or Create an account to join the conversation.
12 Jan 2011 12:34 #6644
by BigJohnT
Replied by BigJohnT on topic Re:2.4. Building emc2 (realtime)
Just ignore warnings...
John
John
Please Log in or Create an account to join the conversation.
- garymcrobertpdx
- Offline
- Elite Member
-
Less
More
- Posts: 164
- Thank you received: 1
12 Jan 2011 19:10 #6654
by garymcrobertpdx
Replied by garymcrobertpdx on topic Re:2.4. Building emc2 (realtime)
Getting closer to getting it together but still not working correctly.
when I typed EMC while in the emc2-dev directory I got the EMC2 configuration
selector used the my-mill checked create desk shortcut then OK it created a
my-mill shortcut icon but it fails to do anything other than a pop up.
If I skip check create desk shortcut and click OK I get
me@CNC:~/emc2-dev$ emc
EMC2 - 2.5.0~pre
Machine configuration directory is '/home/me/emc2/configs/my-mill'
Machine configuration file is 'my-mill.ini'
Starting EMC2...
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
custom.hal:11: parameter or pin 'stepgen.7.position-scale' not found
Shutting down and cleaning up EMC2...
Cleanup done
EMC terminated with an error. You can find more information in the log:
/home/me/emc_debug.txt
and
/home/me/emc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
me@CNC:~/emc2-dev$
Looks like its using files from the preexisting emc2 directory and
did not like the stock tool.tbl contents. Also seems to have used
my custom hal file and had a problem with stepgen.7 which worked
with EMC2 from the live disk. debug.txt contained nothing that I
found useful.
Where did I screw things up this time?
when I typed EMC while in the emc2-dev directory I got the EMC2 configuration
selector used the my-mill checked create desk shortcut then OK it created a
my-mill shortcut icon but it fails to do anything other than a pop up.
If I skip check create desk shortcut and click OK I get
me@CNC:~/emc2-dev$ emc
EMC2 - 2.5.0~pre
Machine configuration directory is '/home/me/emc2/configs/my-mill'
Machine configuration file is 'my-mill.ini'
Starting EMC2...
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
custom.hal:11: parameter or pin 'stepgen.7.position-scale' not found
Shutting down and cleaning up EMC2...
Cleanup done
EMC terminated with an error. You can find more information in the log:
/home/me/emc_debug.txt
and
/home/me/emc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
me@CNC:~/emc2-dev$
Looks like its using files from the preexisting emc2 directory and
did not like the stock tool.tbl contents. Also seems to have used
my custom hal file and had a problem with stepgen.7 which worked
with EMC2 from the live disk. debug.txt contained nothing that I
found useful.
Where did I screw things up this time?
Please Log in or Create an account to join the conversation.
12 Jan 2011 20:10 #6657
by BigJohnT
Replied by BigJohnT on topic Re:2.4. Building emc2 (realtime)
You forgot to do a
. ./scripts/emc-environment
in the terminal window before you typed in emc I'd bet.
This sets the environment variables to point to the RIP (run in place) instead of the installed version.
John
. ./scripts/emc-environment
in the terminal window before you typed in emc I'd bet.
This sets the environment variables to point to the RIP (run in place) instead of the installed version.
John
Please Log in or Create an account to join the conversation.
- garymcrobertpdx
- Offline
- Elite Member
-
Less
More
- Posts: 164
- Thank you received: 1
13 Jan 2011 00:38 #6658
by garymcrobertpdx
Replied by garymcrobertpdx on topic Re:2.4. Building emc2 (realtime)
Tried again
me@CNC:~/emc2-dev$ . ./scripts/emc-environment
me@CNC:~/emc2-dev$ emc
EMC2 - 2.5.0~pre
Machine configuration directory is '/home/me/emc2/configs/my-mill'
Machine configuration file is 'my-mill.ini'
Starting EMC2...
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
custom.hal:11: parameter or pin 'stepgen.7.position-scale' not found
Shutting down and cleaning up EMC2...
Traceback (most recent call last):
File "/home/me/emc2-dev/bin/hal_manualtoolchange", line 57, in <module>
nf.start(app); nf.makecommand(app, "_", _)
File "/home/me/emc2-dev/lib/python/nf.py", line 119, in start
source_lib_tcl(r, "support.tcl")
File "/home/me/emc2-dev/lib/python/nf.py", line 111, in source_lib_tcl
r.tk.call("source", os.path.join(tcl_libdir, f))
KeyboardInterrupt
Cleanup done
EMC terminated with an error. You can find more information in the log:
/home/me/emc_debug.txt
and
/home/me/emc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
Hmmm looks the like the same errors. Is some thing in my emc2 dir screwing
things up?
me@CNC:~/emc2-dev$ . ./scripts/emc-environment
me@CNC:~/emc2-dev$ emc
EMC2 - 2.5.0~pre
Machine configuration directory is '/home/me/emc2/configs/my-mill'
Machine configuration file is 'my-mill.ini'
Starting EMC2...
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
custom.hal:11: parameter or pin 'stepgen.7.position-scale' not found
Shutting down and cleaning up EMC2...
Traceback (most recent call last):
File "/home/me/emc2-dev/bin/hal_manualtoolchange", line 57, in <module>
nf.start(app); nf.makecommand(app, "_", _)
File "/home/me/emc2-dev/lib/python/nf.py", line 119, in start
source_lib_tcl(r, "support.tcl")
File "/home/me/emc2-dev/lib/python/nf.py", line 111, in source_lib_tcl
r.tk.call("source", os.path.join(tcl_libdir, f))
KeyboardInterrupt
Cleanup done
EMC terminated with an error. You can find more information in the log:
/home/me/emc_debug.txt
and
/home/me/emc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
Hmmm looks the like the same errors. Is some thing in my emc2 dir screwing
things up?
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds