Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Fatal error C1083: Cannot open include file: 'openssl/ssl.h' when trying to build Qt 5.5.1
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 3.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    QtBit44
    wrote on 26 Jun 2017, 17:58 last edited by
    #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?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 26 Jun 2017, 19:02 last edited by
      #2

      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

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 26 Jun 2017, 21:18 last edited by
        #3

        Hi,

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

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2

        1/3

        26 Jun 2017, 17:58

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved