Qt5 on MAC OS X
-
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
widgetsTARGET = QtGrid
TEMPLATE = appSOURCES += main.cpp
MainWindow.cpp
DataCacher.cpp
Server.cpp
Structs.cpp
VDatagridView.cppHEADERS += MainWindow.h
DataCacher.h
Server.h
Structs.h
VDatagridView.hFORMS += 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 -
[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
-
[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