Isn't it possible to do the compilation just by making qmake && make your build sequence in the IDE?
Isn't it possible to do the compilation just by making qmake && make your build sequence in the IDE?
It should be possible, i've used only use custom makefile option. As i said i got an error on makefiles generated by qmake & i don't know the reason jet so i was using own makefiles.
it would be nice to have qmake & make integrated with IDE but first qmake must work. When i'll force qmake to work properly, i'll start searching how to integrate it with dev-cpp in best way.
What kind of make do you have? What does make -v return?
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
i think it can be caused by missing tab after FORCE:
but i can't test it now - i'm using vs2005 with integration in work while dev-cpp with open-source edition of qt at home, i'm working now and unluckily have no network at home so i'll come up at monday with more details about qmake on mingw.
on the margin: those qmake supports doxygen or some other source documentation tools?
I don't have anything missing in my qmake+gmake makefiles... What is the exact error message you get? And what are the exact conditions of getting it?
Sorry, my error was caused by delphi installed on my system. I've forgot about it(long time not used) & didn't checked paths order in environtment and qmake tried to use borland's make...
stupid mistake...
anyhow, dev-cpp allows to use custom makefile or *.mak make addons.
I don't know what are those addons, but setting custom makefile to one generated by qmake shall be enough to work with single projects(makefile generated from qmake has a rule to regenerate itself from *.pro file, so it should guarantee makefile to be up to date).
personally i prefer to keep using makefiles written by hand - it's not so hard & allows me to have multiple projects in one environment(a bit like solution in vs)by using separate makefiles for projects & dev-cpp set to makefile that builds application and calls makes to build a number of dlls recursively. There will be source documentation generated from those makefiles in future and help file compilation.To do this with qmake i would have to provide pro files, makefiles for them and additional makefile that calls them, it's more things to maintain without bigger benefits for me, but as i said - for single projects qmake's makefile should do the work.
Only if the .pro file changes. But if you only change one of the files that require the makefile to be recreated (like when adding a Q_OBJECT macro to an existing class), you need to rerun qmake manually. Furthermore, if you add a new file to the project, you'll have to modify the .pro file manually as well.
qmake supports that as well. Just take a look at the SUBDIRS template for qmake. You can also make qmake generate make rules for things you mention - like building help and documentation. Some features that are poorly documented (or even not documented at all) might be explained better in our wiki.personally i prefer to keep using makefiles written by hand - it's not so hard & allows me to have multiple projects in one environment(a bit like solution in vs)by using separate makefiles for projects & dev-cpp set to makefile that builds application and calls makes to build a number of dlls recursively.
It's really good article, it seems that qmake can do all that stuff that make can!
hmm... i don't know, there's no features that would be MUCH easier with qmake than with make. I'm familiar with make enough to feel comfortable with maintaining makefiles as well as qmake projects. In addition dev-cpp's dump debugger fails to trace errors in files that are build in sub makefile, it traces only files mentioned in main makefile so i'm compiling only release version without additional subdirs for output(everything builds into target structure of directories). qmake makes some mess for me with generating lots of unwanted files.
I really don't know, it's hard choice... i think qmake is powerful tool that can do some work for me, but it also does some unwanted tasks...
maybe i just like to have full control over my source and qmake (as every automation tool) takes over some control to make things easier... makefile have just view lines more than *.pro and keep lower number of files to maintain.
qmake doesn't substitute make! It uses it to obtain its goal instead. You can't use qmake without make, be aware of that. qmake is just a tool for maintaining the project - something make can't do on its own. If you like writing makefiiles, you might not use qmake at all or try to mimic its behaviour using pure make rules. Just remember that qmake guarantees that Qt applications will build properly. Without it you have to guarantee that yourself by adding or removing appropriate defines or other statements to the makefile.
mchara (12th November 2007)
Bookmarks