Setting QT in Xcode step by step guide
HI , This post is for those who are new in xcode & Qt....
Suppose your project name is myproj .
1. write all .CPP,.H & .pro file in a folder.
2. write these commands in terminal------
3. cd /myproj
4. qmake -o makefile myproj.pro
5. qmake -spec macx-g++
6. qmake &&make.
after successfull build ...
7. qmake -spec macx-xcode
then your project folder will be having xcode file open it by double clicking...... now you can edit your application in XCODE.
Re: Setting QT in Xcode step by step guide
many thanks for this tutorial, it works very fine
Re: Setting QT in Xcode step by step guide
Quote:
Originally Posted by
anupam
HI , This post is for those who are new in xcode & Qt....
Suppose your project name is myproj .
1. write all .CPP,.H & .pro file in a folder.
2. write these commands in terminal------
3. cd /myproj
4. qmake -o makefile myproj.pro
5. qmake -spec macx-g++
6. qmake &&make.
after successfull build ...
7. qmake -spec macx-xcode
then your project folder will be having xcode file open it by double clicking...... now you can edit your application in XCODE.
I have noticed the default 'makespec' will be either 'macx-g++' or 'macx-xcode' depending on how you install Qt. For me, since I compile from source, it is 'macx-g++' and will use this unless I specify otherwise.
I think some of these steps are not necessary. If I have just the source code and Qt project file I can setup everything for XCode by the following steps:
1. qmake -spec macx-xcode
<done>
Startup XCode, load the project, and you are all set.