VTK Backplot on RPi 4

More
6 years 3 months ago - 6 years 3 months ago #175818 by scotta
Replied by scotta on topic VTK Backplot on RPi 4
Ok, here you go. VTK package and instructions available at:

scottalford75.github.io/LinuxCNC-on-RPi/...20for%20QtPyVCP.html

Tested on RPi 3. Would be good to check on a RPi 4 as well.

BR

Scott
Last edit: 6 years 3 months ago by scotta.
The following user(s) said Thank You: TurBoss, Nabazul

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

More
6 years 3 months ago - 6 years 3 months ago #176094 by Nabazul
Replied by Nabazul on topic VTK Backplot on RPi 4
Just registered here to thank your for your effort scotta!

Beeing new to linux and linux cnc everything went pretty smooth until i tried to get qtpyvcp running on my raspi 4.

I just wanted to install your deb but i get an error when i try to install it (raspbian buster):
Code:
pi@raspberrypi:~ $ sudo dpkg -i vtk_8.2.0-1_armhf.deb dpkg-deb: error: 'vtk_8.2.0-1_armhf.deb' is not a Debian format archive dpkg: error processing archive vtk_8.2.0-1_armhf.deb (--install): dpkg-deb --control subprocess returned error exit status 2 Errors were encountered while processing: vtk_8.2.0-1_armhf.deb

however i think my previous attempt was pretty similar to yours. I downloaded the VTK 8.2 sources and successfully compiled it using cmake and installed it with make install. (did not change any configs)

I also commented out VTK in the qtpyvcp setup.py file which enabeled me to install it without errors. However when i try to run the sample config i get an
Code:
from vtk_backplot import VTKBackPlot File "/usr/local/lib/python2.7/dist-packages/qtpyvcp-0.3.8+20.g5a772cb5.dirty-py2.7.egg/qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py", line 17, in <module> import vtk.qt ImportError: No module named qt
error.

So next i added your line to my .xsessionrc file (and rebooted). Unfortunately it still does not work. Qtpyvcp seems to be unable to find my VTK install. Is there anything i am missing? Does your .deb package fix this?
Last edit: 6 years 3 months ago by Nabazul.

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

More
6 years 3 months ago #176210 by scotta
Replied by scotta on topic VTK Backplot on RPi 4
Hi, thanks for testing. Can you please try to install the deb package through the Thunar right click menu? This worked for me. The deb package was created with CheckInstall so not the traditional way to create one.

Your compilation looks like it was not configured to build the Qt modules.

I used Ccmake to fully customise the build to change installation paths and included features - Qt modules and Python 2 wrapping.

BR

Scott

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

More
6 years 3 months ago #176245 by Nabazul
Replied by Nabazul on topic VTK Backplot on RPi 4
Right clicking the .deb, selcting "Package Install" (or doulbe left clicking) gives me an
"You cannot get the exclusive lock on the packaging backend. Please close any other legacy packaging tools that may be open."
error. Tried it just after a reboot of the system. To my knowledge there are no other tools open/active. Google says this might be a problem with missing admin rights? Is there any way to "sudo" the right click?

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

More
6 years 3 months ago #176257 by tommylight
Replied by tommylight on topic VTK Backplot on RPi 4
CD to where the package is from the terminal then type
sudo gdebi mane_of_the_package.deb
Replace the name of package with the one you want to install.
Getting that error means there is something wrong with the permissions system wide.

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

More
6 years 3 months ago #176299 by scotta
Replied by scotta on topic VTK Backplot on RPi 4
Yes, something not quite right. User pi in a standard image has sudo rights normally.

From the terminal you can start Thunar file manager with su rights.

$ sudo thunar

But with permissions correct you should not need to do this...

BR

Scott

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

Moderators: KCJ, Lcvette
Time to create page: 0.341 seconds
Powered by Kunena Forum