/opt/qtsdk-2010.02/qt/lib/libqtgui.so:undefined reference to ' Fcfreetypequeryface ' 2010-05-10 20:52
If You have this error under RHEL or CentOS 5.x:/home/esutton/qtsdk-2010.02/qt/lib/libqtgui.so:unde Fined reference to ' Fcfreetypequeryface ' Collect2:ld returned 1 exit status apparently libqtgui.so fails trying to use th E libfontconfig ' Fcfreetypequeryface ' method. Prior to version 2.4.2 it either did not exist or perhaps the signature is changed in version 2.4.2. Not sure which, but a updated version needs to is installed to: "'/usr/lib/libfontconfig.so.1 '" ' How to Fix Download Sou RCEs and configure to install where it expects to find IT:CD/USR/SRC wget . 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 over doing this and you don't 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 to me on RHEL 5.3. I Hope this helps! -ed |