NativeCam on LinuxCNC 2.9.3

More
03 Oct 2024 16:39 - 03 Oct 2024 16:44 #311239 by Giovanni
I have seen those problems. When I'll have some spare time, I'll try to fix them.

Since at this moment I have no much time I attach a text I have found recently.
Maybe the author is Fernand.
You have a standalone version of NativeCAM working, so I think you have only to made changes to embed it in LinuxCNC.
And I suppose you can run ncam from any place in the terminal simply by typing ncam.

You could follow that guide in the first 4 points to try to have NativeCAM in a LinuxCNC tab.
Remember to verify your paths.
In my case they were different respect those writtten in the guide and I had to adjust them.
One of the differences is the path:
/usr/share/pyshared/gladevcp
on my Raspberry is:
/usr/lib/python3/dists-packages/gladevcp

You can firstly verify the situation listing the directories.
If you write down the changes you make (I haven't... ) the guide could be written by you.

Regards
Giovanni
Attachments:
Last edit: 03 Oct 2024 16:44 by Giovanni. Reason: grammar
The following user(s) said Thank You: freemoore

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

More
04 Oct 2024 18:47 #311306 by freemoore
Ok, I'll give it a go. I've stripped out references to ncam in my ini file and deleted the folders that were created, and am going back to the start of the installation again, taking notes. If they end up coherent and I work out getting it into a tab, I'll post the results here.

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

More
05 Oct 2024 08:58 - 05 Oct 2024 09:05 #311336 by Giovanni
The following are the lines I have added to my .ini, all into DISPLAY section:

[DISPLAY]
# required NativeCAM item :
NCAM_DIR = ncam

# required NativeCAM item :
PROGRAM_PREFIX = ncam/scripts/

# required NativeCAM item :
EMBED_TAB_NAME = NativeCAM
EMBED_TAB_COMMAND = gladevcp -x {XID} -U --catalog=mill /usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.ui


Note:
/usr/share......ncam.ui is where is located ncam on my computer.
Maybe different from yours. Locate where is your ncam files to create the path.
Mine, IMO,  is not the right place, but for now, since ncam works, I'll not change it.

In the terminal you could type:
which ncam

It will display the full path where is ncam that you run.

Regards
Giovanni
Last edit: 05 Oct 2024 09:05 by Giovanni. Reason: Added suggestions

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

More
05 Oct 2024 09:07 #311339 by andypugh
Is the problem with Python3 or are there Gtk problems too?

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

More
05 Oct 2024 10:59 - 05 Oct 2024 11:02 #311344 by Giovanni
Now NativeCAM is running with Python3 and Gtk "without" problems, at least as standalone.
There are some problems and Gtk deprecations to fix. but it works.
On my Raspberry Pi machine it runs enbedded in LinuxCNC too.
I think all of you could run it as embedded configuring paths etc...

Regards
Giovanni
Last edit: 05 Oct 2024 11:02 by Giovanni.

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

More
05 Oct 2024 18:04 #311362 by andypugh
Have you considered submitting your fixes as a pull-request to the repository that you got it from?
(or, maybe better, to the original FernV repo, unless that has been abandoned)
The following user(s) said Thank You: jmmontes

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

Time to create page: 0.082 seconds
Powered by Kunena Forum