KIT-MRT / mrt_cmake_modules

Automated catkin project handling framework
BSD 3-Clause "New" or "Revised" License
41 stars 24 forks source link

AutoDeps would not work with ninja. #32

Closed bchoineubility closed 9 months ago

bchoineubility commented 9 months ago

Hi,

I am trying to build lanelet2-traffic-rules in the yocto project and found AutoDeps could not find lanelet2_core even recipe declare already its dependency to the recipe. yocto use ninja for generating Makefile and use ament_cmake.

error message is

| CMake Error at /home/bchoi/nvidia-yocto-bsp/official_ros_humble_build/bchoi-build/tmp/work/armv8a-poky-linux/lanelet2-traffic-rules/1.2.1-1-r0/recipe-sysroot-native/usr/share/mrt_cmake_modules/cmake/Modules/FindAutoDeps.cmake:176 (message):
|   Package lanelet2_core was not found.  If it is a catkin package: Make sure
|   it is present.  If it is an external package: Make sure it is listed in
|   mrt_cmake_modules/yaml/cmake.yaml!
| Call Stack (most recent call first):
|   /home/bchoi/nvidia-yocto-bsp/official_ros_humble_build/bchoi-build/tmp/work/armv8a-poky-linux/lanelet2-traffic-rules/1.2.1-1-r0/recipe-sysroot-native/usr/share/mrt_cmake_modules/cmake/Modules/FindAutoDeps.cmake:253 (_find_dep)
|   CMakeLists.txt:22 (find_package)

I'd appreciate you if you give me information to resolve it.

BR, Mark

bchoineubility commented 9 months ago

Hi,

I resolved this issue.

I added custom.cmake to find required package which did not build with cantkin and add dependencies for them to package.xml.

Happy New year !!!

BR, Mark