/opt/qtsdk-2010.02/qt/lib/libQtGui.so: undefined reference to `FcFreeTypeQueryFace'
2011-04-16 13:59
971 查看
/opt/qtsdk-2010.02/qt/lib/libQtGui.so: undefined reference to `FcFreeTypeQueryFace'
2010-05-10 20:52
2010-05-10 20:52
If you get 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 the libfontconfig `FcFreeTypeQueryFace' method. Prior to version 2.4.2 it either did not exist or perhaps the signature was changed in version 2.4.2. Not sure which, but an updated version needs to be installed to: '''/usr/lib/libfontconfig.so.1''' How to Fix Download sources 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 cd fontconfig-2.4.2 ./configure -prefix=/usr make make install <- Run as root or use sudo After doing this, you do not need to add the fontconfig library location to your Qt project’s .pro file. LIBS += -L/opt/fontconfig-2.4.2/lib This has worked for me on RHEL 5.3. I hope this helps! -Ed |
相关文章推荐
- QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法
- QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法
- qt 安装错误 undefined reference to "FcFreeTypeQueryFace
- 编译QT时出现lib/libQtGui.so: undefined reference to `ts_read_raw'的解决办法
- 编译QT时出现lib/libQtGui.so: undefined reference to `ts_read_raw'的解决办法
- 编译QT时出现lib/libQtGui.so: undefined reference to `ts_read_raw'的解决办法
- arm编译QT4.8.5时出现lib/libQtGui.so: undefined reference to `ts_read_raw'的解决办法
- /lib/libQtGui.so: undefined reference to `ts_read_raw'
- QT编译出错解决 libQtCore.so: undefined reference to `QInotifyFileSystemWatcherEngine::create()'
- libopencv_videoio.so: undefined reference to `av_free@LIBAVUTIL_52'
- caffe 编译/usr/local/lib/libopencv_highgui.so: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0'
- /host/src1/2/Linux-PAM-1.1.1/libpam/.libs/libpam.so: undefined reference to `getutline'
- boost.numpy编译报错:undefined reference to `PyInt_FromLong' libboost_numpy.so: undefined reference to `PyCObject_AsVoidPtr'
- libQtCore.so: undefined reference to `clock_gettime'
- FreeBSD下编译Fontconfig时提示src/.libs/libfontconfig.so: undefined reference to `xmlCreatePushParserCtxt' 的解决办法
- build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)'
- ../lib//libscsdblog.so: undefined reference to `pthread_atfork'
- ../thelib/libthelib.so: undefined reference to `dlopen'
- FC14下错误 /usr/bin/ld: libvalhalla-test.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2'
- Qt移植-undefined reference to `freeifaddrs'