Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. openssl/ssl.h not found in [] and global paths.
Forum Updated to NodeBB v4.3 + New Features

openssl/ssl.h not found in [] and global paths.

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 3 Posters 2.5k Views 1 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.
  • jasonlcy3J Offline
    jasonlcy3J Offline
    jasonlcy3
    wrote on last edited by jasonlcy3
    #1

    I am compiling Qt with

    configure -ssl -I C:\OpenSSL\include -L C:\OpenSSL\lib
    

    I am sure I have entered the path correctly.
    f4c66c2c-1402-4051-badd-9e21f9d0bfe5-image.png
    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

    jsulmJ 1 Reply Last reply
    0
    • jasonlcy3J 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.
      f4c66c2c-1402-4051-badd-9e21f9d0bfe5-image.png
      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

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @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
      

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      jasonlcy3J 1 Reply Last reply
      0
      • jsulmJ jsulm

        @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
        
        jasonlcy3J Offline
        jasonlcy3J Offline
        jasonlcy3
        wrote on last edited by
        #3

        @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.
        
        jsulmJ 1 Reply Last reply
        0
        • jasonlcy3J jasonlcy3

          @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.
          
          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @jasonlcy3 Did you run configure from a clean state? If so: what does the config.log contain now?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          jasonlcy3J 1 Reply Last reply
          0
          • jsulmJ jsulm

            @jasonlcy3 Did you run configure from a clean state? If so: what does the config.log contain now?

            jasonlcy3J Offline
            jasonlcy3J Offline
            jasonlcy3
            wrote on last edited by
            #5

            @jsulm There you go https://pastebin.com/h0xxZcHA

            jsulmJ 1 Reply Last reply
            0
            • jasonlcy3J jasonlcy3

              @jsulm There you go https://pastebin.com/h0xxZcHA

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @jasonlcy3 You did not answer this question: Did you run configure from a clean state?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              jasonlcy3J 1 Reply Last reply
              1
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                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.

                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
                1
                • jsulmJ jsulm

                  @jasonlcy3 You did not answer this question: Did you run configure from a clean state?

                  jasonlcy3J Offline
                  jasonlcy3J Offline
                  jasonlcy3
                  wrote on last edited by
                  #8

                  @jsulm It seems that it found the headers file after I delete all the file and run it once again. Thank you.

                  1 Reply Last reply
                  0

                  • Login

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