libpyqt5_py2.so not accepted in Raspberry PI4

More
6 years 1 month ago #183443 by partec

Attachment not found



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

Please Log in 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.

Please Log in to join the conversation.

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

Please Log in 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

Please Log in to join the conversation.

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

Please Log in to join the conversation.

More
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)

Please Log in to join the conversation.

More
6 years 1 month ago #184070 by scotta
Or, maybe try one pre-compiled for Raspberry Pi.

github.com/scottalford75/LinuxCNC-on-RPi/tree/master/PyQt5

BR

Scott

Please Log in to join the conversation.

More
6 years 1 month ago #184076 by partec
thank you Scott, unfortunately it did not help yet!

it says still

'/usr/lib/arm-linux-gnueabihf/qt5/plugins/designer/libpyqt5_py2.so' is an invalid ELF object (wrong CPU architecture)

should we find a suitable libpyqt5_py2.so may be?

BR

Peter

Please Log in to join the conversation.

More
4 years 6 months ago #241010 by ajsinfotech
Hi cmorley,

I am working on a RPi4.
I manage to build and run Qt5/PyQt5 from source but I get the following:
 
 

Attachment not found



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 to join the conversation.

More
4 years 6 months ago #241021 by tommylight
@ ajsinfotech
No double posting, please, it makes it very hard to follow for members why are trying to help you.

Please Log in to join the conversation.

Time to create page: 0.151 seconds
Powered by Kunena Forum