Linking different architecture libs



  • I have a few compiled 3rdparty libraries for 32bit and 64bit but I know only how to link one architecture at time and compile one at a time:

    win32:LIBS        += -L$$PWD/3rdparty/tretacor/32/lib/ -ltretacor
    win32:INCLUDEPATH += $$PWD/3rdparty/tretacor/include
    win32:DEPENDPATH  += $$PWD/3rdparty/tretacor/32
    

    How to call 64 folder if compiling in 64bit and 32 in 32bit on the pro file?



  • Hi!

    contains(QT_ARCH, i386)
    {
        // ...
    }
    
    contains(QT_ARCH, x86_64)
    {
        // ...
    }
    


  • @Wieland Thank you very much <3


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.