[Qt-creator] Makefiles don't match Qt Creator's expectations

Andrew Hodgkinson ahodgkinson at endurancetech.co.uk
Sat May 16 19:43:39 CEST 2009


If I run 'qmake' from within Qt Creator 1.0.0 on Qt Embedded 4.5.1 source 
tree project, or otherwise modify a project so that Qt Creator rebuilds 
the Makefiles, the files it generates don't seem to do what Qt Creator wants.

The build target in both Makefile.debug and Makefile.release is "all", 
with a rule "first: all" also present. Qt Creator expects (and requires) 
distinct rules of "debug" and "release" instead. Although the project 
properties can be edited so that Qt Creator uses a rule of 'all' instead, 
this doesn't help because then Qt Creator doesn't know whether it is 
building a release or debug version, so which one you get ends up being a 
bit of a lottery. Instead, it seems necessary to hand-edit the targets in 
the Makefiles - then everything works fine.

I've also noticed that in my particular installation at least, "qmake" 
builds an INCPATH value using local path references (e.g. "-I 
../../../<foo>"), but this fails completely when Qt distribution header 
files include parts of themselves. A fixed, yet relative path from an 
individual header file's location doesn't make any sense. Thus, these 
also need hand-replacing in generated Makefiles to put absolute paths to 
the installed Qt Embedded library location there instead.

Are either of these problems known issues, or does it look like I have 
some kind of configuration fault in my source tree?

Thanks,

-- 
TTFN, Andrew Hodgkinson
Find some electronic music at:     Photos, wallpaper, software and more:
http://pond.org.uk/music.html                        http://pond.org.uk/



More information about the Qt-creator-old mailing list