FindOOoSDK.cmake jam

luxInteg lux-integ at btconnect.com
Wed Dec 15 00:42:38 CET 2010


On Tuesday 14 December 2010 19:43:09 Alexander Neundorf wrote:
> On Tuesday 14 December 2010, luxInteg wrote:
> > 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.
> 
> Insert debug out (message(STATUS "somevar = ${somevar}") so you can see
> which variables get which values, and why it fails exactly.
> Then please post the output here again.


Thanks  I   edited the troublesome line as follows
if(NOT OOoSDK_FOUND)
	if(OOoSDK_FIND_REQUIRED)
          message(STATUS "error = ${OOOSDK_ERROR}")

and  appended LD_LIBRARY_PATH to   /opt/office.org/ure/lib

and OOoSDK was found 



however when it began to execute this part of FindOOoSDK.cmake:
----------------------

	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} 
	)
---------------------
the  errors below resulted:-
####################################
   running make 
#################################

/usr/local/bin/cmake -H$SOURCES -B$SOURCES/build --check-build-system 
CMakeFiles/Makefile.cmake 0
/usr/local/bin/cmake -E cmake_progress_start $SOURCES/build/CMakeFiles 
$SOURCES/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `$SOURCES/build'
make -f CMakeFiles/_oooheaders.dir/build.make 
CMakeFiles/_oooheaders.dir/depend
make[2]: Entering directory `$SOURCES/build'
cd $SOURCES/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" 
$SOURCES $SOURCES $SOURCES/build $SOURCES/build 
$SOURCES/build/CMakeFiles/_oooheaders.dir/DependInfo.cmake --color=
Dependee "$SOURCES/build/CMakeFiles/_oooheaders.dir/DependInfo.cmake" is newer 
than depender "$SOURCES/build/CMakeFiles/_oooheaders.dir/depend.internal".
Dependee "$SOURCES/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer 
than depender "$SOURCES/build/CMakeFiles/_oooheaders.dir/depend.internal".
Scanning dependencies of target _oooheaders
make[2]: Leaving directory `$SOURCES/build'
make -f CMakeFiles/_oooheaders.dir/build.make CMakeFiles/_oooheaders.dir/build
make[2]: Entering directory `$SOURCES/build'
/usr/local/bin/cmake -E cmake_progress_report $SOURCES/build/CMakeFiles 
[  0%] Generating ooosdkinclude/com/sun/star/uno/Exception.hpp
cd $SOURCES/build/ooosdkinclude && 
/opt/openoffice.org/basis3.2/sdk/bin/cppumaker -BUCR 
/opt/openoffice.org/ure/share/misc/types.rdb 
/opt/openoffice.org/basis3.2/program/offapi.rdb
/opt/openoffice.org/basis3.2/sdk/bin/cppumaker : init registries failed, check 
your registry files.
make[2]: *** [ooosdkinclude/com/sun/star/uno/Exception.hpp] Error 99
make[2]: Leaving directory `$SOURCES/build'
make[1]: *** [CMakeFiles/_oooheaders.dir/all] Error 2
make[1]: Leaving directory `$SOURCES/build'
make: *** [all] Error 2


################

ehm  ...I have'nt a clue 'how to check resistry files'

The build machine does not have openoffice installed    the OOoSDK was 
installed   from the Oracle binary and the URE from an OO build from another 
machine.  (As far as I know URE is now  not distribuitd with SDK and the SDK 
has to be fetched as a  BINARY.

Advice would be appreciated.

luxInteg


More information about the Kde-buildsystem mailing list