Open sanke69 opened 7 months ago
For those with the same problem and before adding a most valuable solution, a working hack:
1- add to build.gradle
ext {
ROS2_JAVA_CP = files(System.getenv("ROS2_JAVA_CLASSPATH").split(File.pathSeparator))
}
compileJava {
doFirst {
classpath += ROS2_JAVA_CP
}
}
then before colcon build
source /opt/ros/humble/setup.bash
source /src/ros2_java_ws/install/setup.bash
export ROS2_JAVA_CLASSPATH=$CLASSPATH
colcon build
Hello,
My question is quite simple but I don't figure out how to do, I get no issue to compile ros2_java by running procedure described in this repository
All examples work fine but just if I try to build them outside the ros2_java_ws, it failed
with
If someone have the solution, which must not be so complicated as everything work fine in the ros2_java_ws, it will be greatly appreciated :)
My environment: Ubuntu 22.04 ROS2 Humble JAVA 11 Gradle 6.0
And the full log of colcon build