Greetings, I keep stalling on line 100 of FindOOoSDK.cmake shipped with the current version of koffice (of kde.org) (A copy is attached) I have all the prerequisites installed in /opt/openoffice.org. I would be grateful if someone more aufait with cmake modules could offer some advice on what is wrong/suggest a fix.
sincerely luxInteg
# OOOSDK_FOUND # OOOSDK_INCLUDE_DIRS # OOOSDK_LIBRARY_DIRS # OOOSDK_LIBRARIES # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # # Copyright (C) 2010 KO GmbH <jos.van.den.oe...@kogmbh.com> # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # look for cppuhelper/bootstrap.hxx find_path(OOOSDK_URE_DIR NAMES share/misc/types.rdb PATHS /opt/openoffice.org/ure /usr/lib/ure /usr/lib64/openoffice.org/ure ) if (NOT OOOSDK_URE_DIR) set(OOOSDK_ERROR "Could not find share/misc/types.rdb for OOoSDK.") endif (NOT OOOSDK_URE_DIR) find_path(OOOSDK_DIR NAMES sdk/bin/cppumaker program/offapi.rdb PATHS /opt/openoffice.org/basis3.2 /usr/lib/openoffice/basis3.2 /usr/lib/openoffice/basis3.1 /usr/lib/openoffice/basis3.0 /usr/lib64/openoffice.org/basis3.2 /usr/lib64/openoffice.org/basis3.3 ) if (OOOSDK_DIR) find_path(CPPUHELPER_INCLUDE_DIR NAMES cppuhelper/bootstrap.hxx PATHS ${OOOSDK_DIR}/sdk/include /usr/include/openoffice ) if (NOT CPPUHELPER_INCLUDE_DIR) set(OOOSDK_ERROR "Could not find cppuhelper/bootstrap.hxx for OOoSDK.") endif (NOT CPPUHELPER_INCLUDE_DIR) find_library(OOOSDK_LIBRARIES1 NAMES uno_cppuhelpergcc3 PATHS ${OOOSDK_URE_DIR}/lib ${OOOSDK_DIR}/sdk/lib /usr/lib/ure/lib ) find_library(OOOSDK_LIBRARIES2 NAMES uno_sal PATHS ${OOOSDK_URE_DIR}/lib ${OOOSDK_DIR}/sdk/lib /usr/lib/ure/lib ) find_library(OOOSDK_LIBRARIES3 NAMES uno_salhelpergcc3 PATHS ${OOOSDK_URE_DIR}/lib ${OOOSDK_DIR}/sdk/lib /usr/lib/ure/lib ) find_library(OOOSDK_LIBRARIES4 NAMES uno_cppu PATHS ${OOOSDK_URE_DIR}/lib ${OOOSDK_DIR}/sdk/lib /usr/lib/ure/lib ) set(OOOSDK_LIBRARIES ${OOOSDK_LIBRARIES1} ${OOOSDK_LIBRARIES2} ${OOOSDK_LIBRARIES3} ${OOOSDK_LIBRARIES4}) if (NOT OOOSDK_LIBRARIES) set(OOOSDK_ERROR "Could not find uno_cppuhelpergcc3 for OOoSDK.") endif (NOT OOOSDK_LIBRARIES) else (OOOSDK_DIR) set(OOOSDK_ERROR "Could not find sdk/bin/cppumaker or program/offapi.rdb for OOoSDK.") endif (OOOSDK_DIR) if(CPPUHELPER_INCLUDE_DIR AND OOOSDK_URE_DIR AND OOOSDK_LIBRARIES) set(OOOSDK_FOUND true) # generate c++ headers set(_OOOINCLUDE ${CMAKE_CURRENT_BINARY_DIR}/ooosdkinclude) file(MAKE_DIRECTORY ${_OOOINCLUDE}) add_custom_command( OUTPUT ${_OOOINCLUDE}/com/sun/star/uno/Exception.hpp COMMAND ${OOOSDK_DIR}/sdk/bin/cppumaker ARGS -BUCR ${OOOSDK_URE_DIR}/share/misc/types.rdb ${OOOSDK_DIR}/program/offapi.rdb WORKING_DIRECTORY ${_OOOINCLUDE} ) add_custom_target(_oooheaders ALL DEPENDS ${_OOOINCLUDE}/com/sun/star/uno/Exception.hpp) set(OOOSDK_INCLUDE_DIRS ${CPPUHELPER_INCLUDE_DIR} ${_OOOINCLUDE}) endif(CPPUHELPER_INCLUDE_DIR AND OOOSDK_URE_DIR AND OOOSDK_LIBRARIES) if(NOT OOoSDK_FOUND) if(OOoSDK_FIND_REQUIRED) message(FATAL_ERROR ${OOOSDK_ERROR}) else(OOoSDK_FIND_REQUIRED) message(STATUS ${OOOSDK_ERROR}) endif(OOoSDK_FIND_REQUIRED) else(NOT OOoSDK_FOUND) message(STATUS "Found OpenOffice SDK.") endif(NOT OOoSDK_FOUND)
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake