Results 1 to 3 of 3

Thread: How to use OpenSSL in subdirs project

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Oct 2012
    Posts
    132
    Thanks
    10
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: How to use OpenSSL in subdirs project

    I have been using the suggested solution - providing the full location in the pro file - yet.
    The problem is that I have to distinguish between the 64-bit and the 32-bit versions then. To avoid that I was using the subdirs project (according to ChrisW67 suggestion in the last thread) which works very well for my own libraries.

    I think there is no other way then using the code to determine the target architecture he added later in the last thread (I'm using the Linux version on Windows because I'm using MinGW instead of msvc):
    Qt Code:
    1. win32 {
    2. win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
    3. win32-g++-32:QMAKE_TARGET.arch = x86
    4. win32-g++-64:QMAKE_TARGET.arch = x86_64
    5. contains(QMAKE_TARGET.arch, x86_64):{
    6. LIBS += -L../../openssl-mingw_amd64/lib/ -lcrypto
    7. } else {
    8. LIBS += -L../../openssl-mingw_i386/lib/ -lcrypto
    9. }
    10. } else
    11. # ...
    To copy to clipboard, switch view to plain text mode 
    Of course this works, but now I'm needing the target architecture again which ChrisW67 advised me to avoid (that's why I was asking for a global place to install the libs like it is possible on Linux).
    I think the problem is solved, but if there's a better solution I'm still interested.
    Last edited by Infinity; 10th January 2014 at 23:49.

Similar Threads

  1. QtCreator subdirs - Dependencies of project
    By folibis in forum Qt Tools
    Replies: 1
    Last Post: 13th September 2013, 08:03
  2. QMake Call a pre-written makefile from a SUBDIRS project
    By Mookie in forum Qt Tools
    Replies: 0
    Last Post: 12th December 2011, 14:05
  3. Help with qmake's SUBDIRS template
    By danielperaza in forum Qt Programming
    Replies: 3
    Last Post: 15th May 2011, 09:12
  4. using the subdirs Template
    By bhs-ittech in forum Newbie
    Replies: 2
    Last Post: 23rd November 2007, 10:45
  5. Templates vcapp and subdirs together
    By xgoan in forum Newbie
    Replies: 1
    Last Post: 24th August 2006, 10:46

Tags for this Thread

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.