麒麟系统上静态编译QT,configure失败

最近在折腾国产麒麟系统玩,想在上边写个QT小程序,但是因为默认的QT库是动态链接的,发给别人玩就不方便,就打算做一次静态编译。configure的时候一直报错,configure命令如下:

./configure -v \
-static -silent -release -force-debug-info \
-fontconfig -qt-freetype \
-gui -widgets \
-sql-sqlite \
-ssl \
-qt-zlib \
-qt-libpng  -qt-xcb  \
-qt-libjpeg \
-nomake tests -no-opengl -skip qttools -skip qtsensors -skip qtconnectivity -skip qtserialport -skip qtmultimedia \
-opensource \
-nomake examples -no-iconv \
-prefix /usr/local/qt_5_9_9_static

 报错信息如下:

ERROR: Feature 'fontconfig' was enabled, but the pre-condition '!config.win32 && !config.darwin && features.system-freetype && libs.fontconfig' failed.

回答

看下config的对应的log文件,报错的信息有可能不是最终的原因,在文件中找线索

以上是麒麟系统上静态编译QT,configure失败的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>