Qt 5.9.1 Static build failing
-
Hi, I am trying to create a static build of Qt 5.9.1 using MinGW with the help of the script here: https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW
However, after running the script I end up with the following error:
mingw32-make: Target 'install' not remade because of errors.After looking at the log I can see that some of the errors are due to "undefined references" related to the OpenSSL libs I'm linking too (That have been working fine for earlier versions of Qt though).
Doesn't look like OpenSSL is the only problem though, so I took some screenshots of the error messages that I could find: https://imgur.com/a/DcSOIHelp is greatly appreciated. Thanks.
-
Hi,
What version of OpenSSL are you using ?
-
Then a silly question, are you using a MinGW build of OpenSSL ?
-
Can you show the configure options you used ?
-
Hi again, sorry for the delay.
I think I managed to solve the OpenSSL issue, by changing from openssl-linked to openssl. I'd rather just have it link against the libraries though, and I'm not sure why it don't want to do that on this machine.
But... now there's another issue. After it has been compiling for 10+ minutes it suddenly just gets stuck at "Leaving directory". I tried building twice, but it happened both times, here is the messages: https://imgur.com/a/iPpKoAnyway, here is the configure options (from the static build powershell file)
configure.bat -static -release -platform win32-g++ -prefix $QtDir ` -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -opengl desktop -openssl -I C:\OpenSSL-Win32\include -L C:\OpenSSL-Win32\lib ` -opensource -confirm-license ` -make libs -nomake tools -nomake examples -nomake tests
Thanks for your help.
-
Did you restart from scratch ?
-
Can you try to only build qtbase with OpenSSL ?
-