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

[SOLVED] gwenview doesn't find qt...

Tags: None
(comma "," separated)
maler
Registered Member
Posts
6
Karma
0
Hello,

got a problem with gwenview, it doesn't compile and gives error messaged which sound like it doesn't find Qt... it didn't install with the kdegraphics-package, so I tried to install it afterwards. I had do insert the line "find_package(KDE4 REQUIRED)" to the beginning of CMakeLists.txt to let the cmake configuration finish. Now I have the following problem:

Code: Select all
root@paul:/usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview# cmake . -DCMAKE_INSTALL_PREFIX=$KDEDIR
-- Found Qt-Version 4.5.0-rc1 (using /opt/qt-4.4.3/bin/qmake)                                         
-- Found X11: /usr/lib/libX11.so                                                                     
-- Phonon Version: 4.3.0                                                                             
-- Found KDE 4.2 include dir: /opt/kde-4.2.0/include                                                 
-- Found KDE 4.2 library dir: /opt/kde-4.2.0/lib                                                     
-- Found the KDE4 kconfig_compiler preprocessor: /opt/kde-4.2.0/bin/kconfig_compiler                 
-- Found automoc4: /opt/kde-4.2.0/bin/automoc4                                                       
-- Found Soprano: /opt/kde-4.2.0/lib/libsoprano.so                                                   
-- Found Soprano includes: /opt/kde-4.2.0/include                                                     
-- Found Soprano Index: SOPRANO_INDEX_LIBRARIES-NOTFOUND                                             
-- Found Soprano Client: /opt/kde-4.2.0/lib/libsopranoclient.so                                       
-- Found Soprano Plugin Dir: /opt/kde-4.2.0/share/soprano/plugins                                     
-- Found Soprano Plugins: nquadparser nquadserializer sesame2backend                                 
-- Configuring done                                                                                   
-- Generating done                                                                                   
-- Build files have been written to: /usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview             
root@paul:/usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview# make                                   
[  0%] Built target gwenview_automoc                                                                 
[  0%] Built target gvpart_automoc                                                                   
[  0%] Built target gwenviewlib_automoc                                                               
[  0%] [  1%] Building CXX object lib/CMakeFiles/gwenviewlib.dir/gwenviewlib_automoc.o               
Building CXX object lib/CMakeFiles/gwenviewlib.dir/document/abstractdocumentimpl.o                                     
In file included from /usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/imagemetainfomodel.h:24,                 
                 from /usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/moc_imagemetainfomodel.cpp:10,           
                 from /usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/gwenviewlib_automoc.cpp:4:               
/usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/../lib/gwenviewlib_export.h:24:23: error: kdemacros.h: No such file or directory                                                                                                       
In file included from /usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/moc_imagemetainfomodel.cpp:10,           
                 from /usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/gwenviewlib_automoc.cpp:4:               
/usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/imagemetainfomodel.h:27:30: error: QAbstractItemModel: No such file or directory                                                                                                       
In file included from /usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/gwenviewlib_automoc.cpp:4:               
/usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/moc_imagemetainfomodel.cpp:12:2: error: #error "The header file 'imagemetainfomodel.h' doesn't include ."                                                                     
In file included from /usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/croptool.h:29,                           
                 from /usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/moc_croptool.cpp:10,                     
                 from /usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/gwenviewlib_automoc.cpp:5:               
/usr/local/src/kde-4.2.0/kdegraphics-4.2.0/gwenview/lib/../lib/abstractimageviewtool.h:27:19: error: QObject: No such file or directory                             



the rest of KDE 4.2 compiled fine.. thx
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You will need to add another line. Try these two:
Code: Select all
ADD_DEFINITIONS( ${QT_DEFINITIONS} ${KDE4_DEFINITIONS} )
INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
pinotree
KDE Developer
Posts
222
Karma
7
OS
maler wrote:got a problem with gwenview, it doesn't compile and gives error messaged which sound like it doesn't find Qt... it didn't install with the kdegraphics-package, so I tried to install it afterwards. I had do insert the line "find_package(KDE4 REQUIRED)" to the beginning of CMakeLists.txt to let the cmake configuration finish.


Compiling pieces of kde modules out of the modules is not supported.
The *correct* way to do that (since gwenview requires other stuff from kdegraphics) is:
Code: Select all
kdegraphics $ mkdir build
kdegraphics $ cd build
kdegraphics/build $ cmake [your arguments here] ..
kdegraphics/build $ cd gwenview
kdegraphics/build/gwenview $ make

then install with make install, sudo make install, etc.


Pino Toscano
maler
Registered Member
Posts
6
Karma
0
thanks for the advice, my problem was that there was no gwenview folder in build directory, but after browsing a bit through the cmake files I found that it was just a missing depenency... didn't have exiv2 installed... sry for that ^^ Now it works fine, just rebuilt whole kdegraphics.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]