qtVCP not working for RPI 2.8 image

More
6 years 2 weeks ago #186529 by geo01005
I was excited to see that there is now a Linuxcnc image for the RPI4. I downloaded and installed and when to try out the QTVCP interface samples. None of them work. Attached is the error report from trying to run the qtDragon configuration.

Any help in better understanding what is going on would be helpful. I assume that some of the libraries this depends on are now found or compatible on the RPI, however it isn't making sense to me.

Can anyone point me in the right direction?

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

More
6 years 1 week ago - 6 years 1 week ago #186530 by persei8
Code:
DEFAULT Resources.py file needs to be compiled at: /usr/share/qtvcp/screens/qtdragon/resources.py (qt_pstat.py:216) Unable to open /usr/share/qtvcp/screens/qtdragon/resources.py for writing
One problem is that user pi can't write to that directory without root privilege. It should be writing to the config directory.
Regardless, it won't work anyway if you want a graphics display. The Rpi uses OpenGL ES and qtvcp uses OpenGL. They are incompatible. I did manage to create a version that uses VTK but it's untested and not yet posted to github. I think one of the other GUIs, like Axis, might run OK, never checked. I would like to run my machine with a pi as well but not having much luck getting the graphics to work.

I should clarify. Linuxcnc works fine on the pi, it's QtDragon with the qt5_graphics library that doesn't.
Last edit: 6 years 1 week ago by persei8. Reason: Clarify

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

More
6 years 1 week ago #186537 by geo01005
I did change the permissions on that folder, but ran into a bunch more problems.

So I suppose for now that qtvcp and RPI won't play nice together?

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

  • BeagleBrainz
  • New Member
  • New Member
More
6 years 1 week ago #186538 by BeagleBrainz
Replied by BeagleBrainz on topic qtVCP not working for RPI 2.8 image
Changing permissions to any directory under /usr is a bad idea.
Yes it is a security issue.
But, another big issue is accidentally deleting things that should not be deleted.

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

More
6 years 1 week ago #186540 by persei8
I just uploaded the files to make QtDragon work with VTK. It's functional, but not as versatile as qt5_graphics. There's also the .deb package you need to install VTK. My ultimate goal was to make it look like qt5_graphics but there are some GL functions not available in VTK. I also explored porting to OpenGL ES but that's another whole can of worms. github.com/persei802/vtk Place them in your config directory, replacing the current ones.
Here's a screenshot of QtDragon on a RPi4
Problems? Let me know.
Jim

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

More
6 years 6 days ago - 6 years 6 days ago #187299 by mgmatteo
Hi Jim,
I installed the rpi4 image and configured for my machine.
So far so good with Axis, but I wanted to use QtDragon so I did the following actions:
> sudo apt install python-vtk6 (no errors)
> downloaded the files in your github and copied in /home/pi/linuxcnc/configs/vtk
> installed the .deb package (double cliked on it and gave permissions)
Now if I run linuxCNC under "My Configurations" I have the 3 qtDragon variants, but none of them are working.
I see the splash screen of LinuxCNC and then it simply doesn't start. No messages.
Any Idea? What can I try to debug it?
Thank you
Last edit: 6 years 6 days ago by mgmatteo.

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

Moderators: cmorley
Time to create page: 0.077 seconds
Powered by Kunena Forum