[Nepomuk] Problems with dependencies

Diego Moya turingt at gmail.com
Tue Dec 7 20:04:51 CET 2010


Hi,

I'm having problems finding the required dependencies to compile a small
project using Nepomuk.

I've attached the CMakeLists I'm using and the generated Makefile. My
main.cpp has an include line for Nepomuk:
#include <Nepomuk/Resource>

which fails giving an error that the file or directory doesn't exist. The
CMakeLists has include and target_link for ${NEPOMUK_LIBRARIES}. I'm using
an Ubuntu box with -dev packages installed.

Where are the Nepomuk header files supposed to be installed? How do I get
the compiler to recognize them?

Thanks for the help.


$ cmake . -DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_MODULE_PATH:PATH=/usr/share/kde4/apps/cmake/modules
-- Found Qt-Version 4.7.0 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Found KDE 4.5 include dir: /usr/include
-- Found KDE 4.5 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/ubuntu/Programacion/pruebas/example-nepomuk/example-nepomuk


$ make example-nepomuk
[100%] Building CXX object CMakeFiles/example-nepomuk.dir/main.cpp.o
/home/kde/ubuntu/Programacion/pruebas/example-nepomuk/example-nepomuk/main.cpp:2:28:
error: Nepomuk/Resource: No existe el archivo o directorio
make[3]: *** [CMakeFiles/example-nepomuk.dir/main.cpp.o] Error 1
make[2]: *** [CMakeFiles/example-nepomuk.dir/all] Error 2
make[1]: *** [CMakeFiles/example-nepomuk.dir/rule] Error 2
make: *** [example-nepomuk] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/nepomuk/attachments/20101207/30979d42/attachment.htm 
-------------- next part --------------
project(example-nepomuk)
find_package(KDE4 REQUIRED)
find_package(Nepomuk REQUIRED)
cmake_minimum_required(VERSION 2.6)

IF(Nepomuk_FOUND)
    include_directories(${NEPOMUK_INCLUDES})
    target_link_libraries( ${NEPOMUK_LIBRARIES})
    add_executable(example-nepomuk main.cpp)
ENDIF(Nepomuk_FOUND)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 5388 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/nepomuk/attachments/20101207/30979d42/attachment.dll 


More information about the Nepomuk mailing list