Bug #1161

CMakeLists.txt in rst/java

Added by F. Lier almost 12 years ago. Updated almost 12 years ago.

Status:RejectedStart date:08/31/2012
Priority:HighDue date:
Assignee:-% Done:

0%

Category:Build System
Target version:-

Description

To me it seems unclear where PROTOBUF_JAVA_LIBRARY is actually set, is it?
In the if-else switch the value seems to be empty (always), therefore
the java binding won't be build by the Gar-Installer.

Hack:

SET(PROTOBUF_JAVA_LIBRARY "/usr/share/java/protobuf-java.jar")

Worked for me.

History

#1 Updated by F. Lier almost 12 years ago

See above: SET ( PROTOBUF_JAVA_LIBRARY "/usr/share/java/protobuf-java.jar" )

#2 Updated by J. Moringen almost 12 years ago

  • Description updated (diff)

#3 Updated by J. Moringen almost 12 years ago

  • Status changed from Feedback to Rejected

Assuming this happened in an old (e.g. older than 0.8) version of RST, you can do the following which does not require changing the CMakeLists.txt file:

cmake -DPROTOBUF_JAVA_NAME=protobuf-java.jar ..

The trunk version of RST can find the above jar (in addition to protobuf.jar).

Regarding the question where this stuff comes from: there is a FindProtocolBuffers.cmake macro file in Robotics Systems Commons.

Please reopen if there are any other problems.

Also available in: Atom PDF