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.
The following user(s) said Thank You: jmmontes

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.

More
10 Oct 2024 16:49 #311753 by freemoore
Ach, got a bad case of not copying my post text before hitting submit and losing what I'd typed.

Essentially, for me nativecam works still only as a standalone; and goes like this: If I run only the 'ncam.py' command I get the nativecam interface but without connection to the tooltable, and unable to send part programs to lcnc.

However if I include what's supposed to be the setup instructions i.e. ncam.py --ini=/path/to/my/inifile --catalog=mill -t, and start linuxcnc before executing that command, I get ncam as standalone but with the tooltable accessible, and can check the autoupdate box and have it work more or less as it used to when integrated into a tab.

I've had a couple of goes at going through Fernand's instructions that Giovanni attached as a pdf file above but so far no joy; just completed a full reinstall from the lcxnc 2.9.3 iso so have a clean system and will give it another shot.

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

More
10 Oct 2024 19:13 #311765 by Giovanni

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)
 

Sorry, but I am not able to do that.
Regards
Giovanni

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

More
10 Oct 2024 19:17 #311766 by Giovanni
Sorry, I am short of time, but I have write a short note (excuse me it is in italian)
I hope, integrated with the previous test, maybe it could help.

Regards
Giovanni
Attachments:

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

More
19 Oct 2024 10:27 #312587 by Giovanni
@freemoore: if you want, we can try to install/configure together.
Maybe we would be lucky enough to get NativeCam full working on your pc.

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

Time to create page: 0.095 seconds
Powered by Kunena Forum