openssl/ssl.h not found in [] and global paths.
-
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 OpenSSLERROR: 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
-
@jasonlcy3 said in openssl/ssl.h not found in [] and global paths.:
-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?
-
Hi,
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.
@jsulm the
-I
and-L
options added to the configure call shall have a space unlike when you set them for the compiler and linker.