-
Notifications
You must be signed in to change notification settings - Fork 49
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
Install colcon on x86 to cross compile ros2 #631
Comments
cmake cross-compilation process wu@wu-System-Product-Name:~/ros_cross_compile_ws/src/hello_world/build$ cmake --cmake-args '-DCMAKE_TOOLCHAIN_FILE=/home/wu/ros_cross_compile_ws/sdk/3588_sdk/toolchainfile.cmake' .. -- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c -- Found rmw_implementation_cmake: 1.0.3 (/home/wu/ros_cross_compile_ws/sdk/3588_sdk/foxy/foxy/share/rmw_implementation_cmake/cmake) wu@wu-System-Product-Name:~/ros_cross_compile_ws/src/hello_world/build$ make -j4 |
toolchainfile.cmake set(CMAKE_C_COMPILER "aarch64-linux-gnu-gcc") set(CMAKE_SYSTEM_NAME Linux) |
But switch to the workspace and use colcon to compile |
So what should I do to use colcon for cross-compilation normally on x86? If I have already set up a cross-compilation environment (cmake can compile) |
Install colcon on x86 and configure the cross-compilation environment. Using cmake can compile successfully and run on the arm board. However, colcon cannot be used to compile.
The text was updated successfully, but these errors were encountered: