User forums > Help
Problem when compiling Qt3.3.3 app...
yop:
A simple work around would be to export your makefile and then use the generated makefile as a custom makefile. But as I can see you are trying to do something that I don't really get. The preprocessing steps you mentioned will generate two makefiles if codeblocks is set up to use makefiles, the first will be the qmake generated one wich will be build from the code blocks generated makefile that will actually build the project. In the above situation the qmake generated makefile won't participate in the make process. Am I missing something here?
When I started using codeblocks I used this workaround http://forums.codeblocks.org/index.php/topic,615.0.html (creating tools etc...) Another thing is that the QT Template supplied with codeblocks is so minimal that it can leed to wrong conclusions (like beeing able to build a super qt project based on that one as you can do with let's say the opengl template) but trolltech has so many custom features that need special handling that it's not just write code include headers provide libs and shoot, it's got many neccessery :( preproccessing steps that trolltech has done a big effort (with qmake) to make them automatic.
Mage2k:
Yop, thanks for your response and tip about using the tools to run qmake, that worked perfectly. What I was doing before was pretty much the same as Sputnik's solution (listed earlier in the trhead you linked) with the only difference being that I was flipping the "Use custome Makefile" setting rather than "Use makefiles/Invoke compiler directly" setting to invoke the prebuild steps. But, moving the qmake invocations into tools to be run before building makes more sense and works much more cleanly.
Navigation
[0] Message Index
[*] Previous page
Go to full version