Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT5.4.1 compilation issue
Forum Update on Monday, May 27th 2025

QT5.4.1 compilation issue

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 446 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vibhu
    wrote on 22 Nov 2023, 11:58 last edited by
    #1

    Hi,

    I am new to QT compilation and trying to compile Qt5.4.1 source for my project and getting below linking errors. Any idea what am I doing wrong.

    i586-skerlet-linux-g++ -c -pipe -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_XKB -DOPENSSL_NO_SSL2 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/src/plugins/imageformats/ico -I. -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/openssl_102n/include -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/include -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/include/QtGui -I../../../../include -I../../../../include/QtGui -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/include/QtCore -I../../../../include/QtCore -I.moc -I/home/test/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux/usr/local/include -I/home/test/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux/usr/local/include/libdrm -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/openssl_102n/include -I/home/test/qt/SYSROM_SRC/build/thirdparty/include -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/mkspecs/linux-i586-skerlet-g++ -o .obj/qicohandler.o /home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/src/plugins/imageformats/ico/qicohandler.cpp
    .obj/qlinuxfbintegration.o: In function QLinuxFbIntegration::QLinuxFbIntegration(QStringList const&)': qlinuxfbintegration.cpp:(.text+0x3e3): undefined reference to vtable for QFontconfigDatabase'
    .obj/qlinuxfbintegration.o: In function QLinuxFbIntegration::QLinuxFbIntegration(QStringList const&)': qlinuxfbintegration.cpp:(.text+0x493): undefined reference to vtable for QFontconfigDatabase'
    collect2: ld returned 1 exit status

    i586-skerlet-linux-g++ --sysroot=/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/build/lib -Wl,-rpath-link,/home/test/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux/usr/local/lib -Wl,-rpath-link,/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/openssl_102n/lib -Wl,-rpath-link,/home/test/qt/SYSROM_SRC/build/thirdparty/lib -shared -o libqxcb.so .obj/qxcbclipboard.o .obj/qxcbconnection.o .obj/qxcbintegration.o .obj/qxcbkeyboard.o .obj/qxcbmime.o .obj/qxcbdrag.o .obj/qxcbscreen.o .obj/qxcbwindow.o .obj/qxcbbackingstore.o .obj/qxcbwmsupport.o .obj/qxcbmain.o .obj/qxcbnativeinterface.o .obj/qxcbcursor.o .obj/qxcbimage.o .obj/qxcbxsettings.o .obj/qxcbsystemtraytracker.o .obj/qxcbsessionmanager.o .obj/atom.o .obj/xkb-compat.o .obj/context.o .obj/xkb-keymap.o .obj/keysym.o .obj/keysym-utf.o .obj/state.o .obj/text.o .obj/context-priv.o .obj/keymap-priv.o .obj/utils.o .obj/utf8.o .obj/action.o .obj/ast-build.o .obj/compat.o .obj/expr.o .obj/include.o .obj/keycodes.o .obj/keymap-dump.o .obj/keymap.o .obj/keywords.o .obj/rules.o .obj/scanner.o .obj/symbols.o .obj/types.o .obj/vmod.o .obj/xkbcomp.o .obj/parser.o .obj/moc_qxcbconnection.o .obj/moc_qxcbmime.o .obj/moc_qxcbnativeinterface.o .obj/moc_qxcbsystemtraytracker.o -L/home/test/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux/usr/local/lib -L/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/openssl_102n/lib -L/home/test/qt/SYSROM_SRC/build/thirdparty/lib -ldl -lX11 -lX11-xcb -lxcb-render-util -lSM -lICE -lxcb-render -lxcb-atom -lxcb-property -lxcb-event -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms -lfontconfig -lfreetype -L/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/work/qtbase/lib -lQt5PlatformSupport -L/home/z07468ec/qt_obj/SYSROM_SRC/build/thirdparty/lib -L/home/z07468ec/qt_obj/build/lib -pthread -lgthread-2.0 -lglib-2.0 -lz -ludev -L/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux/usr/local/lib -lEGL -lQt5Gui -lQt5Core -lrt -lpthread
    .obj/qxcbintegration.o: In function QXcbIntegration::accessibility() const': qxcbintegration.cpp:(.text+0x47b): undefined reference to QSpiAccessibleBridge::QSpiAccessibleBridge()'
    .obj/qxcbintegration.o: In function QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**)': qxcbintegration.cpp:(.text+0x11ee): undefined reference to vtable for QFontconfigDatabase'
    .obj/qxcbintegration.o: In function QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**)': qxcbintegration.cpp:(.text+0x18ce): undefined reference to vtable for QFontconfigDatabase'
    collect2: ld returned 1 exit status

    J 1 Reply Last reply 22 Nov 2023, 12:30
    0
    • V Vibhu
      22 Nov 2023, 11:58

      Hi,

      I am new to QT compilation and trying to compile Qt5.4.1 source for my project and getting below linking errors. Any idea what am I doing wrong.

      i586-skerlet-linux-g++ -c -pipe -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_XKB -DOPENSSL_NO_SSL2 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/src/plugins/imageformats/ico -I. -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/openssl_102n/include -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/include -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/include/QtGui -I../../../../include -I../../../../include/QtGui -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/include/QtCore -I../../../../include/QtCore -I.moc -I/home/test/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux/usr/local/include -I/home/test/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux/usr/local/include/libdrm -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/openssl_102n/include -I/home/test/qt/SYSROM_SRC/build/thirdparty/include -I/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/mkspecs/linux-i586-skerlet-g++ -o .obj/qicohandler.o /home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/qt-everywhere-opensource-src-5.4.1/qtbase/src/plugins/imageformats/ico/qicohandler.cpp
      .obj/qlinuxfbintegration.o: In function QLinuxFbIntegration::QLinuxFbIntegration(QStringList const&)': qlinuxfbintegration.cpp:(.text+0x3e3): undefined reference to vtable for QFontconfigDatabase'
      .obj/qlinuxfbintegration.o: In function QLinuxFbIntegration::QLinuxFbIntegration(QStringList const&)': qlinuxfbintegration.cpp:(.text+0x493): undefined reference to vtable for QFontconfigDatabase'
      collect2: ld returned 1 exit status

      i586-skerlet-linux-g++ --sysroot=/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/build/lib -Wl,-rpath-link,/home/test/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux/usr/local/lib -Wl,-rpath-link,/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/openssl_102n/lib -Wl,-rpath-link,/home/test/qt/SYSROM_SRC/build/thirdparty/lib -shared -o libqxcb.so .obj/qxcbclipboard.o .obj/qxcbconnection.o .obj/qxcbintegration.o .obj/qxcbkeyboard.o .obj/qxcbmime.o .obj/qxcbdrag.o .obj/qxcbscreen.o .obj/qxcbwindow.o .obj/qxcbbackingstore.o .obj/qxcbwmsupport.o .obj/qxcbmain.o .obj/qxcbnativeinterface.o .obj/qxcbcursor.o .obj/qxcbimage.o .obj/qxcbxsettings.o .obj/qxcbsystemtraytracker.o .obj/qxcbsessionmanager.o .obj/atom.o .obj/xkb-compat.o .obj/context.o .obj/xkb-keymap.o .obj/keysym.o .obj/keysym-utf.o .obj/state.o .obj/text.o .obj/context-priv.o .obj/keymap-priv.o .obj/utils.o .obj/utf8.o .obj/action.o .obj/ast-build.o .obj/compat.o .obj/expr.o .obj/include.o .obj/keycodes.o .obj/keymap-dump.o .obj/keymap.o .obj/keywords.o .obj/rules.o .obj/scanner.o .obj/symbols.o .obj/types.o .obj/vmod.o .obj/xkbcomp.o .obj/parser.o .obj/moc_qxcbconnection.o .obj/moc_qxcbmime.o .obj/moc_qxcbnativeinterface.o .obj/moc_qxcbsystemtraytracker.o -L/home/test/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux/usr/local/lib -L/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/openssl_102n/lib -L/home/test/qt/SYSROM_SRC/build/thirdparty/lib -ldl -lX11 -lX11-xcb -lxcb-render-util -lSM -lICE -lxcb-render -lxcb-atom -lxcb-property -lxcb-event -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms -lfontconfig -lfreetype -L/home/test/qt/L6.8_QT_compilation/build_env/qt5.4.1/build_env/work/qtbase/lib -lQt5PlatformSupport -L/home/z07468ec/qt_obj/SYSROM_SRC/build/thirdparty/lib -L/home/z07468ec/qt_obj/build/lib -pthread -lgthread-2.0 -lglib-2.0 -lz -ludev -L/opt/sdk-1.0.2-ebx-pcom-1.0-rc1/sysroots/core2-skerlet-linux/usr/local/lib -lEGL -lQt5Gui -lQt5Core -lrt -lpthread
      .obj/qxcbintegration.o: In function QXcbIntegration::accessibility() const': qxcbintegration.cpp:(.text+0x47b): undefined reference to QSpiAccessibleBridge::QSpiAccessibleBridge()'
      .obj/qxcbintegration.o: In function QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**)': qxcbintegration.cpp:(.text+0x11ee): undefined reference to vtable for QFontconfigDatabase'
      .obj/qxcbintegration.o: In function QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**)': qxcbintegration.cpp:(.text+0x18ce): undefined reference to vtable for QFontconfigDatabase'
      collect2: ld returned 1 exit status

      J Offline
      J Offline
      JonB
      wrote on 22 Nov 2023, 12:30 last edited by JonB
      #2

      @Vibhu said in QT5.4.1 compilation issue:

      I am new to QT compilation and trying to compile Qt5.4.1 source for my project and getting below linking errors. Any idea what am I doing wrong.

      You are trying to compile Qt 5.4 which was released in 2014. Nearly a decade ago! Why don't you update instead of spending time on this?!

      V 1 Reply Last reply 22 Nov 2023, 12:53
      0
      • J JonB
        22 Nov 2023, 12:30

        @Vibhu said in QT5.4.1 compilation issue:

        I am new to QT compilation and trying to compile Qt5.4.1 source for my project and getting below linking errors. Any idea what am I doing wrong.

        You are trying to compile Qt 5.4 which was released in 2014. Nearly a decade ago! Why don't you update instead of spending time on this?!

        V Offline
        V Offline
        Vibhu
        wrote on 22 Nov 2023, 12:53 last edited by
        #3

        @JonB Sorry, but I need to compile the same for my existing old project due to H/W and platform dependencies. Any inputs which might be helpful apart from upgrading QT.
        I have downloaded QT5.4.1 from "https://download.qt.io/new_archive/qt/5.4/5.4.1/single/" and trying compilation.

        J 1 Reply Last reply 22 Nov 2023, 12:57
        0
        • V Vibhu
          22 Nov 2023, 12:53

          @JonB Sorry, but I need to compile the same for my existing old project due to H/W and platform dependencies. Any inputs which might be helpful apart from upgrading QT.
          I have downloaded QT5.4.1 from "https://download.qt.io/new_archive/qt/5.4/5.4.1/single/" and trying compilation.

          J Offline
          J Offline
          JonB
          wrote on 22 Nov 2023, 12:57 last edited by
          #4

          @Vibhu
          One of your errors appeared in 2016, https://forum.qt.io/topic/67217/qxcbintegration-cpp-undefined-reference-to-qspiaccessiblebridge.
          @SGaist asked there

          Which options did you pass to configure ? What was the configuration summary ?

          I think you should answer that. [Here, I mean!]

          V 1 Reply Last reply 23 Nov 2023, 05:26
          0
          • J JonB
            22 Nov 2023, 12:57

            @Vibhu
            One of your errors appeared in 2016, https://forum.qt.io/topic/67217/qxcbintegration-cpp-undefined-reference-to-qspiaccessiblebridge.
            @SGaist asked there

            Which options did you pass to configure ? What was the configuration summary ?

            I think you should answer that. [Here, I mean!]

            V Offline
            V Offline
            Vibhu
            wrote on 23 Nov 2023, 05:26 last edited by
            #5

            @JonB Thank you for your response, I further checked and found the issue got resolved after correcting linking options in Makefile and upgrading sdk platfrom version being used to compile QT.
            I will close this query.

            1 Reply Last reply
            0
            • V Vibhu has marked this topic as solved on 23 Nov 2023, 05:28

            3/5

            22 Nov 2023, 12:53

            • Login

            • Login or register to search.
            3 out of 5
            • First post
              3/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved