Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Linking different architecture libs
Qt 6.11 is out! See what's new in the release blog

Linking different architecture libs

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 682 Views 2 Watching
  • 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.
  • D Offline
    D Offline
    Dohisev
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi!

      contains(QT_ARCH, i386)
      {
          // ...
      }
      
      contains(QT_ARCH, x86_64)
      {
          // ...
      }
      
      D 1 Reply Last reply
      3
      • ? A Former User

        Hi!

        contains(QT_ARCH, i386)
        {
            // ...
        }
        
        contains(QT_ARCH, x86_64)
        {
            // ...
        }
        
        D Offline
        D Offline
        Dohisev
        wrote on last edited by
        #3

        @Wieland Thank you very much <3

        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