in old qt3, everything is put into /usr/qt/3. but gentoo's qt4 ebuild scatters that in /usr/lib/qt4, /usr/include/qt4, /usr/sbin, and so on. the problem is, some IDEs ask for "qt's location" when starting a qt4-project. so does codeblocks for example. it assumes, everything from qt4 can be found in this path and defined subpath of them (./lib, ./include, ./bin, and so on)... Reproducible: Always Steps to Reproduce: 1. emerge qt4 2. emerge codeblocks 3. try to create a qt4 project in codeblocks
I don't see what's exactly wrong w/ QT4 locations, they match the standard FS hierarchy pretty nicely (unlike QT3). Maybe someone could fix codeblock issues instead.
This is not a bug, you have to setup codeblocks manually in order to build qt4 projects (qt4 variable must be set in Settings -> Global variables...). See this thread: http://forums.codeblocks.org/index.php/topic,5598.0.html moreover, look at the output of: pkg-config QtCore QtGui --cflags and pkg-config QtCore QtGui --lflags You can retrieve sets of useful qt4 flags using pkg-config for: /usr/lib/pkgconfig/QtCore.pc /usr/lib/pkgconfig/QtDBus.pc /usr/lib/pkgconfig/QtGui.pc /usr/lib/pkgconfig/QtNetwork.pc /usr/lib/pkgconfig/QtOpenGL.pc /usr/lib/pkgconfig/QtSql.pc /usr/lib/pkgconfig/QtSvg.pc /usr/lib/pkgconfig/QtTest.pc /usr/lib/pkgconfig/QtXml.pc