11-21-2009, 06:54 AM #1
QT Framework precompilation with XCode
- Member Since
- Nov 21, 2009
I am currently working on a QT C++ project and have been able to get it to compile using the following steps:
- Place all my .h and .cpp files in the directory MyProject
- Run make clean (obviously not on the first go)
- Create the QT project file using qmake -project
- Do the QT precompilation (qmake -spec macx-g++ && qmake)
- Open the .xcodeproj file then build and run.
I have wrapped this in a shel script which I can run and do it all at once.
#/bin/bash make clean qmake -project echo "QT += network" >> MyProject.pro qmake -spec macx-g++ qmake # Now open the .proj file and build with xcode
My question is does anyone know of another way to do this? I need to generate all the temporary files used by QT, setup the XCode project in the same way (with all libraries and settings) but without having to redo the whole thing. As I say I think there are some linker options being set and I am looking into those but in case there is some standard or obvious method I am missing I figured I would post now as well.
Thanks in advance.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By canislupis100 in forum OS X - Apps and GamesReplies: 0Last Post: 03-05-2011, 07:56 PM
By DEKANONE in forum OS X - Apps and GamesReplies: 5Last Post: 06-02-2010, 03:41 PM
By nub4evr in forum OS X - Development and DarwinReplies: 0Last Post: 11-07-2009, 06:35 PM
By Rafi Shalom in forum OS X - Development and DarwinReplies: 1Last Post: 04-17-2008, 01:14 PM
By Liam in forum OS X - Operating SystemReplies: 3Last Post: 10-12-2006, 07:18 PM