'Ubuntu Packaging - How to package a QT GUI binary along side a console binary as one AppImage?
I have made a Qt GUI c++ application that is a wrapper around a console binary. The Qt application guide the user into creating some data, feed that data to the console binary and display the result.
I need to deploy the application and console binaries to an Ubuntu 18.04 without internet access and the application need to be a double-click with icon executable. The end-user won't be computer savvy.
I have gathered that an AppImage should do the trick. However, there are restrictions I don't know how to overcome:
- I am not authorised to integrate the console binary in the source code of the wrapper app. They will stay as two separate binaries.
- It is my first deployment ever and most tutorial/forum discussion on AppImage assume knowledge I don't have about installation on Linux.
I'm able to create an AppImage of the wrapper application alone with linuxdeployqt. (even if the resulting AppImage doesn't respect the font-familly of the original binary)
./linuxdeployqt-continuous-x86_64.AppImage ./WarpperApp-v0.8/usr/share/applications/WarpperApp.desktop -appimage
I tried to simply add the console binary in the /usr/bin of the directory needed to build the wrapper app AppImage with linuxdeployqt.
./linuxdeployqt-continuous-x86_64.AppImage ./WarpperApp-v0.9/usr/share/applications/WarpperApp.desktop -appimage
However, the libraries of the console binary aren't loaded in and even if it did, I don't know what would be the new path to call the console binary. I use the C++ function system( "path/to/console/binary path/to/data") in order to make the call.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
