Author Topic: linux - QT4 - error: /usr/share/qt4/include/QtGui: not a directory  (Read 6124 times)

Caladan

  • Guest
linux - QT4 - error: /usr/share/qt4/include/QtGui: not a directory
« 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: linux - QT4 - error: /usr/share/qt4/include/QtGui: not a directory
« Reply #1 on: September 19, 2008, 09:21:36 am »
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Caladan

  • Guest
Re: linux - QT4 - error: /usr/share/qt4/include/QtGui: not a directory
« Reply #2 on: September 19, 2008, 11:39:16 am »
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
« Last Edit: September 19, 2008, 12:16:02 pm by Caladan »