<br><div class="gmail_quote">On Wed, Dec 8, 2010 at 12:34 AM, Diego Moya <span dir="ltr">&lt;<a href="mailto:turingt@gmail.com">turingt@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br></blockquote><div><br></div><div>Hi Diego!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>I&#39;m having problems finding the required dependencies to compile a small project using Nepomuk.<br>
<br>I&#39;ve attached the CMakeLists I&#39;m using and the generated Makefile. My main.cpp has an include line for Nepomuk:<br>

#include &lt;Nepomuk/Resource&gt;<br><br>which fails giving an error that the file or directory doesn&#39;t exist. The CMakeLists has include and target_link for ${NEPOMUK_LIBRARIES}. I&#39;m using an Ubuntu box with -dev packages installed. <br>
</blockquote><div><br></div><div>Your include_directories isn&#39;t correct. It should be - <span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre-wrap; ">include_directories(
  ${NEPOMUK_INCLUDE_DIR})</span> Plus you need to specify which directories you want to link when using target_link_library.</div><div><br></div><div>Here check this out - <a href="http://websvn.kde.org/trunk/playground/base/nepomuk-kde/backupsync2/scripts/test/CMakeLists.txt?view=markup">http://websvn.kde.org/trunk/playground/base/nepomuk-kde/backupsync2/scripts/test/CMakeLists.txt?view=markup</a> It&#39;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.</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div> </div><div>If you have any other doubts, please feel free to ask. ( You can even try #nepomuk-kde )</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>Where are the Nepomuk header files supposed to be installed? How do I get the compiler to recognize them?<br><br>Thanks for the help.<br><br><br>$ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_MODULE_PATH:PATH=/usr/share/kde4/apps/cmake/modules<br>


-- Found Qt-Version 4.7.0 (using /usr/bin/qmake)<br>-- Found X11: /usr/lib/libX11.so<br>-- Found KDE 4.5 include dir: /usr/include<br>-- Found KDE 4.5 library dir: /usr/lib<br>-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler<br>


-- Found automoc4: /usr/bin/automoc4<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /home/ubuntu/Programacion/pruebas/example-nepomuk/example-nepomuk<br><br><br>$ make example-nepomuk<br>


[100%] Building CXX object CMakeFiles/example-nepomuk.dir/main.cpp.o<br>/home/kde/ubuntu/Programacion/pruebas/example-nepomuk/example-nepomuk/main.cpp:2:28: error: Nepomuk/Resource: No existe el archivo o directorio<br>make[3]: *** [CMakeFiles/example-nepomuk.dir/main.cpp.o] Error 1<br>


make[2]: *** [CMakeFiles/example-nepomuk.dir/all] Error 2<br>make[1]: *** [CMakeFiles/example-nepomuk.dir/rule] Error 2<br>make: *** [example-nepomuk] Error 2<br><br>
<br>_______________________________________________<br>
Nepomuk mailing list<br>
<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#999999">Vishesh Handa</font><br>