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

[Qt5.9.1] static builds qtbase only

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.9.1
    • Build tools: Other
    • Ubuntu 16.04 (gcc 5.4.0)

    Description

      Download Qt 5.9.1 source package, unzip it and configure with:

      ./configure -confirm-license -nomake tests -qt-libjpeg -qt-libpng -qt-xcb -qt-pcre -openssl -confirm-license -verbose -release -no-use-gold-linker -skip qtwebengine -skip qtwebsockets -skip qtwebchannel -skip qtwebview -commercial -static -prefix /home/user/tmp/src-5.9/qtbase

      There are some qserialport examples that aren't getting build, but it looks like the build still continues and in the end there are no errors, but e.g qttools (assistant, designer, linguist) aren't found from qt5.9.1/qtbase/bin.

       

      /tmp/src-5.9/qtbase/mkspecs/linux-g++ -o .obj/qcompressedwhitespace.o acceltree/qcompressedwhitespace.cpp
      /usr/bin/ld: cannot find -lqwebp
      collect2: error: ld returned 1 exit status
      Makefile:67: recipe for target 'enumerator' failed
      make[4]: *** [enumerator] Error 1
      make[4]: Leaving directory '/home/user/tmp/src-5.9/qtserialport/examples/serialport/enumerator'
      Makefile:179: recipe for target 'sub-enumerator-make_first' failed
      make[3]: *** [sub-enumerator-make_first] Error 2
      make[3]: *** Waiting for unfinished jobs....
      cd svg/ && ( test -e Makefile || /home/user/tmp/src-5.9/qtbase/bin/qmake -o Makefile /home/user/tmp/src-5.9/qtsvg/src/plugins/imageformats/svg/svg.pro ) && make -f Makefile
      make[4]: Leaving directory '/home/user/tmp/src-5.9/qtserialport/examples/serialport/terminal'
      make[3]: Leaving directory '/home/user/tmp/src-5.9/qtserialport/examples/serialport'
      Makefile:44: recipe for target 'sub-serialport-make_first' failed
      make[2]: *** [sub-serialport-make_first] Error 2
      make[2]: Leaving directory '/home/user/tmp/src-5.9/qtserialport/examples'
      Makefile:71: recipe for target 'sub-examples-make_first' failed
      make[1]: *** [sub-examples-make_first] Error 2
      make[1]: Leaving directory '/home/user/tmp/src-5.9/qtserialport'
      Makefile:203: recipe for target 'module-qtserialport-make_first' failed
      make: *** [module-qtserialport-make_first] Error 2
      make: *** Waiting for unfinished jobs....

       E.g. 'analogclock' example builds and runs fine.

       

      Here's what libraries can be found from qt5.9.1/qtbase/lib:

      cmake                             libQt5EglFsKmsSupport.a           libQt5InputSupport.la                libQt5PrintSupport.prl    libQt5X11Extras.a
      libQt5AccessibilitySupport.a      libQt5EglFsKmsSupport.la          libQt5InputSupport.prl               libQt5SerialPort.a        libQt5X11Extras.la
      libQt5AccessibilitySupport.la     libQt5EglFsKmsSupport.prl         libQt5KmsSupport.a                   libQt5SerialPort.la       libQt5X11Extras.prl
      libQt5AccessibilitySupport.prl    libQt5EglSupport.a                libQt5KmsSupport.la                  libQt5SerialPort.prl      libQt5XcbQpa.a
      libQt5Bootstrap.a                 libQt5EglSupport.la               libQt5KmsSupport.prl                 libQt5ServiceSupport.a    libQt5XcbQpa.la
      libQt5Bootstrap.la                libQt5EglSupport.prl              libQt5Network.a                      libQt5ServiceSupport.la   libQt5XcbQpa.prl
      libQt5Bootstrap.prl               libQt5EventDispatcherSupport.a    libQt5NetworkAuth.a                  libQt5ServiceSupport.prl  libQt5Xml.a
      libQt5Concurrent.a                libQt5EventDispatcherSupport.la   libQt5NetworkAuth.la                 libQt5Sql.a               libQt5Xml.la
      libQt5Concurrent.la               libQt5EventDispatcherSupport.prl  libQt5NetworkAuth.prl                libQt5Sql.la              libQt5XmlPatterns.a
      libQt5Concurrent.prl              libQt5FbSupport.a                 libQt5Network.la                     libQt5Sql.prl             libQt5XmlPatterns.la
      libQt5Core.a                      libQt5FbSupport.la                libQt5Network.prl                    libQt5Svg.a               libQt5XmlPatterns.prl
      libQt5Core.la                     libQt5FbSupport.prl               libQt5OpenGL.a                       libQt5Svg.la              libQt5Xml.prl
      libQt5Core.prl                    libQt5FontDatabaseSupport.a       libQt5OpenGLExtensions.a             libQt5Svg.prl             libqtharfbuzz.a
      libQt5DBus.a                      libQt5FontDatabaseSupport.la      libQt5OpenGLExtensions.la            libQt5Test.a              libqtharfbuzz.prl
      libQt5DBus.la                     libQt5FontDatabaseSupport.prl     libQt5OpenGLExtensions.prl           libQt5Test.la             libqtlibpng.a
      libQt5DBus.prl                    libQt5GlxSupport.a                libQt5OpenGL.la                      libQt5Test.prl            libqtlibpng.prl
      libQt5DeviceDiscoverySupport.a    libQt5GlxSupport.la               libQt5OpenGL.prl                     libQt5ThemeSupport.a      libqtpcre2.a
      libQt5DeviceDiscoverySupport.la   libQt5GlxSupport.prl              libQt5PlatformCompositorSupport.a    libQt5ThemeSupport.la     libqtpcre2.prl
      libQt5DeviceDiscoverySupport.prl  libQt5Gui.a                       libQt5PlatformCompositorSupport.la   libQt5ThemeSupport.prl    libxcb-static.a
      libQt5EglFSDeviceIntegration.a    libQt5Gui.la                      libQt5PlatformCompositorSupport.prl  libQt5Widgets.a           libxcb-static.prl
      libQt5EglFSDeviceIntegration.la   libQt5Gui.prl                     libQt5PrintSupport.a                 libQt5Widgets.la          pkgconfig
      libQt5EglFSDeviceIntegration.prl  libQt5InputSupport.a              libQt5PrintSupport.la                libQt5Widgets.prl         README
      

       It looks like it's only qtbase getting build.

      Attachments

        1. config.summary
          8 kB
        2. config.opt
          0.3 kB
        3. config.cache
          21 kB
        4. build_log.txt
          4.18 MB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              buddenha Oswald Buddenhagen
              mipohjan Milla Pohjanheimo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes