Publishing QT Applications on ARM64 Linux

Publishing QT applications on ARM64 Linux follows a process similar to that on Windows, utilizing the Linuxdeployqt tool;1. Download the packaging tool

git clone https://github.com/probonopd/linuxdeployqt.git or download the source code from GitHub https://github.com/probonopd/linuxdeployqt/tree/master Download Appimagetool-aarch64.AppImage https://github.com/AppImage/AppImageKit/releases

2. Compile the packaging tool source code

If QT is installed successfully, qmake will be configured by default

qmake -v

and the version information will appear;

Navigate to the folder where the linuxdeployqt source code is located

Use the qmake and make commands to compile in the linuxdeployqt folder

qmakemake

After compilation, a bin folder will be generated in the linuxdeployqt source folder, which will contain the linuxdeployqt executable

sudo cp linuxdeployqt /usr/local/bin linuxdeployqt --version

3. Install patchelf

sudo apt install patchelf patchelf --version

4. Configure Appimagetool

Locate the downloaded file appimagetool-aarch64.AppImage

mv appimagetool-aarch64.AppImage appimagetool sudo chmod 777 appimagetool sudo cp appimagetool /user/local/bin

5. Package the application

linuxdeployqt simple_live_qtwidgets -appimage -bundle-non-qt-libs simple_live_qtwidgets: This is the name of your QT application's executable. You need to replace it with the actual path and name of your QT application's executable file. For example, if your application executable is named myapp and is located in the /home/user/myappdir directory, you should enter /home/user/myappdir/myapp here. -appimage: This option indicates that linuxdeployqt should package the application in AppImage format. Keep this option if you want to generate an AppImage package. -bundle-non-qt-libs: This option allows linuxdeployqt to attempt to bundle non-Qt libraries into the application package. Use this option if you have non-Qt dependency libraries that need to be included in the package.

Leave a Comment