help installing on RPI 4

More
5 years 6 months ago #204538 by Aaroncnc
Hello,

I have tried reading other threads and have gotten a bit of info and solved a few road blocks but i cant seem to get it working.
To start.
I downloaded the RPI image www.linuxcnc.org/iso/linuxcnc-2.8.1-pi4.zip
I then ran an axis sim to confirm it works and i have a config directory
I then cloned github.com/kcjengr/qtpyvcp into a folder called "qt from source from git"
I then edited setup.py to comment out VTK
I then downloaded and installed github.com/scottalford75/LinuxCNC-on-RPi...1-qt5py2-1_armhf.deb
Then i modified my .bash.hrc file with
Code:
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages/vtk:$PYTHONPATH export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/python2.7/site-packages/vtk:$LD_LIBRARY_PATH
then ran
Code:
sudo apt-get install -y notification-daemon
Restarted system
then ran
Code:
sudo apt-get install libhdf5-dev libnetcdf-cxx-legacy-dev libjsoncpp-dev libgl2ps-dev

Then from inside the source directory for Qt i ran "pip install --editable ."
I then copied the configs from the source into linux cnc config.

I can run the QtPyVCP test no problem.
But if i select any other option i get the error "No module named VTK"
I am using this guide as my source for my steps
scottalford75.github.io/LinuxCNC-on-RPi/...20for%20QtPyVCP.html

I feel i may have missed something obvious but i cant find where.
Edit
If i run
Code:
sudo dpkg --list | grep vtk
I get
Code:
libvtk6.3 6.3.0+dfsg2-2+b6 vtk 7.1.1_qt5py2-1

If i run
Code:
"$ python >>> import PyQt5"
I get no errors

Edit 2

I found that i somehow had pypy2.7 running so i removed it and restarted my system
not sure removing that solved it...
Seems when i run linux cnc from cmd line is the difference.
Now i can get the VTK test to run.
But the open GL test fails with the following
Code:
pi@linuxcnc:~ $ linuxcnc LINUXCNC - 2.8.1 Machine configuration directory is '/home/pi/linuxcnc/configs/qtdragon' Machine configuration file is 'xyz-metric.ini' Starting LinuxCNC... File: tool.tbl Unrecognized line skipped: ;Tool Pocket X Offset Y Offset Z Offset Diameter Remark Found file(REL): ./hallib/core_sim_3.hal Note: Using POSIX realtime Found file(REL): ./hallib/spindle_sim.hal Found file(REL): ./hallib/simulated_home.hal qt5ct: using qt5ct plugin qt5ct: using qt5ct plugin [qtpyvcp.lib.decorators][WARNING] Deprecation Warning: The widget "qtpyvcp.widgets.display_widgets.dro_widget.DROWidget" has been deprecated and will be removed in the future. Reason: new DRO implementation. Replaced by: DroLabel. (decorators.py:25) qt5ct: D-Bus global menu: no [qtpyvcp.app.launcher][CRITICAL] Unhandled exception in qbackplot.py line 490 (launcher.py:38) Traceback (most recent call last): File "/home/pi/qt source from git/qtpyvcp/qtpyvcp/widgets/display_widgets/gcode_backplot/qbackplot.py", line 490, in initializeGL self.realize() File "/home/pi/qt source from git/qtpyvcp/qtpyvcp/widgets/display_widgets/gcode_backplot/qbackplot.py", line 327, in realize glcanon.GlCanonDraw.realize(self) File "/home/pi/qt source from git/qtpyvcp/qtpyvcp/widgets/display_widgets/gcode_backplot/glcanon.py", line 459, in realize self.hershey = hershey.Hershey() File "/usr/lib/python2.7/dist-packages/hershey.py", line 115, in __init__ glEnd() error: (1282, 'invalid operation')

Still stuck

Please Log in to join the conversation.

More
5 years 6 months ago #204663 by scotta
Replied by scotta on topic help installing on RPI 4
I don't think the OpenGL back plot will work on the Pi. Hence the reason for the VTK version.

Please Log in to join the conversation.

More
5 years 6 months ago #204672 by Aaroncnc
Replied by Aaroncnc on topic help installing on RPI 4
So is it possible to use the included configs?
I select the Brender example and i get the same crash as the open gl test.

Also if u run linux cnc from the desktop shortcut i get the error VTK not found but if i run it from terminal its fine.

Please Log in to join the conversation.

More
5 years 6 months ago #204811 by Aaroncnc
Replied by Aaroncnc on topic help installing on RPI 4
So i installed probe basic. (note the QtPyVCP doc said it is preinstalled but it was not or i misunderstood Project URL: Included with QtPyVCP )
It seems to run great and looks awesome, BUT the ATC screen is blank and i am getting some messages in terminal.
Code:
pi@linuxcnc:~ $ linuxcnc LINUXCNC - 2.8.1 Machine configuration directory is '/home/pi/linuxcnc/configs/probe_basic' Machine configuration file is 'probe_basic.ini' Starting LinuxCNC... File: tool.tbl Unrecognized line skipped: ;Tool Pocket Z Offset Diameter Remark twopass:invoked with <> options twopass:found ./hallib/core_sim_5.hal twopass:found ./hallib/spindle_sim.hal twopass:found ./hallib/simulated_home_probe_basic.hal twopass:found ./hallib/sim_cannon.hal Note: Using POSIX realtime motion.c: Creating unlock hal pins for joint 4 qt5ct: using qt5ct plugin qt5ct: D-Bus system tray: no QEGLPlatformContext: Failed to make temporary surface current, format not updated (3002) qt5ct: D-Bus global menu: no qt5ct: custom style sheet is disabled QEGLPlatformContext: Failed to make temporary surface current, format not updated (3002) QEGLPlatformContext: Failed to make temporary surface current, format not updated (3002) QEGLPlatformContext: eglMakeCurrent failed: 3002 QQuickWidget: Failed to make context current QQuickWidget::resizeEvent() no OpenGL context QEGLPlatformContext: eglMakeCurrent failed: 3002 QQuickWidget: Failed to make context current QQuickWidget: Attempted to render scene with no context QEGLPlatformContext: Failed to make temporary surface current, format not updated (3002) QEGLPlatformContext: eglMakeCurrent failed: 3002 composeAndFlush: makeCurrent() failed QEGLPlatformContext: eglMakeCurrent failed: 3002 composeAndFlush: makeCurrent() failed QEGLPlatformContext: eglMakeCurrent failed: 3002 composeAndFlush: makeCurrent() failed QEGLPlatformContext: eglMakeCurrent failed: 3002 composeAndFlush: makeCurrent() failed QEGLPlatformContext: eglMakeCurrent failed: 3002 composeAndFlush: makeCurrent() failed QEGLPlatformContext: eglMakeCurrent failed: 3002 composeAndFlush: makeCurrent() failed

Also still cant seem to figure out why If i run linux cnc via desktop shortcut i get VTK not found error but if i run it via console it works fine.

Please Log in to join the conversation.

More
5 years 6 months ago #204902 by Aaroncnc
Replied by Aaroncnc on topic help installing on RPI 4
I found out why i could only get linux cnc to work via terminal and not any shortcuts or launchers.
I had to modify ".profile" the same way i did ".bashrc"

Still stuck on the ATC screen being blank as in my above comment.

Please Log in to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum