ubuntu Qt linuxdeployqt打包

1.下載PatchELF 0.9.,https://nixos.org/patchelf.htmlhtml

   安裝:./configurelinux

             makegit

             sudo make installgithub

2.終端命令設置設置環境變量PATH qmake -vubuntu

  export PATH=/home/likewei/Qt5.11.2/5.11.2/gcc_64/bin:$PATH #本身Qt安裝的位置
  export LD_LIBRARY_PATH=/home/likewei/Qt5.11.2/5.11.2/gcc_64/lib:$LD_LIBRARY_PATH
  export QT_PLUGIN_PATH=/home/likewei/Qt5.11.2/5.11.2/gcc_64/plugins:$QT_PLUGIN_PATH
  export QML2_IMPORT_PATH=/home/likewei/Qt5.11.2/5.11.2/gcc_64/qml:$QML2_IMPORT_PATHui

3.下載linuxdeployqt zip格式的源碼包linuxdeployqt-master.zip,https://github.com/probonopd/linuxdeployqtcode

    用Qt打開選擇release模式進行編譯。編譯彈出終端就表明編譯成功。htm

    打開編譯好的文件夾進入bin文件找到這個文件linuxdeployqt,如/home/likewei/lib/build-linuxdeployqt-Desktop_Qt_5_11_2_GCC_64bit-Release/binblog

     並將linuxdeployqt移動到/usr/local/bin文件夾下。ip

     sudo mv /home/likewei/software/build-linuxdeployqt-Desktop_Qt_5_11_2_GCC_64bit-Release/bin/linuxdeployqt /usr/local/bin

ubuntu Qt linuxdeployqt打包

標籤:$path   usr   org   源碼包   終端命令   hub   library   war   elf   

原文地址:https://www.cnblogs.com/ike_li/p/9780740.html

相關文章
相關標籤/搜索