diff --git a/ros_cross_compile/toolchains/aarch64-gnu.cmake b/ros_cross_compile/toolchains/aarch64-gnu.cmake index f556a08f..d6198c6e 100644 --- a/ros_cross_compile/toolchains/aarch64-gnu.cmake +++ b/ros_cross_compile/toolchains/aarch64-gnu.cmake @@ -3,8 +3,6 @@ set(TRIPLE aarch64-linux-gnu) set(PY_VERSION 38) set(CMAKE_SYSTEM_PROCESSOR aarch64) - - # Generic function(require_env name) if("$ENV{${name}}" STREQUAL "") @@ -18,6 +16,7 @@ require_env(ROS_DISTRO) set(CMAKE_SYSTEM_NAME Linux) SET(CMAKE_SYSTEM_VERSION 1) +set(CMAKE_LIBRARY_ARCHITECTURE ${TRIPLE}) set(CMAKE_C_COMPILER /usr/bin/${TRIPLE}-gcc) set(CMAKE_CXX_COMPILER /usr/bin/${TRIPLE}-g++) @@ -31,6 +30,8 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) - set(PYTHON_SOABI cpython-${PY_VERSION}m-${TRIPLE}) set(THREADS_PTHREAD_ARG "0" CACHE STRING "Result from TRY_RUN" FORCE) + +set(CMAKE_CROSSCOMPILING 1) +set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-aarch64-static)