Fatal error C1083: Cannot open include file: 'openssl/ssl.h' when trying to build Qt 5.5.1



  • I've tried numerous times to build Qt 5.5.1 with openSSL, but I keep getting this error:
    Fatal error C1083: Cannot open include file: 'openssl/ssl.h'

    I've tried building with openSSL versions 1.1.0, 1.02j, & 1.02l and used multiple configurations. Here is my latest config:

    configure -debug-and-release -opensource -platform win32-msvc2010 -opengl desktop -nomake examples -nomake tests -openssl-linked -I C:\openssl-1.0.2j\include -L C:\openssl-1.0.2j\lib OPENSSL_LIBS_DEBUG="libeay32MTd.lib ssleay32MTd.lib" OPENSSL_LIBS_RELEASE="libeay32MT.lib ssleay32MT.lib"

    I've also tried (changes are highlighted):
    configure -debug-and-release -opensource -platform win32-msvc2010 -opengl desktop -nomake examples -nomake tests -openssl -I C:\openssl-1.0.2l\include -L C:\openssl-1.0.2l\lib OPENSSL_LIBS_DEBUG="libeay32MTd.lib ssleay32MTd.lib" OPENSSL_LIBS_RELEASE="libeay32MT.lib ssleay32MT.lib"

    Can anyone help me understand why this is happening?


  • Qt Champions 2016

    Hi
    Did you try stripping the version number from the folder so it just C:\openssl ?

    The docs says
    "When building Qt from source, the configuration system checks for the presence of the openssl/opensslv.h"

    http://doc.qt.io/qt-5/ssl.html#enabling-and-disabling-ssl-support


  • Lifetime Qt Champion

    Hi,

    Did you also try with forward slashes in your paths rather than backslashes ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.