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. Solved: Building Qt libraries for VS2012 runtime
QtWS25 Last Chance

Solved: Building Qt libraries for VS2012 runtime

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 5.5k Views
  • 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.
  • G Offline
    G Offline
    gil_mo
    wrote on last edited by
    #1

    Hi,
    I need to build and link the latest (5.0.1) Qt libraries against the VS2012 runtime libraries.
    I’m using the non-commercial Qt.
    I've downloaded the qt-everywhere-opensource-src-5.0.1 package and now I'm stuck on some problems:
    Apparently there is no proper cookbook on how to configure and build for vs2012 compatibility.
    The current problem:

    @c:\qt5.0.1\qt-everywhere-opensource-src-5.0.1\qtbase\src\network\ssl\qsslsocket_openssl_p.h(66) : fatal error C1083: Cannot open include file: 'openssl/asn1.h': No such file or directory
    @
    My configure command line is:
    @configure –I C:\OpenSSL-Win32\include –I C:\OpenSSL-Win32 –I C:\OpenSSL-Win32\include\openssl -opensource -openssl-linked -debug-and-release -platform win32-msvc2012 –no-icu -nomake examples -nomake tests
    @
    (of course, the path to openssl is correct).

    I couldn’t find the include path mentioned in the created Makefile.
    Also tried to clean the configuration using ‘nmake confclean’ (suggested by ‘Configure’), but there is no such file ‘confclean’.
    Any help?

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

      Hi,
      I think the build test for openssl fails because you don't provide the path to openssl's lib.

      Retry with only -I C:\OpenSSL-Win32\include and add -L C:\OpenSSL-Win32\lib.

      Check the output of the configure script to see if openssl support is activated.

      Hope it helps

      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
      0
      • G Offline
        G Offline
        gil_mo
        wrote on last edited by
        #3

        update: overcame the above error and bumped into another:
        To really clean the configuration I started from a vanilla copy of the package (my own 'confclean'' if you wish), then configured again using the same commandline.
        This time, compilation passed but link failed on SSL:

        @LINK : fatal error LNK1104: cannot open file 'ssleay32.lib'@

        Tried to add the libraries to the configure command, by adding to the previous command line:

        @-l C:\OpenSSL-Win32\lib\ssleay32.lib -l C:\OpenSSL-Win32\lib\libeay32.lib@

        .. and got a funny link error:

        @LINK : fatal error LNK1104: cannot open file 'ssleay32.lib.lib'@

        Tried again:

        @-l C:\OpenSSL-Win32\lib\ssleay32 -l C:\OpenSSL-Win32\lib\libeay32@

        got the first link error again.
        Also tried using the -L switch with no help.

        Any ideas? Thanks.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          gil_mo
          wrote on last edited by
          #4

          Solved.

          Using a vanilla copy of the package, used the winner command line - removing the explicit -l<ssl library name> and adding -L<SSL lib directory>.

          Thanks for watching!

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

            Great !

            You're welcome !

            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
            0

            • Login

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