linux 下QT 程序编译链接两个错误
来源:互联网 发布:学会c语言能干什么 编辑:程序博客网 时间:2024/04/26 23:00
一、/opt/qtsdk-2010.02/qt/lib/libQtGui.so:undefined reference to `FcFreeTypeQueryFace'
If youget this error under RHEL or CentOS 5.x:
/home/esutton/qtsdk-2010.02/qt/lib/libQtGui.so:undefined reference to `FcFreeTypeQueryFace'
collect2:ld returned 1 exit status Apparently libQtGui.so fails trying to use thelibfontconfig `FcFreeTypeQueryFace' method.
Prior toversion 2.4.2 it either did not exist or perhaps the signature was changed inversion 2.4.2. Not sure which, but an updated version needs to be installed to:'''/usr/lib/libfontconfig.so.1'''
How to Fix
Downloadsources and configure to install where it expects to find it:
cd/usr/src
wget http://fontconfig.org/release/fontconfig-2.4.2.tar.gz
tar -zxf fontconfig-2.4.2.tar.gz
cdfontconfig-2.4.2
./configure-prefix=/usr
make
makeinstall
二、/opt/qtsdk-2010.02/qt/lib/libQtGui.so:Undefined reference to “FT_Library_SetLcdFilter”
原因是缺少freetype或者版本过低,下载安装freetype-2.4.4:
./configure--sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man
make
make install
- linux 下QT 程序编译链接两个错误
- Linux下静态链接Qt程序
- Linux下两个常见的编译错误
- linux下解决QT编译错误
- linux下程序的编译和链接
- linux下C程序的编译链接
- Qt在VC6.0下编译出现链接错误
- Linux/Ubuntu下 静态编译Qt程序
- Linux/Ubuntu下 静态编译Qt程序
- Linux 下 静态编译Qt程序
- Linux/Ubuntu下 静态编译Qt程序
- Linux/Ubuntu下 静态编译Qt程序
- Linux/Ubuntu 下编译安装Qt(和减少Qt编译时间的两个网页,没太懂)
- 再论Windows下配置编译Qt静态链接库 - 错误,永远是错误
- linux下QT程序编译时的错误:QMAKESPEC has not been set, so configuration cannot be deduced.
- Linux x86_64平台下程序链接错误和-fPIC
- 两个常见Qt编译错误的解决
- linux下编译Qt程序出现 cannot find –lGL
- Jquery 获得控件值的方法
- 10-20-30原则
- POJ 1861 NetWork (Kruskal算法)
- Reading notes of 'The Art of Multiprocessor Programming' -- Chapter 1 & Appendix B
- pageheap.exe使用方法
- linux 下QT 程序编译链接两个错误
- 换行和回车
- Android共享文件的几种方式(我这里只总结到了SQLiteDatabase、SharedPreferences、ContentProvider)
- DML(数据操纵语言)
- JDBC
- 毕业十年
- SQLite 入门教程(二)创建、修改、删除表
- awk使用
- Ant入门教程