This forum has been archived. All content is frozen. Please use KDE Discuss instead.

error compiling simon - Qwt 6.x include dir not found

Tags: None
(comma "," separated)
travisn000
Registered Member
Posts
6
Karma
0
OS
I'm trying to build simon for PCLinuxOS, but I am stuck on the following error:
Code: Select all
-- Found KDE 4.11 include dir: /usr/include
-- Found KDE 4.11 library dir: /usr/lib64
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found Qt-Version 4.8.5 (using /usr/lib64/qt4/bin/qmake)
-- Found X11: /usr/lib64/libX11.so
Qwt 6.x include dir not found
CMake Error at cmake/FindQwt6.cmake:106 (MESSAGE):
  Could not find Qwt 6.x
Call Stack (most recent call first):
  CMakeLists.txt:19 (find_package)


-- Configuring incomplete, errors occurred!
error: Bad exit status from /home/guest/src/tmp/rpm-tmp.F6yUyG (%build)


RPM build errors:
    Bad exit status from /home/guest/src/tmp/rpm-tmp.F6yUyG (%build)




..I have qwt v6 installed:
Code: Select all
[root@AspireM ~]# locate qwt | grep "\.so"
/usr/lib64/libqwt.so
/usr/lib64/libqwt.so.6
/usr/lib64/libqwt.so.6.0
/usr/lib64/libqwt.so.6.0.2
/usr/lib64/libqwtmathml.so
/usr/lib64/libqwtmathml.so.6
/usr/lib64/libqwtmathml.so.6.0
/usr/lib64/libqwtmathml.so.6.0.2
/usr/lib64/qt4/plugins/designer/libqwt_designer_plugin.so

[root@AspireM ~]# locate qwt | grep "qwt.h"
/usr/lib64/qt4/include/qwt/qwt.h



..it is definitely installed; Is there a way to bypass this check?

Thanks.

EDIT: was given the following as a solution:
You can either patch the file so it looks for it in the correct place:

FILE(GLOB Qwt6_GLOB_PATH /usr/qwt* /usr/local/qwt* /usr/lib64/qt4/include/qwt*)

Or just make a temporary symlink from /usr/lib64/qt4/include/qwt to /usr/include/qwt

[root@localhost ~]# ln -s /usr/lib64/qt4/include/qwt /usr/include/qwt



..I modified it to use sed from the %prep section of the rpm spec file:
Code: Select all
# fix broken FindQwt6.cmake
sed -i '/\/usr\/include\/qwt/ { c \
FILE(GLOB Qwt6_GLOB_PATH /usr/qwt* /usr/local/qwt* /usr/lib/qt4/include/qwt* /usr/lib64/qt4/include/qwt*)
}' cmake/FindQwt6.cmake
bedahr
Moderator
Posts
141
Karma
0
OS
Ah, thanks for reporting, I was not aware of that installation directory.

I assume you fixed it yourself? For the future: you can always override auto detection rules by specifying the correct location to cmake: "cmake -DVARIABLE_NAME=value ...". ccmake even provides a nice (console) gui for stuff like that.

I have amended FindQwt6.cmake in master to make the patch unnecessary in any future Simon versions.

Best regards,
Peter


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell