openscad-raspberrypi icon indicating copy to clipboard operation
openscad-raspberrypi copied to clipboard

Problem running appimage on rpi4

Open matemaciek opened this issue 3 years ago • 3 comments

Hello. I'm trying to run openscad on rpi4. Thanks for providing builds! I'm having some Qt problems.

I'm running QT_DEBUG_PLUGINS=1 ./OpenSCAD-2021.03.26-armhf.AppImage. I got error libQt5EglFSDeviceIntegration.so.5: cannot open shared object file: No such file or directory. After running sudo apt install libqt5gui5 error changed to /lib/arm-linux-gnueabihf/libQt5EglFSDeviceIntegration.so.5: symbol _ZN15QPlatformWindow17startSystemResizeERK6QPointN2Qt6CornerE version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference. Any hints on how to proceed further?

matemaciek avatar May 04 '21 21:05 matemaciek

OK.

Some library is missing; probably from https://github.com/koendv/qt5-opengl-raspberrypi

First, find the library:

wget https://github.com/koendv/qt5-opengl-raspberrypi/releases/download/v5.15.2-1/qt5-opengl-dev_5.15.2_armhf.deb ar x qt5-opengl-dev_5.15.2_armhf.deb tar xvf data.tar.xz find ./usr/ -name libQt5EglFSDeviceIntegration.so.5

-> ./usr/lib/qt5.15.2/lib/libQt5EglFSDeviceIntegration.so.5

This is the library. (I think)

next: get the files from the OpenSCAD appimage

wget https://github.com/koendv/openscad-raspberrypi/releases/download/v1.6/OpenSCAD-2021.03.26-armhf.AppImage chmod +x ./OpenSCAD-2021.03.26-armhf.AppImage ./OpenSCAD-2021.03.26-armhf.AppImage --appimage-extract

This creates a directory squashfs-root with files in it.

next, add the library to the appimage.

copy the library ./usr/lib/qt5.15.2/lib/libQt5EglFSDeviceIntegration.so.5 to ./squashfs-root/usr/lib

cp ./usr/lib/qt5.15.2/lib/libQt5EglFSDeviceIntegration.so.5 ./squashfs-root/usr/lib

Try whether it works now:

cd ./squashfs-root ./AppRun

If it works, re-create the appimage: From the parent directory of ./squashfs-root

wget https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-armhf.AppImage chmod +x ./appimagetool-armhf.AppImage ./appimagetool-armhf.AppImage squashfs-root

This gives you the new OpenScad appimage.

Does this solve the problem?

koen

On Tue, 04 May 2021 14:51:55 -0700 Maciej Sokołowski @.***> wrote:

Hello. I'm trying to run openscad on rpi4. Thanks for providing builds! I'm having some Qt problems.

I'm running QT_DEBUG_PLUGINS=1 ./OpenSCAD-2021.03.26-armhf.AppImage. I got error libQt5EglFSDeviceIntegration.so.5: cannot open shared object file: No such file or directory. After running sudo apt install libqt5gui5 error changed to /lib/arm-linux-gnueabihf/libQt5EglFSDeviceIntegration.so.5: symbol _ZN15QPlatformWindow17startSystemResizeERK6QPointN2Qt6CornerE version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference. Any hints on how to proceed further?

koendv avatar May 04 '21 22:05 koendv

Any hints on how to proceed further?

If you installed Raspberry Pi os "lite" and upgraded to desktop manually, try the following: sudo apt-get install libxcb* libxkbcommon-x11-0

koen

koendv avatar May 05 '21 18:05 koendv

There's a new release, OpenSCAD-2021.09.13-armhf.AppImage, that may solve this problem.

koendv avatar Sep 15 '21 16:09 koendv