Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5 Mac: Building x86 on x64 Mac not possible?
Qt 6.11 is out! See what's new in the release blog

Qt 5 Mac: Building x86 on x64 Mac not possible?

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 3 Posters 4.9k Views 1 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.
  • S Offline
    S Offline
    stephenju
    wrote on last edited by
    #1

    I tried to build x86 version of Qt 5 on a x64 Mac by specifying the old -arch x86 configure option. It turned out to be completely ignored and the resulting libraries are still in x64.

    Before I try another half-day build session, does anyone know how to build 32-bit Qt 5 on a 64-bit Mac? Or it's no longer supported? Thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stephenju
      wrote on last edited by
      #2

      BTW. make confclean no longer work either. It's quite hard to change configure options now...

      1 Reply Last reply
      0
      • S Offline
        S Offline
        steno
        wrote on last edited by
        #3

        Did you ever figure out how to do this?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stephenju
          wrote on last edited by
          #4

          In fact I did. You need to add

          @-platform macx-clang-32@

          to your configure option. I am actually using

          @-platform macx-clang-libc++-32@

          since I need to link against libc++.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jthomps
            wrote on last edited by
            #5

            Hi, thanks for your post, I was able to build both macx-clang and macx-clang-32 successfully (using different -prefix configure options).

            Prior to qt5, I was able to specify -arch x86 and -arch x86_64 in the same configure step and the resulting Qt libraries were both 32-bit and 64-bit compatible. I attempted to specify the -platform option twice, but Qt5 only builds the last platform specified on the configure command.

            Does anyone know of a method to build Qt5 32-bit and 64-bit so that the resulting libraries support both?

            Thanks,

            Jeff

            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