[Nepomuk] Re: Problems with dependencies

Vishesh Handa handa.vish at gmail.com
Tue Dec 7 21:55:59 CET 2010


On Wed, Dec 8, 2010 at 12:34 AM, Diego Moya <turingt at gmail.com> wrote:

> Hi,
>

Hi Diego!


>
> 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.
>

Your include_directories isn't correct. It should be - include_directories(
${NEPOMUK_INCLUDE_DIR}) Plus you need to specify which directories you want
to link when using target_link_library.

Here check this out -
http://websvn.kde.org/trunk/playground/base/nepomuk-kde/backupsync2/scripts/test/CMakeLists.txt?view=markup
It's
a simple CMakeLists.txt I use for testing stuff in Nepomuk. It has a certain
amount of superfluous stuff like Soprano, but you can safely remove that.

If you have any other doubts, please feel free to ask. ( You can even try
#nepomuk-kde )

>
> 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
>
>
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
>
>


-- 
Vishesh Handa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/nepomuk/attachments/20101208/67c975e9/attachment.htm 


More information about the Nepomuk mailing list