FontConfig support cannot be enabled due to functionality tests!

linux aarch64上编译qt4.8.7源码,报错

greatwall@greatwall-os:~/code/qt-everywhere-opensource-src-4.8.7$ ./configure -opensource -debug -fontconfig --no-webkit
FontConfig support cannot be enabled due to functionality tests!
 Turn on verbose messaging (-v) to ./configure to see the final report.
 If you believe this message is in error you may use the continue
 switch (-continue) to ./configure to continue.

于是加上-v查看详细信息

greatwall@greatwall-os:~/code/qt-everywhere-opensource-src-4.8.7$ ./configure -opensource -debug -fontconfig --no-webkit -v

报错说fontconfig/fontconfig.h找不到,于是整个电脑搜一下

greatwall@greatwall-os:~$ sudo find / -name fontconfig.h

果然,除了我自己下fontconfig源码里的fontconfig.h,整个电脑就搜不到,于是下载fontconfig-dev版

greatwall@greatwall-os:~$ sudo apt-get install libfontconfig1-dev

搞定

参考:

https://www.cnblogs.com/liushui-sky/p/9122005.html

https://www.codenong.com/cs106573215/

https://blog.csdn.net/u011983700/article/details/80048934

 

posted @ 2023-12-21 14:53  飞飞龙  阅读(30)  评论(0)    收藏  举报