Results 1 to 3 of 3

Thread: Help! Building Qt libraries for VS2012 runtime

  1. #1
    Join Date
    Mar 2013
    Posts
    5
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Help! Building Qt libraries for VS2012 runtime

    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:

    Qt Code:
    1. 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
    To copy to clipboard, switch view to plain text mode 

    My configure command line is:
    Qt Code:
    1. 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
    To copy to clipboard, switch view to plain text mode 

    (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?

  2. #2
    Join Date
    Mar 2013
    Posts
    5
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: Help! Building Qt libraries for VS2012 runtime

    *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:
    Qt Code:
    1. LINK : fatal error LNK1104: cannot open file 'ssleay32.lib'
    To copy to clipboard, switch view to plain text mode 
    Tried to add the libraries to the configure command, by adding to the previous command line:
    Qt Code:
    1. -l C:\OpenSSL-Win32\lib\ssleay32.lib -l C:\OpenSSL-Win32\lib\libeay32.lib
    To copy to clipboard, switch view to plain text mode 
    .. and got a funny link error:
    Qt Code:
    1. LINK : fatal error LNK1104: cannot open file 'ssleay32.lib.lib'
    To copy to clipboard, switch view to plain text mode 
    Tried again:
    Qt Code:
    1. -l C:\OpenSSL-Win32\lib\ssleay32 -l C:\OpenSSL-Win32\lib\libeay32
    To copy to clipboard, switch view to plain text mode 
    got the first link error again.
    Also tried using the -L switch with no help.

    Any ideas? Thanks.

  3. #3
    Join Date
    Mar 2013
    Posts
    5
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: Help! Building Qt libraries for VS2012 runtime

    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!

Similar Threads

  1. dynamically building qdialog at runtime
    By Cremers in forum Newbie
    Replies: 7
    Last Post: 26th October 2012, 10:48
  2. Creator - Building Libraries?
    By SixDegrees in forum Qt Programming
    Replies: 8
    Last Post: 6th November 2010, 15:30
  3. Building Boost libraries for QT
    By nhs_0702 in forum Qt Programming
    Replies: 1
    Last Post: 1st April 2010, 09:54
  4. Building application with static Qt libraries
    By nedlab in forum Installation and Deployment
    Replies: 1
    Last Post: 28th December 2008, 20:07
  5. runtime libraries?
    By fwohlfert in forum Newbie
    Replies: 1
    Last Post: 5th January 2006, 18:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.