Bug 161830 - QT_QT_INCLUDE_DIR could not be set
Summary: QT_QT_INCLUDE_DIR could not be set
Status: RESOLVED NOT A BUG
Alias: None
Product: buildsystem
Classification: Developer tools
Component: KDE4 (cmake) (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Neundorf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-09 06:48 UTC by Alan Moss
Modified: 2008-05-09 11:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Moss 2008-05-09 06:48:31 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

After setting up my development environment (http://techbase.kde.org/Getting_Started/Build/KDE4), running 'cs KDE/kdelibs && cmakekde' reports that QT_QT_INCLUDE_DIR is not set. After looking in 'kdelibs/cmake/modules/FindQt4.cmake' it seems that it is setting QT_QT_INCLUDE_DIR based on the location of 'qglobal.h'. 

$ dpkg -S qglobal.h
libqt4-dev: /usr/include/qt4/QtCore/qglobal.h

I've found that the 'FindQt4.cmake' file needs 'qglobal.h' in the '/usr/include/qt4/Qt/' folder. I've found 2 workarounds for this:

Workaround 1: add -DQT_QT_INCLUDE_DIR=/usr/include/qt4 to the cmakekde function in ~/.bashrc
Workaround 2: force install the libqt4-opengl-dev package (thx mi). This package will install the 'qglobal.h' file in the right place, however, this package isn't a requirement to build KDE and won't install on kubuntu without a force.

More system info:

Kubuntu 8.04 KDE4 Remix, KDE source from svn trunk

$ qmake -version
QMake version 2.01a
Using Qt version 4.4.0 in /usr/lib

svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs/cmake/modules/FindQt4.cmake
SVN Revision: 805659
Comment 1 Pino Toscano 2008-05-09 09:21:11 UTC
> Workaround 1: add -DQT_QT_INCLUDE_DIR=/usr/include/qt4 to the cmakekde function in ~/.bashrc 

That's just a workaround, and if needed something else is wrong.

> Workaround 2: force install the libqt4-opengl-dev package

This is indeed a distro problem that provides a file in a different package than expected.
Please report to Kubuntu.
Comment 2 Jonathan Riddell 2008-05-09 11:21:40 UTC
Fixed in 4.4.0-1ubuntu3 and 4.4.0-1ubuntu3~hardy1.