Galaxy Kirin ARM64 Feiteng FT2000 linuxdeployqt linux package qt

Download linuxdeployqt-aarch64.AppImage

Download link linuxdeployqt-aarch64.AppImage

Qt release notes

Galaxy Kirin arm64 comes with Qt 4.8.7 and Qt5.6.1
View linuxdeployqt source code to distinguish between versions

		   if (qmakePath.isEmpty()) {
           // Try to find a version specific qmake first
           // openSUSE has qmake for Qt 4 and qmake-qt5 for Qt 5
           // Qt 4 on Fedora comes with suffix -qt4
           // http://www.geopsy.org/wiki/index.php/Installing_Qt_binary_packages
           if(qtDetected == 5){
               qmakePath = QStandardPaths::findExecutable("qmake-qt5");
               LogDebug() << "qmake 5";
           } else if(qtDetected == 4){
               qmakePath = QStandardPaths::findExecutable("qmake-qt4");
               LogDebug() << "qmake 4";
           }

           if(qmakePath.isEmpty()){
             // The upstream name of the binary is "qmake", for Qt 4 and Qt 5
             qmakePath = QStandardPaths::findExecutable("qmake");
           }
       }

Galaxy Kirin arm64 /usr/bin directory by default only qmake qmake-qt4 without qmake-qt5
manually create a shortcut for /usr/lib/aarch64-linux-gnu/qt5/bin/qmake and rename it to qmake-qt5
execute the following command

sudo ln -s /usr/lib/aarch64-linux-gnu/qt5/bin/qmake /usr/bin/qmake-qt5 

After the execution is completed, the verification method is as follows:
qmake versions
If the Qt4 version is used by default, there is no need to perform the step of creating a shortcut because the default qmake-qt4 has

Copy linuxdeployqt to the bin directory

After linuxdeployqt-aarch64.AppImage is downloaded, move to the /usr/local/bin directory and rename it

	sudo mv linuxdeployqt-aarch64.AppImage /usr/local/bin/linuxdeployqt 

Verify
linuxdeployqt verification
that the version information output indicates that the packager has been

Bale

Prepare the compiled program

Simplest example

You’ll need to provide the basic structure of an AppDir which should look something like this:

└── usr
├── bin
│ └── your_app
├── lib
└── share
├── applications
│ └── your_app.desktop
└── icons
└──
└──
└── apps
└── your_app.png

Execute the following command

linuxdeployqt your_app.AppDir/your_app.desktop -verbose=3 -appimage 

Will output your_app-aarch64.AppImage

For details, please refer to the official instructions

Other references

linuxdeployqt github
patchelf
AppImageKit
other platform packaging tutorial

If you have other questions, please pay attention to the official account

Welcome to pay attention to the QR code of the official account

Guess you like

Origin blog.csdn.net/wl362002000/article/details/114034024