Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
openssl/ssl.h not found in  and global paths.
jasonlcy3 last edited by jasonlcy3
I am compiling Qt with
configure -ssl -I C:\OpenSSL\include -L C:\OpenSSL\lib
I am sure I have entered the path correctly.
ButI still can't enable link OpenSSL
ERROR: Feature 'ssl' was enabled, but the pre-condition 'config.winrt || features.securetransport || features.openssl' failed. Check config.log for details.
Here is the log file: https://pastebin.com/jJ4RXcv3
-I C:\OpenSSL\include -L C:\OpenSSL\lib
Remove the spaces between -I and path and -L and path:
configure -ssl -IC:/OpenSSL/include -LC:/OpenSSL/lib
@jsulm The error still here.
When I check the log file, the include directory is there.
Global lib dirs: [C:/OpenSSL/lib] [C:/Qt/Tools/mingw810_32/lib/gcc/i686-w64-mingw32/8.1.0 C:/Qt/Tools/mingw810_32/lib/gcc C:/Qt/Tools/mingw810_32/i686-w64-mingw32/lib C:/Qt/Tools/mingw810_32/lib] Global inc dirs: [C:/OpenSSL/include] [C:/Qt/Tools/mingw810_32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++ C:/Qt/Tools/mingw810_32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/i686-w64-mingw32 C:/Qt/Tools/mingw810_32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/backward C:/Qt/Tools/mingw810_32/lib/gcc/i686-w64-mingw32/8.1.0/include C:/Qt/Tools/mingw810_32/lib/gcc/i686-w64-mingw32/8.1.0/include-fixed C:/Qt/Tools/mingw810_32/i686-w64-mingw32/include]
Still, I got the same error
openssl/ssl.h not found in  and global paths. openssl/opensslv.h not found in  and global paths.
@jasonlcy3 Did you run configure from a clean state? If so: what does the config.log contain now?
@jasonlcy3 You did not answer this question: Did you run configure from a clean state?
Based on the Qt documentation you should use something like:
OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure <your_options_here>
You should adapt the paths for your installation.
-Loptions added to the configure call shall have a space unlike when you set them for the compiler and linker.
@jsulm It seems that it found the headers file after I delete all the file and run it once again. Thank you.