[Jderobot] Openni server problem in installing JDE.

Francisco Pérez f.perez475 en gmail.com
Jue Mar 19 12:15:00 CET 2015


Hello,

yes, if you have that folder in /usr/lib is enough for the solution I
already gave. To make it compile you have to navigate into the openni2
folder in your JdeRobot working directory (Tipically:
~/jderobot/Deps/openni2/) and modify the CMakeLists.txt like this:

#manual openni libraries
FIND_PATH( OPENNI2_INC NAMES OpenNI.h  PATHS ENV C++LIB ENV PATH
PATH_SUFFIXES openni2)
IF( OPENNI2_INC )
	message(STATUS "OpenNI2 found at ${OPENNI2_INC}")
	FIND_LIBRARY( OPENNI2_LIB NAMES OpenNI2 PATHS ENV C++LIB ENV PATH
PATH_SUFFIXES lib/openni2 lib64/openni2)
	FIND_PATH( OPENNI2_LIB_PATH NAMES libOpenNI2.so PATHS ENV C++LIB ENV PATH
PATH_SUFFIXES lib/openni2 lib64/openni2)
	if (NOT IS_DIRECTORY ./OpenNI2)
                *SET(OPENNI2_LIB_PATH /usr/lib)*
		file (COPY ${OPENNI2_LIB} DESTINATION .)
		file (COPY ${OPENNI2_LIB_PATH}/OpenNI2 DESTINATION .)
		message("-------------CMake will install local OpenNI2 lib and Driver")
	endif()
	include_directories(${OPENNI2_INC})
	SET(DEPS "${DEPS} openni2,")
ELSE()
	message("OpenNI2 library not found")
ENDIF()

(**The line you have to add is the bold one**) Then run /cmake ./ in your
JdeRobot working directory and the error should be solved.

Hope it works!



--
View this message in context: http://jderobot-developer-list.2315034.n4.nabble.com/Jderobot-Openni-server-problem-in-installing-JDE-tp4642503p4642521.html
Sent from the Jderobot Developer List mailing list archive at Nabble.com.


More information about the Jde-developers mailing list