Closed etherswangel closed 1 month ago
In plain cmake you expanded manually the $CONDA_PREFIX
, while in colcon you used $CONDA_PREFIX
, do you think this can be related? Can you point us to the specific package whose compilation is failing?
In plain cmake you expanded manually the $CONDA_PREFIX, while in colcon you used $CONDA_PREFIX, do you think this can be related?
Sorry, I copied the wrong command. I was debugging that I replaced $CONDA_PREFIX
manually😄and that doesn't help
Can you point us to the specific package whose compilation is failing?
I'm testing some random packages, currently seems all packages with custom message (interface) have this issue, since rosidl is using python
Can you point us to the specific package whose compilation is failing?
I'm testing some random packages, currently seems all packages with custom message (interface) have this issue, since rosidl is using python
Can you report at least one that is failing? Thanks.
Can you report at least one that is failing? Thanks.
jackal_msgs
The following is a minimum example to reproduce on my machine.
CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(cpp_pubsub)
find_package(rosidl_default_generators REQUIRED)
package.xml
<package format="2">
<name>cpp_pubsub</name>
<buildtool_depend>rosidl_default_generators</buildtool_depend>
<exec_depend>rosidl_default_runtime</exec_depend>
<member_of_group>rosidl_interface_packages</member_of_group>
</package>
Could you please try and increase the cmake_minimum_required to 3.20 or something like that?
OMG that solves the problem, didn't thought a higher cmake version is needed. Thank you so much 😄
Could you do us a favour and test what the lowest working minimum version is? I’d like to add it to the FAQ
For reference, if you need to support older CMake versions (for example for apt compatibility) you can also just specify a policy_max
version, via cmake_minimum_required(VERSION 3.5...3.20)
, this should behave as cmake_minimum_required(VERSION 3.20)
.
Sure, in my case I need at least cmake 3.15 to have it work
Thanks! Then I guess it is something related to CMP0094
.
Have added it to the docs: https://github.com/RoboStack/robostack.github.io/commit/54755f314a6fe1c01e2efb8e6d95bf22c173ef92
Sure, in my case I need at least cmake 3.15 to have it work
I had the same issue -- 3.15 is the minimum working version for me.
Solution to issue cannot be found in the documentation.
Issue
I'm having the same problem as mentioned in https://github.com/RoboStack/ros-humble/issues/160. Followed the instructions in the FAQ, it works for
cmake
but not forcolcon build
. Usingrobostack-staging
channel on an aarch64 Mac (M3 Max), just updated all packages.To note that I'm not using
mamba
since it's a drop-in replacement forconda
, I'd like to stick with it (if only that's not the issue).Installed packages
Environment info