-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colcon build fails to undefined symbol: osrf_testing_tools_cpp #247
Comments
It looks like
in building |
I studied this a little bit more. You can see the actual code as in the repositories here: https://raw.githubusercontent.com/ros2-java/ros2_java/main/ros2_java_android.repos I built just the culprit and its dependencies. First a vanilla build (no crosscompile):
Output: lots of warnings like this:
and
and
but nonetheless the packages have been built. I could get rid of the
Next, if I do the cross compile (as in the README of this repo):
then build only these packages:
it actually succeeds. So the root problem isn't these packages, but which order they are built or something in my system or that some other packages are broken. I tried this build script instead, but ran into another problem:
Note that this uses a different way to choose the packages. I suspect that the |
Ok I got past that error. Instructions here. I just checked my java version:
and then chose which java I want. Then edited the variable
to my desired Java version. Then I reran the build and got my next errors:
Indeed,
yields nothing, and I can't find anything related to that in I got the same errors back about the target_include_directories(${PROJECT_NAME}
PUBLIC
${JNI_INCLUDE_DIRS}
/usr/lib/jvm/jdk-21.0.4-oracle-x64/include/
/usr/lib/jvm/jdk-21.0.4-oracle-x64/include/linux
) then I got past everything else except this in
I suspect a java version mismatch somewhere. I tried
but that didn't help. |
I may have to change the jdk version to something else. |
Greetings,
I followed the build instructions and got this error:
How should I resolve it?
I'm using ROS2 Humble, Ubuntu 22.04, Python 3.10.12. Android NDK r27b (27.1.12297006), Android 34 (I guess).
There is a similar build error here (on macOS): ros2/ros2#1398
There is a plan B to use this: https://github.com/YasuChiba/ros2-android-build
The text was updated successfully, but these errors were encountered: