我正在使用appimage http://appimage.org将我的应用程序打包到一个独立的可执行程序中。
我在debian测试lenny的时候做了这个。
我的应用程序使用了许多开放源码库(qt,pythonqt 4/5 gsl ),使用Qt4一切正常。我可以在debian上编译我的应用程序,并创建一个在mint (使用xfce)上平稳运行的appdir映像。
当我切换到Qt5时,它就停止工作了。
现在,appimage运行在debian上,而不是在mint上,我得到了以下错误:
This application failed to start because it could not find or load the Qt platform plugin "xcb".
Available platform plugins are: eglfs, kms, linuxfb, minimal, minimalegl, offscreen, xcb.
Reinstalling the application may fix this problem.
Aborted请注意,messege是不一致的:第一,它说我缺少xcb,而不是可用的maks。
我在我的应用程序usr/lib树中复制了插件目录。我在主机apt-get install libx11-xcb1上安装了xcb
我的AppRun文件如下所示:
#!/bin/bash
HERE="$(dirname "$(readlink -f "${0}")")"
cd "${HERE}/usr/"
export LD_LIBRARY_PATH="${HERE}/usr/lib/:${LD_LIBRARY_PATH}"
export PATH="${HERE}/usr/bin:${PATH}"
export QT_PLUGIN_PATH="${HERE}/usr/lib"
exec "${HERE}/usr/bin/Neutrino" "$@"
cd -我遗漏了什么?
发布于 2016-04-17 20:22:27
许多Qt5应用程序(如Krita、Scribus和子表)都是以AppImages的形式分发的,因此这是绝对有可能的。
可能您缺少了一些需要捆绑在AppImage中的组件。特别是,Qt插件需要捆绑在AppImage中才能工作。
有关Qt5.5应用程序打包为这里的示例,请参阅AppImage。
请注意,通常建议使用旧的基本系统(如CentOS 6)进行编译,因为生成的AppImages将与更多的发行版兼容,而不仅仅是最新的发行版。
如果您发布到您的项目的链接或在https://github.com/probonopd/AppImages/issues上打开一个问题,我可以给您提供更详细的指导。
https://stackoverflow.com/questions/36640826
复制相似问题