Results 1 to 2 of 2

Thread: How does QMake know about openSSL-Win32_full?

  1. #1
    Join Date
    Aug 2008
    Posts
    29
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How does QMake know about openSSL-Win32_full?

    I'm building a Qt app that calls some openSSL functions directly; so I have to link it with the import libraries from a local installation of openSSL. While setting it up (On Windows with Qt SDK 4.6) I noticed an unexpected item in the Makefiles generated by QMake.

    In the LIBS line it has " /LIBPATH:C:\OpenSSL-Win32_full\lib", regardless of whether that directory exists, and regardless of whether my .pro file mentions openSSL libraries; it is in Makefiles for both MSVC and MinGW. In fact I created that directory and put my import libs there, then "LIBS += libeay32.lib libssl32.lib" in the .pro gets them linked.

    I am wondering how QMake came up with this. I can't find anything similar in either my project files or the various setup scripts in the SDK. Can anyone enlighten me?

    -- Tom


    Added after 12 minutes:


    Slight correction. My Qt version is 4.7.3, QMake version 2.01a. The odd item seems to be in all Makefile.Release and Makefile.Debug it has generated.
    Last edited by tksharpless; 17th February 2012 at 18:00.

  2. #2
    Join Date
    Oct 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How does QMake know about openSSL-Win32_full?

    Quote Originally Posted by tksharpless View Post
    I'm building a Qt app that calls some openSSL functions directly; so I have to link it with the import libraries from a local installation of openSSL. While setting it up (On Windows with Qt SDK 4.6) I noticed an unexpected item in the Makefiles generated by QMake.

    In the LIBS line it has " /LIBPATH:C:\OpenSSL-Win32_full\lib", regardless of whether that directory exists, and regardless of whether my .pro file mentions openSSL libraries; it is in Makefiles for both MSVC and MinGW. In fact I created that directory and put my import libs there, then "LIBS += libeay32.lib libssl32.lib" in the .pro gets them linked.

    I am wondering how QMake came up with this. I can't find anything similar in either my project files or the various setup scripts in the SDK. Can anyone enlighten me?

    -- Tom


    Added after 12 minutes:


    Slight correction. My Qt version is 4.7.3, QMake version 2.01a. The odd item seems to be in all Makefile.Release and Makefile.Debug it has generated.
    You need also include this into .pro.

    INCLUDEPATH += path_to_openssl/Openssl/include
    DEPENDPATH += path_to_openssl/Openssl/include

    Outside development environment, you have to copy Openssl libs and includes to work. Or, install openssl in the cpu.


Similar Threads

  1. QT and OpenSSL EVP.h
    By TCB13 in forum Newbie
    Replies: 16
    Last Post: 4th September 2011, 21:04
  2. Help! Qt 4.6.0+Symbian SDK 5 does not support OPENSSL
    By coco in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 8th October 2010, 17:13
  3. problem of building qt with openssl
    By dorians58 in forum Newbie
    Replies: 1
    Last Post: 11th August 2010, 23:47
  4. Qt for Windows CE with OpenSSL support
    By Jonas in forum Installation and Deployment
    Replies: 2
    Last Post: 4th February 2010, 08:36
  5. Qt 4.5 Openssl problem
    By srikanth_trulyit in forum Installation and Deployment
    Replies: 1
    Last Post: 10th June 2009, 10:54

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
  •  
Qt is a trademark of The Qt Company.