Help getting NgcGui working on QtDragon

More
1 year 8 months ago #321955 by Vector
Hello, I've consulted the following guides:
linuxcnc.org/docs/html/gui/ngcgui.html#ngcgui-ini
linuxcnc.org/docs/html/gui/qtvcp-widgets...cp:widgets:qt-ngcgui

I'm on 
Debian: 6.1.0-30-rt-amd64
linuxcnc-uspace: 1:2.9.4

I've attached my .ini file, and my error linuxcnc.report and a screenshot of the last thing I see before it crashes.

I'm trying to use QtDragon: Utils > NgcGui.
I start by clicking "New Tab."
But when I try to select anything, like "Select Preamble," or "Select Subfile," etc, the program crashes.

I'm thinking it's not finding the subdirectories where these files are located.

But in the [RS274NGC] I have:
Code:
SUBROUTINE_PATH = ~/linuxcnc/configs/SaberCNC_10/nc_subroutines:\ ~/linuxcnc/nc_files/examples/ngcgui_lib:\ ~/linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs:\ ~/linuxcnc/nc_files/examples/probe/basic_probe/macros:\ ~/linuxcnc/nc_files/examples/remap-subroutines:\ ~/linuxcnc/nc_files/examples/ngcgui_lib/remap_lib

I believe the files are there in those directories. Though I also understand some of those are symbolic links, could this be a problem??

To prove the file is there -- for example, the preamble specified in *.ini -- I issue to a terminal:

Nontheless, for example, trying to click "Select Preamble," I was going to guess would choose the
and from a terminal, if I issue:
Code:
ls -al ~/linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs/mm_std.ngc

Then I get back:
Code:
-rw-r--r-- 1 root root 248 Jan 25 04:20 /home/maker/linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs/mm_std.ngc

Which seems like it's there.

I'm sorry in advance if this is an obvious fix.

Any help would be great.

Thanks again!

 

Please Log in to join the conversation.

More
1 year 8 months ago #321956 by tommylight

Code:
-rw-r--r-- 1 root root 248 Jan 25 04:20 /home/maker/linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs/mm_std.ngc
It is there, but it is owned by user root, so it will appear non existent to normal users, in your case maker is the normal user that has no access rights to that file.
No idea why or how, but in general, never use "sudo" unless explicitly told to do so.
You can try to manually set the permissions to read that file and see if that works:
Code:
sudo chmod 755 /home/maker/linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs/mm_std.ngc

Please Log in to join the conversation.

More
1 year 8 months ago #321961 by cmorley
I don't see the INI entry in [DISPLAY]:
NGCGUI_SUBFILE_PATH =

Please Log in to join the conversation.

More
1 year 8 months ago #322024 by Vector
Thank you!

cmorley fixed it: that NGCGUI_SUBFILE_PATH was only documented under the linuxcnc.org/docs/html/gui/qtvcp-widgets...cp:widgets:qt-ngcgui because, well, that's where it should be since it's only for Qt.

tommylight, thank you very much, but I think it must be able to see it: since in fact I did "ls -al ... " from the maker user, and there it is. And now, it looks like the program is working. That might've been the problem, but just for future google travelers, in my case it was not.

Thanks again!!

 

Attachment not found

 

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum