[Qt-interest] Ulternative to qmake
Daniel Price
daniel.price at fxhome.com
Mon Sep 13 10:07:12 CEST 2010
I'm late to the party, but I'll note that there's *NOTHING* magical
about qmake that makes its use mandatory; you can build Qt
apps using any build system you like.
Unless you happen to be use Qt Creator which is geared towards QMake. While it is possible to use other build systems with it, it's very hard work.
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Atlant Schmidt
Sent: 10 September 2010 18:49
To: 'yogesh upreti'; qt-interest at trolltech.com
Subject: Re: [Qt-interest] Ulternative to qmake
Yogesh:
I'm late to the party, but I'll note that there's *NOTHING* magical
about qmake that makes its use mandatory; you can build Qt
apps using any build system you like. For historical reasons,
the project I'm currently working on is built using gmake and
we never use qmake at all.
Qmake is just a convenient short-cut for a lot of people because
it's very easy to explain to people that the entire build procedure
for a Qt project is, from scratch, simply:
1. qmake -project
2. qmake
3. make
whereas other methods where you create your own makefiles
require that you be able to, well, *CREATE* your own makefiles.
But as Daniel observes, if you *HAVE* created your own makefiles,
then everything is fully transparent and visible; there's no "magic"
being hidden by qmake (and qmake hides *LOTS* of magic from
the casual developer).
Basically, to build a Qt app, you:
1. uic any .ui files you have into .h files
2. moc any .h files that contain the Q_OBJECT macro into moc_blahblahblah.cpp files
3. compile all the .cpp files into .o files
4. link the resulting .o files (and .a/.so libraries) into your target object
For simple projects, steps 3 and 4 are combined.
Atlant
________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of yogesh upreti
Sent: Friday, September 10, 2010 03:09
To: qt-interest at trolltech.com
Subject: [Qt-interest] Ulternative to qmake
Hallo group,
What are the other way to compile my project then qmake?
qmake is not working in my laptop anymore, whenever I start it hangs and nothing happens.
Is there another way to build a project?
Regards,
Yogesh Upreti
Click here<https://www.mailcontrol.com/sr/RW0rvH3oMPfTndxI!oX7Ulvwl1GqFAPr8Spc!+2sWNutWa4v9t3R7OzGfTfFy4GV5CtN22G6Q+z63Umxp4EWgA==> to report this email as spam.
________________________________
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.
Thank you.
Please consider the environment before printing this email.
________________________________
This email is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. Errors and Omissions Excluded. If you are not the intended recipient please notify the sender. Please delete the message from all places in your computer where it is stored. You should not copy the email or use it for any purpose or disclose its contents to any other person. To do so may be unlawful. Email is an informal means of communicating and may be subject to data corruption accidentally or deliberately. For this reason it is inappropriate to rely on advice contained in an email without obtaining written confirmation of it first.
FXhome Limited is a limited company registered in England and Wales. Registered number: 04172812. Registered office: The Henderson Business Centre, Ivy Road, Norwich, Norfolk, NR5 8BF, U.K.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100913/f0559da7/attachment.html
More information about the Qt-interest-old
mailing list