On 11/28/2010 04:06 AM, Diego Moya wrote:
Hello,
I'm an old KDE user, but this is the first time I'm making a serious
effort to develop for the platform. I'm trying to compile a tutorial
Nepomuk project and have a problem with CMake finding the
dependencies. Would someone with more experience answer some questions
to get me started?
1- What are the best mailing list and IRC node+channel, to get help
specific to Nepomuk-KDE?
2- Can someone with more knowledge about CMake help me resolve the
problem? I'm using Ubuntu 10.04 LTS and I've installed KDE and Nepomuk
from the Ubuntu repositories.
This is my current CMakeLists.txt:
project(example-nepomuk)
find_package(Nepomuk REQUIRED)
IF(Nepomuk_FOUND)
include_directories(${NEPOMUK_INCLUDES})
target_link_libraries( [...] ${NEPOMUK_LIBRARIES})
add_executable(example-nepomuk main.cpp)
ENDIF(Nepomuk_FOUND)
And this is the message I get:
$ cmake . -DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_MODULE_PATH:PATH=/usr/share/kde4/apps/cmake/modules
CMake Error at
/usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:139
(MESSAGE):
Could NOT find Nepomuk (missing: NEPOMUK_ADDONTOLOGYCLASSES_FILE)
Call Stack (most recent call first):
/usr/share/kde4/apps/cmake/modules/FindNepomuk.cmake:69
(find_package_handle_standard_args)
CMakeLists.txt:2 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may
be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
I've tried to set the path as an environment variable, to no avail:
export CMAKE_MODULE_PATH=/usr/share/kde4/apps/cmake/modules/
export CMAKE_LIBRARY_PATH=/usr/share/kde4/apps/cmake/modules/
So,
3- what is NEPOMUK_ADDONTOLOGYCLASSES_FILE, and how do I get CMake to
recognize it?
Thanks for all help provided.
Diego
Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe<<
The ontology classes are in kdebase4-runtime and
shared-desktop-ontologies. Install kdebase4-runtime-nepomuk -
kdelibs4-devel also.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<