Bug#793603: kdelibs5-dev: building uim failure with FindQt4.cmake shipped by kdelibs5-dev
Package: kdelibs5-dev
Version: 4:4.14.2-5
Severity: normal
Dear Maintainer,
Forwarded from https://github.com/uim/uim/pull/62 .
uim branch master built failure with kdelibs5-dev.
https://github.com/uim/uim/blob/master/qt4/toolbar/CMakeLists.txt
> project(plasma-uim)
>
> find_package(KDE4 REQUIRED)
> include(KDE4Defaults)
(snip)
This causes below error:
---
(snip)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QT_INCLUDE_DIR
used as include directory in directory /tmp/uim/qt4/toolbar/build/CMakeFiles/CMakeTmp
CMake Error: Internal CMake error, TryCompile configure of cmake failed
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1316 (message):
Unable to compile a basic Qt application. Qt has not been found correctly.
Call Stack (most recent call first):
/usr/share/cmake-3.2/Modules/FindKDE4.cmake:108 (find_package)
CMakeLists.txt:3 (find_package)
-- Configuring incomplete, errors occurred!
See also "/tmp/uim/qt4/toolbar/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/uim/qt4/toolbar/build/CMakeFiles/CMakeError.log".
(snip)
---
I put "find_package(Qt4)" above "find_package(KDE4 REQUIRED)" in this
CMakeLists.txt ( https://github.com/uim/uim/pull/62/files ),
so built uim successfully.
BTW, uim upstream maintainer says:
> It seems that both cmake-data and kdelibs5-dev have FindQt4.cmake.
> find_package(Qt4) in our CMakeLists.txt uses FindQt4.cmake in cmake-data.
> find_package(Qt4) in FindKDE4Internal.cmake uses FindQt4.cmake in kdelibs5-dev.
> I think that FindKDE4Internal.cmake should work with only FindQt4.cmake in
> kdelibs5-dev. (without FindQt4.cmake in cmake-data) Am I wrong?
Does kdelibs5-dev have a responsibility of this issue?
Or, does uim modify own CMakeLists.txt?
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.0.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to ja_JP.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages kdelibs5-dev depends on:
pn automoc <none>
pn kdelibs-bin <none>
pn kdoctools <none>
ii libc6 2.19-19
ii libkcmutils4 4:4.14.2-5
pn libkde3support4 <none>
pn libkdeclarative5 <none>
ii libkdecore5 4:4.14.2-5
pn libkdesu5 <none>
ii libkdeui5 4:4.14.2-5
ii libkdewebkit5 4:4.14.2-5
ii libkdnssd4 4:4.14.2-5
pn libkemoticons4 <none>
pn libkfile4 <none>
pn libkhtml5 <none>
pn libkidletime4 <none>
pn libkimproxy4 <none>
ii libkio5 4:4.14.2-5
pn libkjsapi4 <none>
pn libkjsembed4 <none>
pn libkmediaplayer4 <none>
pn libknewstuff2-4 <none>
ii libknewstuff3-4 4:4.14.2-5
pn libknotifyconfig4 <none>
pn libkntlm4 <none>
ii libkparts4 4:4.14.2-5
pn libkprintutils4 <none>
pn libkpty4 <none>
pn libkrosscore4 <none>
pn libkrossui4 <none>
pn libktexteditor4 <none>
pn libkunitconversion4 <none>
pn libkutils4 <none>
ii libnepomuk4 4:4.14.2-5
ii libnepomukquery4a 4:4.14.2-5
ii libnepomukutils4 4:4.14.2-5
pn libphonon-dev <none>
ii libplasma3 4:4.14.2-5
pn libqt4-dev <none>
ii libqt4-xml 4:4.8.7+dfsg-1
ii libqtcore4 4:4.8.7+dfsg-1
ii libsolid4 4:4.14.2-5
pn libsoprano-dev <none>
ii libstdc++6 5.1.1-14
ii libthreadweaver4 4:4.14.2-5
ii perl 5.20.2-6
Versions of packages kdelibs5-dev recommends:
pn libqt4-opengl-dev <none>
kdelibs5-dev suggests no packages.
Reply to: