Solved Qt 5.9.1 Static build failing
-
Hi,
What version of OpenSSL are you using ?
-
I am using version 1.0.2.
-
Then a silly question, are you using a MinGW build of OpenSSL ?
-
Yes it's a MingGW build. I am using the exact same OpenSSL build as I used on my other PC which build successfully with Qt 5.5 and 5.6, so I really don't know why it wont work now.
-
Can you show the configure options you used ?
-
@Kayote OpenSSL relies on Windows internal cryto32 library, make sure all libaries are in good order to get a successful link.
-
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 ?
-
Yes both times I deleted the whole folder with the files from the previous build so that shouldn't be why
-
Can you try to only build qtbase with OpenSSL ?
-
I was about to do that, but first I just tried deleting everything, including the source files qt and started all over again. This seems to have fixed it! It managed to build successfully now and OpenSSL is working too. Thank you for your time :)