Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-52605

Cannot Build Shared Library with Static Qt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.6.2, 5.8.0 RC
    • 5.6.0
    • Build System
    • None
    • CentOS 6.7
      GCC 4.4.7 201220314
      GNU ld version 2.29.51.0.2-5.43.el6 20100205

    Description

      Qt has been built using the following configuration:

      ./configure -release -qt-xcb -static -qt-zlib -qt-libpng -qt-libjpeg -qt-sql-sqlite -skip qtconnectivity -skip qtdeclarative -skip qtlocation -skip qtmultimedia -skip qtquickcontrols -skip qtquickcontrols2 -skip qttools -skip qtsensors -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -nomake examples -nomake tests -confirm-license -opengl desktop -platform linux-g++-64 -prefix /opt/DemDevel/qt-5.6.0-enterprise-static-RH6-64bit-release
      

      With a similar configuration script for Windows 8.1.

      In Windows 8.1 a shared library can be built using Qt. But in CentOS there is always a linker error: version node not found for symbol qt_version_tag@Qt5.3

      Static libraries can both be be built in both Windows and CentOS without issue. Only shared libraries in CentOS throw this issue.

      See attached image. Have not tried with other Linux variants.

      Attachments

        1. main.cpp
          0.1 kB
        2. main.pro
          0.1 kB
        3. screenshot.png
          screenshot.png
          59 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            neil.macdonald Neil MacDonald
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes