Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.14.0 Beta2
-
None
-
linux (Ubuntu 18.04 with mingw-w64 upgrade ppa)
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
- relates to
-
QTBUG-80096 Qt 5.14.0 error configure for build from sources !features.shared
- Closed