PDA

View Full Version : HELP! QtCreator can't find the QtSDK headers anymore!



paie
14th August 2011, 01:54
I can't believe this. Even my threads are not working today. Sorry for reposting this, but the first post just prints an empty page! OY!

So, I tried to create a "release" version, but it would not execute without cloning qtgui4.dll and qtcore4.dll into the same directory as the executable.

I should have left well enough alone.

So, I googled what I thought was a problem and found instructions to simply add the paths to those dlls to my system path.

Well, now the QtCreator syntax highlighter indicates that all the QtSDK headers are not there, and the syntax highlighting for all the QtSDK classes and enums indicates that they are undefined.

Oddly, the project seems to build ok, but it won't run anymore. I get this message.

Starting C:\Code\Projects\bits\bits-build-desktop\bits.exe...
The process could not be started: The system cannot find the file specified.

But, the correct directory for the build would be ..\bits-build-desktop\debug or ..\bitsbuild-desktop\release, for the respective targets.

How can I get the QtSDK headers recognized by the QtEditor again, and how can I fix my build?

Added after 34 minutes:

Spoke too soon.

Won't build anymore, because it can't find the headers.

No surprise there, I guess.

When all fails, re-install. ...

paie
14th August 2011, 13:48
Re-install didn't help.

Something is wrong with the environment, but I just can't figure what.

QT_INSTALL_HEADERS is pointing to the correct directory, so I just don't know what it is.

It was nice having the auto-completion hints when hovering over Qt types. That's all gone now. When I hover my mouse over the include directives, like #include <QtCore>, I get the following message.

"No such file or directory"

I'm stumped!

QtCreator is utterly crippled as an IDE the way it is now.