Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

rosjava error

Hello,

I am trying to compile a package containing ROSJAVA related code. I am getting an error while compiling the package as below:

mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake .. [rosbuild] Building package eskorta_wifi [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/rospy/cmake/rospy.cmake [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake CMake Error at CMakeLists.txt:23 (add_java_source_dir): Unknown CMake command "add_java_source_dir".

I have checked the cMakeLists.txt which indicates right directory. It is pointing to /bin directory of the package.

Please suggest If we are doing something wrong.

Prasad

click to hide/show revision 2
No.2 Revision

rosjava errorerror: Unknown CMake command "add_java_source_dir"

Hello,

I am trying to compile a package containing ROSJAVA related code. I am getting an error while compiling the package as below:

mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake .. [rosbuild] Building package eskorta_wifi [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/rospy/cmake/rospy.cmake [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake CMake Error at CMakeLists.txt:23 (add_java_source_dir): Unknown CMake command "add_java_source_dir".

I have checked the cMakeLists.txt which indicates right directory. It is pointing to /bin directory of the package.

Please suggest If we are doing something wrong.

Prasad