libpyqt5_py2.so not accepted in Raspberry PI4

More
6 years 1 month ago - 6 years 1 month ago #183443 by partec


EMBED_TAB_NAME= qtscreen
EMBED_TAB_COMMAND= halcmd loadusr -Wn qtvcp_embed qtvcp -d -c qtvcp_embed -x {XID} cam_align

result is a blank tab "qtscreen" in AXIS
Last edit: 6 years 1 month ago by partec.

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

More
6 years 1 month ago #183534 by cmorley
I'm sure you will need to compile a version for the rasberry pi.
All the supplied versions are X86 based.
The following user(s) said Thank You: partec

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

More
6 years 1 month ago - 6 years 1 month ago #183870 by partec
is there also an insider tip, please?
where and how to start?
Last edit: 6 years 1 month ago by partec.

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

More
6 years 1 month ago #183883 by cmorley
Sorry, this is Kurt's writeup about what we found out to do for x86:
gist.github.com/KurtJacobson/34a2e45ea2227ba58702fc1cb0372c40
The following user(s) said Thank You: partec

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

More
6 years 1 month ago #183911 by partec
thanks Chris, that seems interesting for adjustment, Peter

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

More
6 years 1 month ago - 6 years 1 month ago #183973 by partec
image for Raspberry PI4

linuxcnc-2.8.0-pi4
Linux linuxcnc 4.19.71-rt24-v7l+ #4 SMP PREEMPT RT Thu Apr 30 22:00:15 CDT 2020 armv7l GNU/Linux
(libpython-dev is included in the installation)

then according to Kurt's writeup about what was found out to do for x86:
gist.github.com/KurtJacobson/34a2e45ea2227ba58702fc1cb0372c40

pi@linuxcnc:~ $ wget sourceforge.net/projects/pyqt/files/sip/...4.19/sip-4.19.tar.gz

pi@linuxcnc:~ $ tar xzvf sip-4.19.tar.gz

pi@linuxcnc:~ $ cd sip-4.19

pi@linuxcnc:~/sip-4.19 $ python configure.py

pi@linuxcnc:~/sip-4.19 $ sudo make install

pi@linuxcnc:~/sip-4.19 $ sudo make install
make[1]: Verzeichnis „/home/pi/sip-4.19/sipgen“ wird betreten
cp -f sip /usr/bin/sip
make[1]: Verzeichnis „/home/pi/sip-4.19/sipgen“ wird verlassen
make[1]: Verzeichnis „/home/pi/sip-4.19/siplib“ wird betreten
cp -f sip.so /usr/lib/python2.7/dist-packages/sip.so
strip /usr/lib/python2.7/dist-packages/sip.so
cp -f /home/pi/sip-4.19/siplib/sip.h /usr/include/python2.7/sip.h
cp -f /home/pi/sip-4.19/sip.pyi /usr/lib/python2.7/dist-packages/sip.pyi
make[1]: Verzeichnis „/home/pi/sip-4.19/siplib“ wird verlassen
cp -f sipconfig.py /usr/lib/python2.7/dist-packages/sipconfig.py
cp -f /home/pi/sip-4.19/sipdistutils.py /usr/lib/python2.7/dist-packages/sipdistutils.py
pi@linuxcnc:~/sip-4.19 $ cd ./..

$ qtchooser -list-versions
bash: qtchooser: command not found

$ export QT_SELECT=qt5
$ qmake --version
bash: qmake: command not found

Build and install PyQt5

$ wget sourceforge.net/projects/pyqt/files/PyQt...Qt5_gpl-5.7.1.tar.gz
$ tar xzvf PyQt5_gpl-5.7.1.tar.gz
$ cd PyQt5_gpl-5.7.1
$ python configure.py
$ make
$ sudo make install

pi@linuxcnc:~ $ cd PyQt5_gpl-5.7.1
pi@linuxcnc:~/PyQt5_gpl-5.7.1 $ python configure.py
Error: Use the --qmake argument to explicitly specify a working Qt qmake.
pi@linuxcnc:~/PyQt5_gpl-5.7.1 $

pi@linuxcnc:~/PyQt5_gpl-5.7.1 $ make
make: *** Es wurden keine Ziele angegeben und keine „make“-Steuerdatei gefunden. Schluss.
pi@linuxcnc:~/PyQt5_gpl-5.7.1 $

was not possible to do

Launch Qt5 Designer
Use the PYQTDESIGNERPATH environment variable to tell QtDesiner where to look for the plugins
$ export PYQTDESIGNERPATH='/path/to/plugin/directory/'

Launch Qt5 Designer
$ qtchooser -run-tool=designer -qt=5

arm-linux-gnueabihf
/usr/lib/arm-linux-gnueabihf/qt5/plugins/designer/

libpyqt5.so
libqquickwidget.so
libqwebview.so

found

/usr/lib/python2.7/dist-packages/qtvcp/designer/x86_64/qt5.7/

but
pi@linuxcnc:~ $ locate qtvcp_plugin.py
pi@linuxcnc:~ $

link not possible

libpyqt5_py2.so 08.07.2018

says

'/usr/lib/arm-linux-gnueabihf/qt5/plugins/designer/libpyqt5_py2.so' is an invalid ELF object (wrong CPU architecture)
Last edit: 6 years 1 month ago by partec.

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

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