User forums > Help

Error compiling QT application

<< < (2/6) > >>

rickg22:
OK. Now, inside codeblocks, in the compiler options (don't remember exactly where), you must use the "compile using makefiles" option (dig around, it should be in there somewhere). Try recompiling and post the result here.

This is VERY important! We need your feedback on this issue to confirm the bug.
Thanks.

Sputnik:
Well, I think the option you're talking about is called "build method"; located in settings->compiler->others, so I selected "work with makefiles"... and the same errors happened.
I forgot... I'm working on WinXP Pro.

rickg22:
So, if you build inside codeblocks, errors happen, but outside it's fine?

Please create a small test case (hello world?) and submit the bug report at sourceforge (of course, including the code for your test case!).

mandrav:
Does the new QT project template build and run correctly?

Yiannis.

Sputnik:
Yes, it does. As I said before, it seems to have trouble with those special header files without extension (i.e. <qtGui>)
Reading the QT documentation, I found that you have to follow these steps to compile an app:

qmake -project    ->This creates a project file (.pro)
qmake                ->Creates a platform-specific makefile based on the project file
make

So I went to project configuration and typed all in project properties->project's build options->commands, into pre-build steps text area, and also selected "make" as the build method in global compiler options->other; then I tried to build the project and, after a while without response, I stopped the process, receiving an "unspecified error" alert. After that, I'm unable to try to compile again because that option remains disabled.

Hope this helps to find what's happening...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version