Qt-interest Archive, January 2007
Qt and XCode project - updating the project .mak files
Message 1 in thread
Hi all. So I have a project I've been working on in XCode that I
generated using "qmake -spec macx-xcode yadda.pro". Since creation,
I've tweaked some settings, added some files, libs, etc. After
adding a few files that extend QObject and make use of slots and
signals (i.e., needs to be moc'd), my project won't rebuild
properly. I assume this is because the qt_preprocess.mak isn't
automatically updated by any generated script step generated by the
original qmake call.
My question is: Is there any automatic way to update the .mak files
in the project directory without blasting everything I added to it
subsequently?
Thanks,
Bruno Trindade
Señor Software Engineer
bruno@xxxxxxxxx
Message 2 in thread
Bruno Trindade wrote:
> Hi all. So I have a project I've been working on in XCode that I
> generated using "qmake -spec macx-xcode yadda.pro". Since creation,
> I've tweaked some settings, added some files, libs, etc. After adding
> a few files that extend QObject and make use of slots and signals
> (i.e., needs to be moc'd), my project won't rebuild properly. I
> assume this is because the qt_preprocess.mak isn't automatically
> updated by any generated script step generated by the original qmake
> call.
>
> My question is: Is there any automatic way to update the .mak files
> in the project directory without blasting everything I added to it
> subsequently?
>
I think that when working with Qt projects, you need to modify the .pro
file, and use qmake to regenerate the xcode project from that. What you
want seems quiet backwards from what Qt qmake does.
Paul.
--
[ signature omitted ]
Message 3 in thread
I would second this suggestion. Qt makes cross platofrm development
possible. qmake further makes cross platofrm development possible. By
sticking to updating your .pro and .pri files you can generate VS and
XCode projects as well as Makefiles at any time. That's a lot easier
then maintaining multiple build systems don't you think?
Perhaps I'm primitive but I use XCode every day and can accomplish
everything I need (including custom plists, bundled resource files,
and a custom application icon to boot) all thanks to qmake....
-Will
On 1/18/07, Paul Koshevoy <paul@xxxxxxxxxx> wrote:
> Bruno Trindade wrote:
> > Hi all. So I have a project I've been working on in XCode that I
> > generated using "qmake -spec macx-xcode yadda.pro". Since creation,
> > I've tweaked some settings, added some files, libs, etc. After adding
> > a few files that extend QObject and make use of slots and signals
> > (i.e., needs to be moc'd), my project won't rebuild properly. I
> > assume this is because the qt_preprocess.mak isn't automatically
> > updated by any generated script step generated by the original qmake
> > call.
> >
> > My question is: Is there any automatic way to update the .mak files
> > in the project directory without blasting everything I added to it
> > subsequently?
> >
>
> I think that when working with Qt projects, you need to modify the .pro
> file, and use qmake to regenerate the xcode project from that. What you
> want seems quiet backwards from what Qt qmake does.
>
> Paul.
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]