go-appimage: qt_prfxpath is wrong if not system/locally built qt is used

I try to use appimagetool for creating AppImage with Qt app by running following command: appimagetool -s deploy ../install/usr/share/applications/*.desktop. For the build of the app, I use pre-compiled Qt installed using aqtinstall.

I’ve checked qt_prfxpath in libQtCore5.so in the same way as go-appimage detects it, and it is a path from the system where Qt was built, and it doesn’t correspond to the path in the system where the app is built.

As result, creating AppImage fails:

2022/08/08 10:43:42 qt_prfxpath: /home/qt/work/install
2022/08/08 10:43:42 Got qt_prfxpath but it does not contain 'plugins'
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xafff4a]

Update: after hardcoding of qt prefix in source code & rebuild of appimagetool, deployment of successful.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 18 (11 by maintainers)

Most upvoted comments

Interesting approach, thanks for sharing!