Proposed modification in CMakeLists.txt for SIGServer compilation

7 views
Skip to first unread message

Caleb Rascon

unread,
Feb 15, 2017, 11:17:19 PM2/15/17
to SIGVerse-users
There is a step in the tutorial for installing SIGServer in http://www.sigverse.org/wiki/en/index.php?Tutorial%2FInstallation%20of%20SIGVerse%20server that directs the user to copy the default-java headers into /usr/local/include/, stated as:

sudo cp /usr/lib/jvm/default-java/include/* /usr/local/include/
sudo cp /usr/lib/jvm/default-java/include/linux/* /usr/local/include/

This step is not necessary, since cmake can find them on its own by replacing the following line in CMakeLists.txt:

include_directories("${PROJECT_SOURCE_DIR}/srcs" "${ODE_ROOT_DIR}/include")

with:

find_package(Java)
include_directories("${PROJECT_SOURCE_DIR}/srcs" "${ODE_ROOT_DIR}/include" ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2})

SIGServer is then able to be compiled directly.

Reply all
Reply to author
Forward
0 new messages