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

2019-12-02 14:04:36 +08:00
 coolcokel

系统信息: 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" 段错误 (核心已转储) 这种问题怎么解决?

1830 次点击
所在节点    问与答
1 条回复
coolcokel
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" 段错误 (核心已转储) 这种问题怎么解决?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/625071

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX