PathPilot V2 source code

More
4 years 1 month ago #251396 by automata
Replied by automata on topic PathPilot V2 source code
I got the v2.9.0 source code recently.

Tried to compile using the following steps on a debian stretch with preempt-rt kernel (Linux stretchrt64 4.9.0-19-rt-amd64)
installed Python version is: /v2.9.0$ python --version
Python 2.7.13

cd v2.9.0/linuxcnc/src
./autogen.sh
./configure --with-realtime=uspace --enable-non-distributable
make
sudo make setuid

These steps go well. But there is nothing populated in the rtlib directory. No sign of file hal_lib.so needed to start HAL .

Should I post the source somewhere for others to try and help?
I can be careful to post only the GPL portion of the source from the linuxcnc directory that tormach sent.
-automata

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

More
4 years 1 month ago #251400 by automata
Replied by automata on topic PathPilot V2 source code
I got the rtlib dir populated by running

make modules
This command compiles all the HAL modules and populates them in the rtlib directory.

Next, I am trying to run any sim configuration. This is turning out to be a little problematic as it errors out with:
Traceback (most recent call last):
  File "/v2.9.0/linuxcnc/bin/axis", line 64, in <module>
    from gremlin_draw import GremlinDraw, GlDrawColors
ImportError: No module named gremlin_draw

I think this is related to the library and python path setting as the files gremlin_draw.py is definitely there in the folder /v2.9.0/linuxcnc/lib/python/gremlin.

Figuring out how to check on python path and library path on a rip-install.
will keep this thread posted about my progress.
 

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

More
4 years 1 month ago #251403 by automata
Replied by automata on topic PathPilot V2 source code
after adding /v2.9.0/linuxcnc/lib/python/gremlin to environment variable PYTHONPATH by running following command:
export PYTHONPATH=/v2.9.0/linuxcnc/lib/python/gremlin:$PYTHONPATH

I get stuck on the next error in launching axis:

Traceback (most recent call last):
File "/v2.9.0/linuxcnc/bin/axis", line 3205, in <module>
o = MyOpengl(widgets.preview_frame, width=400, height=300, double=1, depth=1)
File "/v2.9.0/linuxcnc/bin/axis", line 377, in __init__
self.set_eyepoint(5.)
File "/v2.9.0/linuxcnc/lib/python/support/glnav.py", line 120, in inner
return f(self, *args, **kw)
File "/v2.9.0/linuxcnc/lib/python/support/glnav.py", line 112, in __exit__
self.fcall()
File "/v2.9.0/linuxcnc/lib/python/gremlin/gremlin_draw.py", line 152, in _redraw
raise NotImplementedError
NotImplementedError

Looks like axisUI and more specifically gremlin is a no-go to run the sim configs with axis UI based on the changes made by tormach.
Next step: Try to run axisUI without gremlin? OR try to run another UI like touchy or keystick (anything that does not use gremlin)?

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

More
4 years 1 month ago #251405 by automata
Replied by automata on topic PathPilot V2 source code
got xemc to work by changing the DISPLAY = axis to DISPLAY=-xemc in the axis.ini file in the configs/sim/axis/axis.ini file. Dont know how to use xemc though ;-). Learning.

If someone still wants the v2.9.0 code that I got from tormach, I can comb through the files and ensure that I am not violating any tormach copyrights (by deleting the images and other copyrighted tormach material) and share the source as a repo somewhere?
The following user(s) said Thank You: tivoi, Shu

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

More
4 years 1 month ago #251478 by sagreen
Replied by sagreen on topic PathPilot V2 source code
I was able to get LinuxCNC to compile on a fresh install of Mint v18. From what I can tell, if you want all of the pathpilot parts to work as well you need a successful make from the pathpilot source directory. Making from there configures and executes the LinuxCNC make. I got all of this working on Mint v18, but still have not gotten it to work starting with a working pathpilot install.

Scott...

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

More
4 years 1 month ago #251971 by sagreen
Replied by sagreen on topic PathPilot V2 source code
I didn't think that there was actually anything that was not re-distributable in the source code that you get from Tormach with the pathpilot source USB card.

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

Time to create page: 0.112 seconds
Powered by Kunena Forum