Install QtPyVCP RPI4 kernel PREEMPT_RT 64 bits

More
27 Jul 2022 11:15 #248406 by rbobey1989
Hello, I have been doing some tests with qtpyvcp on the Raspberry RPI4 model B, linuxcnc 2.9 master branch and kernel PREEMPT_RT 64 bits, everything works great, I have installed qt 5.15.2 and pyqt5, I have verified the installation of qtpyvcp with the commands:
qtpyvcp -i
qtpyvcp -h
and all good, I have executed the installation script of qt designer plugins as follows:

cd ~/dev/qtpyvcp/pyqt5designer/Qt5.15.2-64bit/python3.9/
sudo ./install.sh

editing install.sh
x86_64 to aarch64 in the script_path

my problem is the following, the linuxcnc widgets are not loaded in qtdesigner, it gives me a widgets failed error even though the libpyqt5.so file is copied to:

usr/lib/x86_64-linux-gnu/qt5/plugins/designer

qtdesigner recognizes it, but as failed widgets.

By the way, the qtpyvcp installation process followed is the one described in:

www.qtpyvcp.com/install/index.html

So if possible if someone can shed some light on this case I would appreciate it, regards

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

More
27 Jul 2022 11:51 - 27 Jul 2022 14:08 #248410 by TurBoss
Hello

libpyqt5.so is built for x86 it cant run on the pi


To get widgets in designer you may need to build pyqt5libs for this from source

Details can be found here github.com/kcjengr/qtpyvcp/blob/master/p...building_libpyqt5.md

Should work on the pi but i have not tested

edit: details are for python2 but can be adapted to work on python2
 
Last edit: 27 Jul 2022 14:08 by TurBoss.

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

More
28 Jul 2022 06:00 #248509 by elovalvo
Similarly to what is reported here

www.qtpyvcp.com/install/bullseye.html

you should run these commands

cd ~/dev/qtpyvcp/pyqt5designer/Qt5.15.2-64bit/python3.9/
sudo ./install.sh

and then fix everything with

cp -r ~/dev/qtpyvcp/linuxcnc ~/

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

More
28 Jul 2022 13:48 - 28 Jul 2022 14:23 #248534 by ftree
I thought libpyqt5.so was in python3-pyqt5
/usr/lib/aarch64-linux-gnu/qt5/plugins/designer/libpyqt5.so
packages.debian.org/bookworm/arm64/python3-pyqt5/filelist

Could always look at altering the debian/rules to make just libpyqt5.so from source to latest packaging.
# pyqt 5.15.7+dfsg-1
git clone https://salsa.debian.org/python-team/packages/pyqt5.git
cd pyqt5
git checkout 49d94553
mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --yes' debian/control
dch --force-distribution -b -v 5.15.7+dfsg-1 --distribution unstable "built by me"
# maybe alter debian/rules with sed
# fakeroot ./debian/rules binary
dpkg-buildpackage -us -uc -b
Last edit: 28 Jul 2022 14:23 by ftree.

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

More
31 Jul 2022 20:25 #248754 by rbobey1989
hello I've been a bit busy although I've managed to make progress on this topic, I've compiled PyQt5 from source, surprise, everything works correctly, or rather almost everything lol, the widgets load without problems and I've followed the qtpyvcp tutorials until it was necessary use GcodeBackplot to my surprise I do not have it inside the widgets, however I used VKBackPlot only as a test but qt_designer does not display it and linuxcnc reports an error or several I imagine it has to do with the version of opengl 3.2 that I should not have, I attach report from linuxcnc, thanks everyone in advance
Attachments:

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

More
31 Jul 2022 21:07 #248755 by TurBoss
Hello,

you can try this

export MESA_GL_VERSION_OVERRIDE=3.3
export MESA_GLSL_VERSION_OVERRIDE=330

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

More
12 Aug 2022 16:41 #249602 by elovalvo

hello I've been a bit busy although I've managed to make progress on this topic, I've compiled PyQt5 from source, surprise, everything works correctly, or rather almost everything lol, the widgets load without problems and I've followed the qtpyvcp tutorials until it was necessary use GcodeBackplot to my surprise I do not have it inside the widgets, however I used VKBackPlot only as a test but qt_designer does not display it and linuxcnc reports an error or several I imagine it has to do with the version of opengl 3.2 that I should not have, I attach report from linuxcnc, thanks everyone in advance



I recently recompiled the VTK and I think this version has solved your problem.

The file vtk-9.2.20220811.dev0-cp39-cp39-linux_aarch64.whl can be downloaded from here:

drive.google.com/file/d/1-v3B5zBLeG8blJI...v4t/view?usp=sharing

To install, run from the terminal

pip install ./vtk-9.2.20220811.dev0-cp39-cp39-linux_aarch64.whl
The following user(s) said Thank You: rodw

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

Moderators: KCJLcvette
Time to create page: 0.105 seconds
Powered by Kunena Forum