QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法
2010-08-05 11:45
399 查看
下载了qt-sdk-linux-x86-opensource-2009.02.bin,在redhat linux as5 下安装后,可以正常启动qt creator了。可是编译qt自带的example程序的时候却发现链接有错误:
/opt/qtsdk-2009.02/qt/lib/libQtGui.so:undefined reference to 'FcFreeTypeQueryFace'
经搜索,跟fontconfig的版本有关系,AS5上的是2.4.1,据说要2.4.2以上版本才可以。不过我直接从 http://www.fontconfig.org/release/ 下载最新的2.6.0的源码。
解开后按照INSTALL文件里的说明安装了fontconfig,然后就可以正常编译程序啦:
进入解开的fontconfig目录,可以看到INSTALL文件等
./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man
make
make install
/opt/qtsdk-2009.02/qt/lib/libQtGui.so:undefined reference to 'FcFreeTypeQueryFace'
经搜索,跟fontconfig的版本有关系,AS5上的是2.4.1,据说要2.4.2以上版本才可以。不过我直接从 http://www.fontconfig.org/release/ 下载最新的2.6.0的源码。
解开后按照INSTALL文件里的说明安装了fontconfig,然后就可以正常编译程序啦:
进入解开的fontconfig目录,可以看到INSTALL文件等
./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man
make
make install
相关文章推荐
- QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法
- QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法
- QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法
- QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法
- QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法
- linux(ubuntu)Mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost'解决方法
- git 错误: Unable to find remote helper for 'https'解决方法
- Incorrect string value: '/xEF/xBC/x88200...' for column 错误提示解决方法
- Ubuntu mysql 的Access denied for user 'root'@'localhost' (using password: YES错误解决方法
- `QtValidLicenseForCoreModule' does not name a type 错误的解决
- linux QT 安装出现No space left on device错误 解决方法
- QT 编译出现 undefined reference to `vtable for xx' 的解决方法
- Qt编译错误:undefinedreferenceto`vtable for 。。。。'的解决
- 编译QT5.0.1的错误“qtbase\\configure.exe' 不是内部或外部命令,也不是可运行的程序或批处理文件”的解决方法
- 解决Qt for Embedded Linux data directory is not owned by user 0h 错误提示 问题
- Linux PC和ARM版的QT环境设置及到ARM移植&常见错误解决方法
- Linux PC和ARM版的QT环境设置及到ARM移植&常见错误解决方法
- MySQL "You can't specify target table 'X' for update in FROM clause" 错误解决方法
- Unity3d NGUI doesn't have a clipped shader version for SoftClip 和 AlphaClip错误的解决方法
- Linux环境下MySQL报Table 'xxx' doesn't exist错误解决方法