InfraPlatform

CentOS 5.2 + Qt 4.5 + FcFreeTypeQueryFace /

IT오이시이 2009. 11. 6. 08:45
728x90
[ERROR CASE]

Install  PyQt-x11-gpl-4.6.1

   /usr/local/qt/lib/libQtGui.so: undefined reference to `FcFreeTypeQueryFace'
   collect2: ld returned 1 exit status
   make[1]: *** [pylupdate4] 오류 1
   make[1]: Leaving directory `/doc_download/qt/PyQt-x11-gpl-4.6.1/pylupdate'
   make: *** [all] 오류 2
   
[Fix It]
install fontconfig
  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=/opt/fontconfig-2.4.2
   make
   make install
setting libconfconfig.so
   cd /usr/lib
   old library backup
   mv libfontconfig.so libfontconfig.so.b
   mv libfontconfig.so.1 libfontconfig.so.1.b
link new library
   ln -s /opt/fontconfig-2.4.2/lib/libfontconfig.so.1.2.0 ./libfontconfig.so.1
   ln -s /opt/fontconfig-2.4.2/lib/libfontconfig.so.1.2.0 ./libfontconfig.so
check library
   ll ./libfontconfig.so*

[Reference]
   1. http://theitdepartment.wordpress.com/2009/03/15/centos-qt-fcfreetypequeryface/
   2. http://theitdepartment.wordpress.com/2009/03/15/centos-qt-fcfreetypequeryface/
728x90
반응형