我有一个64位的Ubuntu机器。我已经成功地管理使用下面的配置选项在64位机器上编译静态32位Qt
-static
-release
-prefix /opt/Qt-5.8.1
-confirm-license
-nomake examples
-nomake tests
-opensource
-qt-xcb
-no-sql-psql
-skip qt3d
-fontconfig
配置和编译QT5 静态库现在,我想创建一个32位的静态Qt的构建。所以,我在配置时添加了一个额外的-xplatform linux-g++-32
选项。
但是,我得到了以下两个(无关?)错误
ERROR: Feature 'fontconfig' was enabled, but the pre-condition '!config.win32 && !config.darwin && features.system-freetype && libs.fontconfig' failed.
ERROR: The OpenGL functionality tests failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2], QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
我想我在这里失踪的小东西 - 像失踪的32位开发库。但是我不知道我应该在64位机器上安装什么来启用32位交叉编译。
如果上述错误有一个快速和简单的解决方法,那么请让我知道。
谢谢 Abhinav。
交叉编译Qt是一种噩梦。我建议在一个实际的32位系统上做(我使用VMware来运行一个32位的Linux发行版)。 –