How to upgrade fontconfig to a newer version in Red Hat 5.3?

I want to upgrade fontconfig to a newer version, but it seems that the OS is still finding the old fontconfig, and I need a new version to build qt. How to make Red Hat 5.3 see the new version? I don't know if this helps, but when I did a search for fontconfig, I found several files in a folder called cache. When I do the yum update, it tells me that everything is up to date, but this version is too old and FcFreeTypeQueryFace is missing. Just send me a comment if this is the wrong site and it’s bad to change it.

+3
source share
2 answers

If you get this error in RHEL or CentOS 5.x:

/home/esutton/qtsdk-2010.02/qt/lib/libQtGui.so: undefined reference to `FcFreeTypeQueryFace'
collect2: ld returned 1 exit status

-, libQtGui.so libfontconfig `FcFreeTypeQueryFace '. 2.4.2 , , , 2.4.2. , , :  '' '/usr/lib/libfontconfig.so.1' ''

, , :

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

fontconfig .pro. Qt.

LIBS += -L/opt/fontconfig-2.4.2/lib

RHEL 5.3. , !

+6

  • , . , fontconfig rpm, , yum. , , , . , - , Qt. , , , , rpm.
+1

Source: https://habr.com/ru/post/1737736/


All Articles