New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

QT Framework precompilation with XCode


Post Reply New Thread Subscribe

 
Thread Tools
Shadowbadger

 
Member Since: Nov 21, 2009
Posts: 1
Shadowbadger is on a distinguished road

Shadowbadger is offline
I am currently working on a QT C++ project and have been able to get it to compile using the following steps:
  1. Place all my .h and .cpp files in the directory MyProject
  2. Run make clean (obviously not on the first go)
  3. Create the QT project file using qmake -project
  4. Do the QT precompilation (qmake -spec macx-g++ && qmake)
  5. 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.

Code:
#/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
Now whilst all of this works fine it involves creating a new XCode project each time (losing any of my project settings) and because qmake sets up some linking and generates .moc files used by QT for its Signals/Slots functionality I need to run it pretty much every time I create a new class.

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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Problem with launching x11 applications | How to get the contents displayed inside MAC Native Dialog into a Java componet/Image »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Xcode, Subversion, and directory behaviour Reinderien OS X - Development and Darwin 1 03-10-2009 11:50 AM
Carbon framework on XCode Rafi Shalom OS X - Development and Darwin 1 04-17-2008 01:14 PM
Xcode 1.5 alejandrico OS X - Development and Darwin 0 06-03-2006 05:56 PM
XCode Include path problem Jove OS X - Development and Darwin 0 03-18-2005 09:41 AM
New Xcode plug-in helps developers reuse code Murlyn OS X - Development and Darwin 0 11-10-2003 12:16 PM

All times are GMT -4. The time now is 08:51 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?