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

qt5 configuring static build fails, QMAKE_SPEC unset

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.10.1, 5.11.0
    • Build tools: qmake
    • None
    • openSUSE Leap 15.0 (gcc 7.2?)

    Description

      When trying to configure qt5 (using sources from qt-everywhere-src-5.11.0.tar.xz) with:

      ./configure -opensource -confirm-license -release -static -nomake examples -nomake tests

      for a static build, the configuration fails after building qmake with output:

      could not find qmake spec "".

      However qmake is built (more or less successfully). Querying the qmake persistent properties with qmake -query yields empty fields for QMAKE_SPEC and QMAKE_XSPEC.

      Adding an echo $QMAKESPEC in the qtbase/configure file shows, that at least $QMAKESPEC is set to a sensible value (.../linux-g++).

       

      I tried with qt5.11.0 and qt5.10.1. Which both don't work, albeit the message from qt5.10.1 is a little bit different. I also tried to add -platform and -spec options to ./configure, but this didn't help.

      With openSUSE Leap 42.3 (gcc 4.8), qt5.11.0 can be built successfully. Note that I am running the build process in a docker container with the official opensuse images (which however shouldn't matter here.)

      Attachments

        Issue Links

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

          Activity

            People

              buddenha Oswald Buddenhagen
              bsijoh Bsi Joh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes