Open XQSwx opened 1 month ago
What version/branch of this repo are you trying to build? Looks like exlib
is a test package that was added after Humble: #429
Oh, no, it was backported to Humble too: #467
It would help to know:
/home/andy/ros2_humble/install
and how it was builtcolcon build ...
command you provided@mjcarroll Friendly ping to comment about dependecies.
I compiled it in the Humble version, and the install directory does not have exlibConfig. cmake, but the build directory does. But I just can't find the dependency relationship
cmake_minimum_required(VERSION 3.15) project(ament_cmake_vendor_package NONE)
find_package(ament_cmake_core REQUIRED) find_package(ament_cmake_export_dependencies REQUIRED)
ament_export_dependencies( ament_cmake_core )
ament_package( CONFIG_EXTRAS "ament_cmake_vendor_package-extras.cmake" )
include(CTest) if(BUILD_TESTING) add_subdirectory(test) endif()
install( DIRECTORY cmake DESTINATION share/${PROJECT_NAME} )
I can pass by closing add_Subdirectory (test)
I suspect it's an installation issue because the build directory already has this file, but the install directory doesn't
Can you provide the exact command you used to build /home/andy/ros2_humble/install
? Like colcon ...
I suspect it's an installation issue because the build directory already has this file, but the install directory doesn't
I think tests aren't usually installed to the install/
directory.
Build Command
colcon build --cmake-args -DCMAKE_PREFIX_PATH=$PWD/install -DCMAKE_FIND_ROOT_PATH=$PWD/install -DCMAKE_TOOLCHAIN_FILE=/buildroot/host/share/buildroot/toolchainfile.cmake
We could consider installing these tests to the install/
directory, but realistically you might hit the same issue with other packages, and you probably don't really need these specific tests.
Maybe other people have different opinions/suggestions.
We could consider installing these tests to the
install/
directory, but realistically you might hit the same issue with other packages, and you probably don't really need these specific tests.
In general, we don't install tests into the install
directory, because they don't need to be installed; they only need to be available in the build
directory to be run. That said, I don't know how all of this works together with cross-compilation.
When cross-compiling the Humble version using colcon build, the following error occurs:
Compilation Command
colcon build --cmake-args -DCMAKE_TOOLCHAIN_FILE=/home/andy/rk-linux5.10/buildroot/output/rockchip_rk3399/host/share/buildroot/toolchainfile.cmake -DCMAKE_FIND_ROOT_PATH=/home/andy/ros2_humble/install
toolchainfile.cmake