Qt 5.7.0 on Centos 6.0



  • Hi,

    I am trying to install the QT on the Centos 6.0 (qt-everywhere-opensource-src-5.7.0.tar.gz)
    I configured the qt: ./configure -release -opensource -confirm-license -shared -no-qml-debug -openssl -qt-xcb -verbose -v
    and run the gmake.
    I got error, the gmake trying to compile the chromium
    The error:
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/third_party/webrtc/modules/libvideo_render.a -Wl,--end-group -lrt -ldl -lresolv -lasound -lm -lz -lexpat -lXext -lX11 -lXcomposite -lXrender -lXdamage -lXfixes -L/opt/QT/QT_5.7.0/qtwebengine/src/core/api/Release -Wl,-whole-archive -lqtwebenginecoreapi -Wl,-no-whole-archive -lEGL -lQt5Quick -L/opt/QT/QT_5.7.0/qtbase/lib -lQt5Gui -L/opt/QT/QT_5.7.0/qtdeclarative/lib -lQt5Qml -lQt5Network -lQt5Core -lpthread -lQt5Gui -L/opt/QT/QT_5.7.0/qtbase/lib -lQt5Core -lpthread -lQt5Qml -L/opt/QT/QT_5.7.0/qtbase/lib -lQt5Network -lQt5Core -lpthread -lQt5Network -L/opt/QT/QT_5.7.0/qtbase/lib -lQt5Core -lpthread -lQt5Core -lpthread -lGL
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function get_name(FcPattern*, char const*): error: undefined reference to 'FcPatternGetString'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function get_int(FcPattern*, char const*): error: undefined reference to 'FcPatternGetInteger'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function valid_pattern(FcPattern*): error: undefined reference to 'FcPatternGetBool'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function SkFontMgr_fontconfig::onLegacyCreateTypeface(char const*, unsigned int) const: error: undefined reference to 'FcGetVersion'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function SkFontMgr_fontconfig::onMatchFamily(char const*) const: error: undefined reference to 'FcGetVersion'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function SkFontMgr_fontconfig::onMatchFamily(char const*) const: error: undefined reference to 'FcPatternCreate'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function SkFontMgr_fontconfig::onMatchFamily(char const*) const: error: undefined reference to 'FcPatternAddString'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function SkFontMgr_fontconfig::onMatchFamily(char const*) const: error: undefined reference to 'FcConfigSubstitute'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function SkFontMgr_fontconfig::onMatchFamily(char const*) const: error: undefined reference to 'FcDefaultSubstitute'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function SkFontMgr_fontconfig::onMatchFamily(char const*) const: error: undefined reference to 'FcFontSort'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function SkFontMgr_fontconfig::onMatchFamily(char const*) const: error: undefined reference to 'FcPatternDestroy'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function SkFontMgr_fontconfig::onMatchFamily(char const*) const: error: undefined reference to 'FcPatternDestroy'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function SkFontMgr_fontconfig::onMatchFamily(char const*) const: error: undefined reference to 'FcFontSetDestroy'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function SkFontMgr_fontconfig::onMatchFamily(char const*) const: error: undefined reference to 'FcPatternDestroy'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/ports/skia_library.SkFontHost_FreeType.o):SkFontHost_FreeType.cpp:function getWidthAdvance(FT_FaceRec
    , int, short): error: undefined reference to 'FT_Get_Advances'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/ports/skia_library.SkFontHost_FreeType.o):SkFontHost_FreeType.cpp:function GetLetterCBox(FT_FaceRec
    *, char, FT_BBox
    ): error: undefined reference to 'FT_Get_Char_Index'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/ports/skia_library.SkFontHost_FreeType.o):SkFontHost_FreeType.cpp:function GetLetterCBox(FT_FaceRec_
    , char, FT_BBox_): error: undefined reference to 'FT_Load_Glyph'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/ports/skia_library.SkFontHost_FreeType.o):SkFontHost_FreeType.cpp:function GetLetterCBox(FT_FaceRec_
    , char, FT_BBox_): error: undefined reference to 'FT_Outline_Get_CBox'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/ports/skia_library.SkFontHost_FreeType.o):SkFontHost_FreeType.cpp:function unref_ft_face(FT_FaceRec_
    ): error: undefined reference to 'FT_Done_Face'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/ports/skia_library.SkFontHost_FreeType.o):SkFontHost_FreeType.cpp:function unref_ft_library() [clone .part.25]: error: undefined reference to 'FT_Done_Library'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/ports/skia_library.SkFontHost_FreeType.o):SkFontHost_FreeType.cpp:function ref_ft_library(): error: undefined reference to 'FT_New_Library'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/ports/skia_library.SkFontHost_FreeType.o):SkFontHost_FreeType.cpp:function ref_ft_library(): error: undefined reference to 'FT_Add_Default_Modules'
    /opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/ports/skia_library.SkFontHost_FreeType.o):SkFontHost_FreeType.cpp:function ref_ft_library(): error: undefined reference to 'FT_Library_SetLcdFilter'

    Please help.
    Thx


  • Lifetime Qt Champion

    Hi,

    Which version of GCC are you using ?



  • gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
    I think i need to upgrade the FreeType (currently my version is 2.3.11).
    How can i upgrade it?


  • Lifetime Qt Champion

    Do you mean yum update freetype ?



  • No,
    I found same bug - http://stackoverflow.com/questions/1594234/qt-linking-error
    I have the latest freetype and fontconfig - i chceked
    I dont know what to do, Please help


  • Lifetime Qt Champion

    Did you check that you have all the dependencies dev packages installed ?



  • Yes, I installed the followed list:
    perl-version, mesa-libEGL-devel, flex, bison, gperf, libicu-devel, libxslt-devel, ruby, libgcrypt-devel, libgcrypt, pciutils-devel, nss-devel,
    libXtst-devel, cups-devel, pulseaudio-libs-devel, libgudev1-devel, systemd-devel, libcap-devel, alsa-lib-devel, ruby, dbus, libXrandr-devel, libXcomposite-devel, libXcursor-devel, dbus-devel, fontconfig-devel, libXScrnSaver, libXScrnSaver-devel, expat-devel, mesa-libGL, mesa-libGLU, mesa-libGL-devel, mesa-libGLU-devel.
    Do you think i miss some package?


  • Lifetime Qt Champion

    Which version of FontConfig do you have installed ?



  • fontconfig-2.8.0-5.el6.i686


  • Lifetime Qt Champion

    Silly question but is your system multi arch ?

    On a side note, if you don't need QtWebEngine, you can also skip its build.



  • No, I have two system 32 and 64 bit.
    The behavior is the same on both distribution.
    I want to upgrade to this version because of QtWebEngine.


  • Lifetime Qt Champion

    One thing that is strange is that I don't see any mention of FontConfig on the link like. Can you check that ?



  • Did you mean follow link?
    http://stackoverflow.com/questions/1594234/qt-linking-error

    if so, i tried to search same error on google - "/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/libskia_library.a(/opt/QT/QT_5.7.0/qtwebengine/src/core/Release/obj/src/3rdparty/chromium/skia/../third_party/skia/src/fonts/skia_library.SkFontMgr_fontconfig.o):SkFontMgr_fontconfig.cpp:function get_name(_FcPattern*, char const*): error: undefined reference to 'FcPatternGetString'"
    and found this bug.
    I am not sure that the fontconfig is the solution.
    My log file -
    https://drive.google.com/file/d/0B41iVvI_jGtobnlzdGluR1pHWmc/view?usp=sharing


  • Lifetime Qt Champion

    It looks like somehow the dependencies are missing in the link list.



  • How can I check it or fix it?


  • Lifetime Qt Champion

    I'll check the build of libskia_library.a


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.