Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Caladan on September 19, 2008, 09:11:01 am
-
Hello
To get the QT4 wizard working I added the following to the global variable qt:
base: /usr/share/qt4
include: /usr/share/qt4/include
lib: /usr/share/qt4/lib
and that seems to do the trick, however when I try to compile the default project made by the wizard I get the following error:
Compiling: main.cpp
cc1plus: error: /usr/share/qt4/include/QtGui: not a directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
I did a google search on the error and found 1 entry which was in french and I think it was about adding
/usr/include/qt4
/usr/include/qt4/QtGui
/usr/include/qt4/QtCore
to the compiler/debugger search directory list, but that makes no diffrence, but then I could have read it wrong.
/usr/share/qt4/include/QtGui does exists but its a link to /usr/include/QtGui/QtGui
So what to do ?
Thank you for your help.
Cal
-
So what to do ?
Just edit the wizard to fit your needs (it's very simply! Just right-click on the wizard and select "edit").
The place and names for libs / includes in QT changes with every release. I am sick of adopting this wizard over and over again. We can't make it compatible with each and every release the trolltech guys do.
-
thank you MortenMacFly,
however what maybe simple to you is not to me right now. With the above info could you give some indication as to what needs to be changed ?
Got it working (not changed the wizard yet) for those with the same issues this is on OpenSuse 11 with Code::Blocks 8.02
Projects, Builds Options, Search Directories:
remove /usr/share/qt4/include/QtGui
add /usr/include/qt4
add /usr/include/QtGui
add /usr/include/QtCore
and then it seems to work fine.
Cal