Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 178427

Summary: dev-util/codeblocks has issues w/ qt4 location
Product: Gentoo Linux Reporter: Josef Hahn <mail>
Component: New packagesAssignee: Jurek Bartuszek (RETIRED) <jurek>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Josef Hahn 2007-05-13 20:18:42 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-13 20:26:38 UTC
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.
Comment 2 Jurek Bartuszek (RETIRED) gentoo-dev 2007-05-14 00:20:23 UTC
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