Qt for Linux error undefined reference to 'fcfreetypequeryface' Solution

Source: Internet
Author: User

Download the qt-sdk-linux-x86-opensource-2009.02.bin, after installing in RedHat Linux As5, you can start QT creator normally. However, when compiling the example program that comes with QT, The Link error is found:

/Opt/qtsdk-2009.02/QT/lib/libqtgui. So: Undefined reference to 'fcfreetypequeryface'

After searching, it has something to do with the fontconfig version. The version on As5 is 2.4.1. It is said that it is only available in version 2.4.2 or later. But I directly download the latest 2.6.0 source code from the http://www.fontconfig.org/release.

After unlocking, follow the instructions in the install file to install fontconfig, and then you can compile the program properly:

  1. Go to the unlocked fontconfig directory and see the install file.
  2. ./Configure -- sysconfdir =/etc -- prefix =/usr -- Mandir =/usr/share/man
  3. Make
  4. Make install

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.