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

Configure fails after initial success

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.14.1
    • 5.14.0 Beta2
    • Build System
    • None
    • linux (Ubuntu 18.04 with mingw-w64 upgrade ppa)
    • Linux/Other display system

    Description

      Note: I am cross-compiling:

      $ i686-w64-mingw32-gcc --version
       i686-w64-mingw32-gcc (GCC) 7.3-win32 20180312

      Initially, I built openssl-1.1.1d and attempted to configure with:

      ./configure -prefix /home/squinky86/w64/qt -platform linux-g++-64 -xplatform win32-g++ -device-option CROSS_COMPILE=x86_64-w64-mingw32- -opensource -release -confirm-license -opengl desktop -mp -static -static-runtime -no-shared -qt-libpng -qt-libjpeg -qt-zlib -qt-pcre -no-compile-examples -nomake examples -no-icu -optimize-size -openssl-linked -I/home/squinky86/w64/openssl-1.1.1d/include -L/home/squinky86/w64/openssl-1.1.1d OPENSSL_PREFIX="/home/squinky86/w64/openssl-1.1.1d" OPENSSL_LIBS="-lssl -lcrypto -luser32 -lcrypt32 -lws2_32 -lgdi32"

      Configure finished with a warning that it couldn't build the openssl test:

      > x86_64-w64-mingw32-g++ -Wl,-s -Wl,-subsystem,console -static -mthreads -o openssl.exe main.o  -L/home/squinky86/w64/openssl-1.1.1d -lssleay32 -llibeay32 -lUser32 -lWs2_32 -lAdvapi32 -lGdi32
      > /usr/bin/x86_64-w64-mingw32-ld: cannot find -lssleay32
      > /usr/bin/x86_64-w64-mingw32-ld: cannot find -llibeay32
      > /usr/bin/x86_64-w64-mingw32-ld: cannot find -lUser32
      > /usr/bin/x86_64-w64-mingw32-ld: cannot find -lWs2_32
      > /usr/bin/x86_64-w64-mingw32-ld: cannot find -lAdvapi32
      > /usr/bin/x86_64-w64-mingw32-ld: cannot find -lGdi32
      > collect2: error: ld returned 1 exit status
      > Makefile:69: recipe for target 'openssl.exe' failed
      > make: *** [openssl.exe] Error 1

      To try to fix this, I changed my configure option to the following and get the following error:

      ./configure -prefix /home/squinky86/w64/qt -platform linux-g++-64 -xplatform win32-g++ -device-option CROSS_COMPILE=x86_64-w64-mingw32- -opensource -release -confirm-license -opengl desktop -mp -static -static-runtime -no-shared -qt-libpng -qt-libjpeg -qt-zlib -qt-pcre -no-compile-examples -nomake examples -no-icu -optimize-size -openssl-linked -I/home/squinky86/w64/openssl-1.1.1d/include -L/home/squinky86/w64/openssl-1.1.1d -L/usr/i686-w64-mingw32/lib OPENSSL_PREFIX="/home/squinky86/w64/openssl-1.1.1d" OPENSSL_LIBS="-lssl -lcrypto -luser32 -lcrypt32 -lws2_32 -lgdi32"
      Creating qmake...
      .Done.
      
      This is the Qt Open Source Edition.
      
      You have already accepted the terms of the Open Source license.
      
      Running configuration tests...
      Project ERROR: Unknown feature object shared in expression '!features.shared'.

      I can now reproduce this every time. If the openssl configuration results in a 'no' test, trying to change it and reconfigure results in an error in configuration.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              squinky86 Jon Hood
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes