Installing QtVCP
I installed the Master brand of linuxcnc. It's using python3..
I built runandplace.
after I changed :
and runln -s /home/mycom/linuxcnc/lib/python/qtvcp/plugins/qtvcp_plugin.py /usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python
But have error:/home/mycom/linuxcnc/scripts/rip-environment designer -qt=5
Can you help me check it?Qtvcp python plugin found:', '/usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python/qtvcp_plugin.py')
Traceback (most recent call last):
File "/usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python/qtvcp_plugin.py", line 23, in <module>
from qtvcp.plugins.simplewidgets_plugin import *
File "/home/mycom/linuxcnc/lib/python/qtvcp/plugins/simplewidgets_plugin.py", line 5, in <module>
from qtvcp.widgets.simple_widgets import PushButton
File "/home/mycom/linuxcnc/lib/python/qtvcp/widgets/simple_widgets.py", line 17, in <module>
from qtvcp.widgets.widget_baseclass import (_HalWidgetBase,
File "/home/mycom/linuxcnc/lib/python/qtvcp/widgets/widget_baseclass.py", line 19, in <module>
import hal
File "/home/mycom/linuxcnc/lib/python/hal.py", line 30, in <module>
import _hal
ImportError: /home/mycom/linuxcnc/lib/python/_hal.so: undefined symbol: _Py_FalseStruct
thank all
Please Log in or Create an account to join the conversation.
Are you sure you compiled for python3?
Please Log in or Create an account to join the conversation.
I can load to qt designer now.But I don't see linuxcnc widgets in the QT designer.ln -s /home/mycom/linuxcnc/lib/python/qtvcp/plugins/qtvcp_plugin.py /usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python```
I have libpyqt5_py2.so in
QT Designer worked with V2.8./usr/lib/x86_64-linux-gnu/qt5/plugins/designer folder.
thank you so much
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- ajsinfotech
- Offline
- Senior Member
- Posts: 76
- Thank you received: 1
I am working on a RPi4.
I manage to build and run Qt5/PyQt5 from source but I get the following:
Where can I find the libpyqt5_py2.so pluging binary for RPi4?
If not, where can a find the source and build instructions to build a brand new libpyqt5_py2.so plugin for RPi4?
I think it is a platform conflict, so it seems making a rebuild for RPi could be work.
Thanks!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Funny you say that. I mucked about with a pi today trying to use the linuxcnc-uspace package from testing branch. I thought I had it working until I tried to run qtplasmac and it failed with a missing python3-gst1.0 dependency which does not exist in testing branch.I seem to recall that there was an issue with the python-opengl module that prevents QtVCP being used on a Pi. I think it was built using OpenGL ES and QtVCP requires OpenGL Desktop. I have no clue as to whether this has changed recently.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
packages.debian.org/bookworm/python3-gst-1.0
Please Log in or Create an account to join the conversation.
I suspect it was a red herring anyway.
Phill's mention of opengl is more likely the issue.
Sorry but I've blown away that version on the pi (along with 20 others while playing.....) so can't share it
And besides I was also using apt-pinning to get to the bookworm packages
Despite the amazing latency I got from the pi using this thread
forum.linuxcnc.org/9-installing-linuxcnc...cnc?start=130#238020
They are not terribly useful for me becasue at present:
1. they can't run qtplasmac and;
2 I can't install ethercat master.
I think Item 2 is related to the odd kernel 5.15 the Pi uses which is in between bullseye and bookworm. I was going to try installing it on a plain non preempt_rt version of the pi. But I don't understand how to make the pi load the preempt_rt image in Debian once its installed.
Please Log in or Create an account to join the conversation.