-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qt_prfxpath is wrong if not system/locally built qt is used #216
Comments
At which path is your Qt installation's |
/opt/Qt/5.15.2/gcc_64/plugins |
Where is this build of Qt coming from? Was it originally compiled at |
Qt build is pre-built on another machine and downloaded via aqtinstall (it's a tool that downloads Qt binaries from Qt website and prepares them for usage: extracts etc.). Yes, it was compiled originally at |
OK, so the Which means that we cannot trust |
Currently, I use linuxdeployqt and pass path to qmake as parameter; this approach works well also with both locally built Qt and Qt build downloaded with aqtinstall. It is possible to add qmake to $PATH, it would be important to prepend it and not append it to avoid conflict with other Qt versions, e.g., system one. |
I am running into the same issue: Murmele/Gittyup#579 |
We need to find a reliable way of knowing the path in which Qt' s plugins directory is. Currently we just read @Murmele, @Aksem can you confirm that Places to chek:
|
Here is a small Go program that tries to find the relevant
Paste it into |
Here is an updated version that tries to read the path to Qt from the found
|
Further updated:
Please do test it and please let me know if it works. |
for flatpak we are doing in the cmake: if(FLATPAK)
qt_import_plugins(gittyup INCLUDE ${QT_PLUGINS}) |
Maybe this is overkill, and we should just run with |
For now, we are just relying on
|
to which folder does QTDIR point? |
The folder of your Qt install that contains |
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:
Update: after hardcoding of qt prefix in source code & rebuild of appimagetool, deployment of successful.
The text was updated successfully, but these errors were encountered: