QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法
2009-10-10 17:36
465 查看
下载了qt-sdk-linux-x86-opensource-2009.04.bin,在CentOS 5.2下安装后,可以正常启动qt creator了。可是编译qt自带的example程序的时候却发现链接有错误:
/opt/qtsdk-2009.04/qt/lib/libQtGui.so:undefined reference to 'FcFreeTypeQueryFace'
经搜索,跟fontconfig的版本有关系,CentOS 5.2上的是2.4.1,据说要2.4.2以上版本才可以。不过我直接从 http://www.fontconfig.org/release/ 下载最新的2.7.3的源码。
解开后按照INSTALL文件里的说明安装了fontconfig,然后就可以正常编译程序啦:
进入解开的fontconfig目录,可以看到INSTALL文件等
./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man
make
make install
/opt/qtsdk-2009.04/qt/lib/libQtGui.so:undefined reference to 'FcFreeTypeQueryFace'
经搜索,跟fontconfig的版本有关系,CentOS 5.2上的是2.4.1,据说要2.4.2以上版本才可以。不过我直接从 http://www.fontconfig.org/release/ 下载最新的2.7.3的源码。
解开后按照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' 的解决方法
- `QtValidLicenseForCoreModule' does not name a type 错误的解决
- MySQL "You can't specify target table 'X' for update in FROM clause" 错误解决方法
- Qt错误:类中使用Q_OBJECT宏导致undefined reference to vtable for "xxx::xxx"错误的原因和解决方法
- QT 编译出现 undefined reference to `vtable for xx' 的解决方法
- Linux_ubuntu环境下Qt无法编译代码显示-1: error: cannot find -lGL错误的解决方法
- Linux PC和ARM版的QT环境设置及到ARM移植&常见错误解决方法
- 〖Linux〗打开qtcreater出现错误的解决方法
- Unity3d NGUI doesn't have a clipped shader version for SoftClip 和 AlphaClip错误的解决方法
- 编译VTK6.1.0在vtkGUISupportQt-6.1.dll项上出现错误'GLdouble' : redefinition的解决方法
- git 错误: Unable to find remote helper for 'https'解决方法
- MySQL Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (utf8_general_ci,IMPLICIT) for operation 'UNION' 错误解决方法
- Ubuntu mysql 的Access denied for user 'root'@'localhost' (using password: YES错误解决方法
- Linux PC和ARM版的QT环境设置及到ARM移植&常见错误解决方法
- 解决Qt for Embedded Linux data directory is not owned by user 0h 错误提示 问题
- Linux环境下MySQL报Table 'xxx' doesn't exist错误解决方法