Vorporeal said:
(First off, I'm using it on Windows, but I can make the Lin->Win conversions fine.)
(Second, I know a good amount about developing, so that might help you some with your responses.)
I'm using it on windows with mingw. I put the SDL includes in C:/MinGW/include/SDL/... - I should therefore be able to just "#include "SDL/SDL.h". And yes, that works. The problem is that QtCreator says "file not found", and therefore code-completion fails. Everything compiles without a hitch though, as the header actually exists right there. It doesn't just do this for user-added libraries - "#include <iostream>" and "#include <stdio.h>" fail in exactly the same way.
EDIT: I'm not using any headers that require me to change the INCLUDEPATH. They're all in the project folder or in the <pathtomingw>/include folder (or subdirectory).
Please check your default compiled includepath (with the command "$(gcc -print-prog-name=cc1plus) -v").
If your MinGW includepath is in there, it seems that Creator and cpp aren't in sync when it comes to includedirs somehow.
Try going to "Projects->[chose project]->[chose your target]->Build Environment" and choosing "Clear system environment", which ensures that qmake runs with a clean environment (I dunno if your includepath is set globally or not, but better to be on the safe side). You will also need to set all of your envs manually (you can do so in the same window btw), especially PATH, so that qmake can find everything it needs such as make etc.
I'm currently pulling and compiling the creator source, so I'll see exactly which paths are searched. BRB with more info.
EDIT: QtCreator uses the output of "g++ -xc++ -E -v -" to generate it's default include paths. It literally parses that output by searching for the "#include <"-line and including all folders mentioned after that line, until "End of search list.". Basically, it uses all the include dirs that g++ says it has.
So, the problem must lie with your g++/cpp version that has other include paths than it reports. Try using that info.
You can also try to hack on "qt-creator/plugins/project-explorer/toolchain.cpp" line 128 in "git://labs.trolltech.com/qt-creator" if the problem seems to be something else.
If nothing else works, as a last resort, it might be necessary to add the C:/MinGW/include/-folder to includepath even if it's a default path; sometimes strange devsystems just don't work.