Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Clang_32 wants to compile x86_64
QtWS25 Last Chance

Clang_32 wants to compile x86_64

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 2 Posters 2.1k Views
  • 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
    drhalftone
    wrote on last edited by
    #1

    I just downloaded Qt 5.0.2 source and compiled/installed it on Mac OS X 10.8.3 using:

    /configure -prefix /QtSDK/Qt5.0.2/5.0.2/clang_32 -platform macx-clang-32

    and then I opened a project that I've been compiling using Qt 4.8.4 which I compiled and installed using the old -arch i384 configure option. When I now try to compile the project, I get the following error:

    ignoring file /QtSDK/Qt5.0.2/5.0.2/clang_32/lib/QtGui.framework/QtGui, file was built for unsupported file format ( 0xce 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 0 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (x86_64): /QtSDK/Qt5.0.2/5.0.2/clang_32/lib/QtGui.framework/QtGui

    As I read this, it says that its trying to target x86_64 for an installation compiled for i386.

    How do I fix this?

    Sincerely,
    Dan

    1 Reply Last reply
    0
    • D Offline
      D Offline
      drhalftone
      wrote on last edited by
      #2

      Just to add a little bit more information, I used qmake to create an XCode project, and from XCode, the application compiles perfectly with a handful of warnings but no errors. And it seems to run just fine. So I'm thinking the issue is with a Qt Creator setting and not a qmake issue. Anyone know what I could be doing wrong?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Check the compiler used in your Kits for your Qt version

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • D Offline
          D Offline
          drhalftone
          wrote on last edited by
          #4

          Yes, that's the first thing I tried after having compiled and installed the clang32 libraries. So I went to manage kits, then I manually added a new kit, "Desktop Qt 5.0.2 clang 32bit," and used the compiler pull down menu to select Clang (x86 32 bit).

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Strange...
            Can you try to add

            @CONFIG+=x86@

            to your pro file ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • D Offline
              D Offline
              drhalftone
              wrote on last edited by
              #6

              Yes, I tried that early on as well.

              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