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. Qt5 on MAC OS X
Qt 6.11 is out! See what's new in the release blog

Qt5 on MAC OS X

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 3.4k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi,
    my setup is Qt 5.0.1 (64 bit),
    Qt Creator 2.6.2,
    XCode 3.2.6
    and i am trying to build and run an application.
    My .pro file is:
    @QT += core gui
    widgets

    TARGET = QtGrid
    TEMPLATE = app

    SOURCES += main.cpp
    MainWindow.cpp
    DataCacher.cpp
    Server.cpp
    Structs.cpp
    VDatagridView.cpp

    HEADERS += MainWindow.h
    DataCacher.h
    Server.h
    Structs.h
    VDatagridView.h

    FORMS += MainWindow.ui
    VDatagridView.ui
    @
    and i get the following warnings/ error:
    @:-1: warning: directory '/Applications/Qt5.0.1/5.0.1/clang_64/qtbase/lib' following -F not found@
    @:-1: warning: in /Applications/Qt5.0.1/5.0.1/clang_64/lib/QtOpenGL.framework/QtOpenGL, file was built for unsupported file format which is not the architecture being linked (i386)@
    @:-1: warning: in /Applications/Qt5.0.1/5.0.1/clang_64/lib/QtWidgets.framework/QtWidgets, file was built for unsupported file format which is not the architecture being linked (i386)@
    @:-1: warning: in /Applications/Qt5.0.1/5.0.1/clang_64/lib/QtGui.framework/QtGui, file was built for unsupported file format which is not the architecture being linked (i386)@
    @:-1: warning: in /Applications/Qt5.0.1/5.0.1/clang_64/lib/QtCore.framework/QtCore, file was built for unsupported file format which is not the architecture being linked (i386)@
    @:-1: warning: in /Applications/Qt5.0.1/5.0.1/clang_64/lib/QtPrintSupport.framework/QtPrintSupport, file was built for unsupported file format which is not the architecture being linked (i386)@
    @:-1: error: symbol(s) not found@
    @:-1: error: collect2: ld returned 1 exit status@

    Also i am trying to build/run an example to confirm that the installation is ok but i get similar errors/warnings. Has anyone idea what's the solution to this problem?
    Thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      [quote author="salvador" date="1364058314"]Has anyone idea what's the solution to this problem?[/quote]

      Seems like a mismatch of the architecture used to build the libraries. Check the solutions from similar threads:

      • "MYSQL Installation on Mac OS X":http://qt-project.org/forums/viewthread/17139
      • "Compiling on MacOSX":http://qt-project.org/forums/viewthread/15879
      • "On Mac: ...file was built for unsupported file format.. - SOLVED":http://www.qtcentre.org/threads/30670-On-Mac-quot-file-was-built-for-unsupported-file-format-quot-SOLVED

      http://anavi.org/

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

        I think my solution is the third link but i don't know how to use the configure command. He says that this @./configure CC="gcc -arch i386" CXX="g++ -arch i386"@ helped him. What does this command does exactly?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          [quote author="salvador" date="1364062627"]What does this command does exactly?[/quote]

          Have a look at "step 2 of the documentation for installing Qt for Mac OS X":http://qt-project.org/doc/qt-5.0/qtdoc/install-mac.html#step-2-build-the-qt-library

          http://anavi.org/

          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