Embedding ngcgui in EMC 2.4.x
22 Apr 2012 22:24 #19446
by submicro
Replied by submicro on topic Re:Embedding ngcgui in EMC 2.4.x
I get this error when I start LinuxCNC.
"<simp.ngc> must be in search path
Current Directory: /home/submicro/linuxcnc/configs/MiniMill_inch
Search Path:
../../../nc_files
../../../nc_files/ngcgui_lib
../../../nc_files/ngcgui_lib/utilitysubs
Checking for:
[RS274NGC]SUBROUTINE_PATH in ini file:
/home/submicro/linuxcnc/configs/MiniMill_inch/MiniMill.ini
Restart after fixing file"
Help appreciated
SubMicro
"<simp.ngc> must be in search path
Current Directory: /home/submicro/linuxcnc/configs/MiniMill_inch
Search Path:
../../../nc_files
../../../nc_files/ngcgui_lib
../../../nc_files/ngcgui_lib/utilitysubs
Checking for:
[RS274NGC]SUBROUTINE_PATH in ini file:
/home/submicro/linuxcnc/configs/MiniMill_inch/MiniMill.ini
Restart after fixing file"
Help appreciated
SubMicro
Please Log in or Create an account to join the conversation.
23 Apr 2012 11:19 - 23 Apr 2012 11:20 #19454
by Rick G
Replied by Rick G on topic Re:Embedding ngcgui in EMC 2.4.x
Looks like you need to change the location of the sub files or the search path to them.
This may help...
linuxcnc.org/docs/html/gui/ngcgui.html
I often put mine in nc_files
Rick G
This may help...
linuxcnc.org/docs/html/gui/ngcgui.html
I often put mine in nc_files
Rick G
Last edit: 23 Apr 2012 11:20 by Rick G.
Please Log in or Create an account to join the conversation.
23 Apr 2012 21:51 #19472
by submicro
Replied by submicro on topic Re:Embedding ngcgui in EMC 2.4.x
That link is what I followed trying to get it working. I'm using 10.04 with linuxcnc2.5 The sim works but, getting it working with my actual setup has proved difficult. In my ini file I used relative paths i.e.
SUBROUTINE_PATH = ../../../nc_files/ngcgui_lib:../../../nc_files/ngcgui_lib/utilitysubs
USER_M_PATH = ../../../nc_files/ngcgui_lib/mfiles
The file it's looking for are in those paths. I checked.
SubMicro
SUBROUTINE_PATH = ../../../nc_files/ngcgui_lib:../../../nc_files/ngcgui_lib/utilitysubs
USER_M_PATH = ../../../nc_files/ngcgui_lib/mfiles
The file it's looking for are in those paths. I checked.
SubMicro
Please Log in or Create an account to join the conversation.
23 Apr 2012 23:26 #19473
by BigJohnT
Replied by BigJohnT on topic Re:Embedding ngcgui in EMC 2.4.x
Some of the sample subroutines rely on other subroutines so you have to have them all in the correct place. Comment out all of the subroutines except a simple one and see if you can get the syntax correct. I just use the actual full path to mine... attach your ini file for us to look at.
John
John
Please Log in or Create an account to join the conversation.
24 Apr 2012 08:51 - 24 Apr 2012 12:58 #19482
by ArcEye
Replied by ArcEye on topic Re:Embedding ngcgui in EMC 2.4.x
Hi
When I wrote my ngcgui subs, I pretty soon came to the conclusion that the only thing that actually works, is using the directory pointed to by PROGRAM_PREFIX =
For that reason, all my subs are in their own sub-directories but sym-linked to ~/emc2/ngc in my case.
For the same reason I specify explicitly the paths eg
NGCGUI_SUBFILE = ~/emc2/ngc/pcd.ngc
This setup gives me zero problems, I never touch any files in ~/emc2/ngc and do any editing or code changes to the subs in their own named sub-directories, which ensures I am always sure exactly what it is I am editing.
regards
I would advise, don't, unless you know what PWD is and where the routine searching is starting from, it is a short cut to madness.In my ini file I used relative paths
When I wrote my ngcgui subs, I pretty soon came to the conclusion that the only thing that actually works, is using the directory pointed to by PROGRAM_PREFIX =
For that reason, all my subs are in their own sub-directories but sym-linked to ~/emc2/ngc in my case.
For the same reason I specify explicitly the paths eg
NGCGUI_SUBFILE = ~/emc2/ngc/pcd.ngc
This setup gives me zero problems, I never touch any files in ~/emc2/ngc and do any editing or code changes to the subs in their own named sub-directories, which ensures I am always sure exactly what it is I am editing.
regards
Last edit: 24 Apr 2012 12:58 by ArcEye.
Please Log in or Create an account to join the conversation.
24 Apr 2012 13:18 #19486
by BigJohnT
Replied by BigJohnT on topic Re:Embedding ngcgui in EMC 2.4.x
In 2.4 I came to the same conclusion as you about the directory structure and used the directory pointed to by program prefix. In 2.5 it is much better behaved and I placed all my subroutines in the /subroutine directory under emc2.
In my ini I have:
[DISPLAY]
...
NGCGUI_SUBFILE = /home/john/emc2/subroutines/face.ngc
[RS274NGC]
SUBROUTINE_PATH = /home/john/emc2/subroutines
John
In my ini I have:
[DISPLAY]
...
NGCGUI_SUBFILE = /home/john/emc2/subroutines/face.ngc
[RS274NGC]
SUBROUTINE_PATH = /home/john/emc2/subroutines
John
Please Log in or Create an account to join the conversation.
24 Apr 2012 13:47 #19488
by ArcEye
Replied by ArcEye on topic Re:Embedding ngcgui in EMC 2.4.x
I will have to try that John.
Because mine 'just work', I haven't done anything to them since I wrote them.
A lot of features were consolidated and repaired in 2.5, this is probably one of them.
regards
Because mine 'just work', I haven't done anything to them since I wrote them.
A lot of features were consolidated and repaired in 2.5, this is probably one of them.
regards
Please Log in or Create an account to join the conversation.
24 Apr 2012 14:05 #19490
by BigJohnT
Replied by BigJohnT on topic Re:Embedding ngcgui in EMC 2.4.x
Yea, if it ain't broke don't fix it is my motto too...
John
John
Please Log in or Create an account to join the conversation.
24 Apr 2012 18:36 #19505
by submicro
Replied by submicro on topic Re:Embedding ngcgui in EMC 2.4.x
Thanks guys that did the trick! No more relative paths for me
Please Log in or Create an account to join the conversation.
25 Apr 2012 08:51 #19514
by Rick G
Replied by Rick G on topic Re:Embedding ngcgui in EMC 2.4.x
Glad you got it sorted out.
Rick G
Rick G
Please Log in or Create an account to join the conversation.
Time to create page: 0.279 seconds