V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
coolcokel
V2EX  ›  问与答

Linux 下 QT 程序打包发布遇到问题

  •  
  •   coolcokel · 2019-12-02 14:04:36 +08:00 · 1860 次点击
    这是一个创建于 1850 天前的主题,其中的信息可能已经有所发展或是发生改变。

    系统信息: Distributor ID: Kylin Description: Kylin 4.0.2 Release: 4.0.2 qt 开发版本 5.13

    打包工具: 1.linuxdeployqt --version linuxdeployqt 5 (commit 37631e5), build 631 built on 2019-01-25 22:47:58 UTC 2.appimagetool --version appimagetool, continuous build (commit 225057b), build 1874 built on 2018-10-21 12:21:27 UTC 3. patchelf --version patchelf 0.9 打包: 新建一个目录将编译好的可执行文件拷贝到新建目录下执行命令 sudo linuxdeployqt DetectCamera 报错: linuxdeployqt DetectCamera linuxdeployqt 5 (commit 37631e5), build 631 built on 2019-01-25 22:47:58 UTC FHS-like mode with PREFIX, fhsPrefix: "/home/firstuser" app-binary: "/home/firstuser/outputDir2/DetectCamera" appDirPath: "/home" relativeBinPath: "firstuser/bin/DetectCamera" ERROR: findDependencyInfo: "ldd: /usr/lib/x86_64-linux-gnu/qt4/plugins/platforms/libqxcb.so: \xE6\xB2\xA1\xE6\x9C\x89\xE9\x82\xA3\xE4\xB8\xAA\xE6\x96\x87\xE4\xBB\xB6\xE6\x88\x96\xE7\x9B\xAE\xE5\xBD\x95\n" ERROR: getBinaryRPaths: "objdump: /usr/lib/x86_64-linux-gnu/qt4/plugins/platforms/libqxcb.so\xEF\xBC\x9A\xE6\x97\xA0\xE6\xAD\xA4\xE6\x96\x87\xE4\xBB\xB6\n" 段错误 (核心已转储) 这种问题怎么解决?

    1 条回复    2019-12-02 14:06:45 +08:00
    coolcokel
        1
    coolcokel  
    OP
       2019-12-02 14:06:45 +08:00
    系统信息:Distributor ID: Kylin Description: Kylin 4.0.2 Release: 4.0.2
    qt 开发版本 5.13

    打包工具:
    1.linuxdeployqt --version linuxdeployqt 5 (commit 37631e5), build 631 built on 2019-01-25 22:47:58 UTC
    2.appimagetool --version appimagetool, continuous build (commit 225057b), build 1874 built on 2018-10-21 12:21:27 UTC
    3. patchelf --version patchelf 0.9
    打包:
    新建一个目录将编译好的可执行文件拷贝到新建目录下执行命令 sudo linuxdeployqt DetectCamera
    报错:
    linuxdeployqt DetectCamera linuxdeployqt 5 (commit 37631e5), build 631 built on 2019-01-25 22:47:58 UTC FHS-like mode with PREFIX, fhsPrefix: "/home/firstuser" app-binary: "/home/firstuser/outputDir2/DetectCamera" appDirPath: "/home" relativeBinPath: "firstuser/bin/DetectCamera"
    ERROR:
    findDependencyInfo: "ldd: /usr/lib/x86_64-linux-gnu/qt4/plugins/platforms/libqxcb.so: \xE6\xB2\xA1\xE6\x9C\x89\xE9\x82\xA3\xE4\xB8\xAA\xE6\x96\x87\xE4\xBB\xB6\xE6\x88\x96\xE7\x9B\xAE\xE5\xBD\x95\n" ERROR: getBinaryRPaths: "objdump: /usr/lib/x86_64-linux-gnu/qt4/plugins/platforms/libqxcb.so\xEF\xBC\x9A\xE6\x97\xA0\xE6\xAD\xA4\xE6\x96\x87\xE4\xBB\xB6\n" 段错误 (核心已转储) 这种问题怎么解决?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1286 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:51 · PVG 01:51 · LAX 09:51 · JFK 12:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.