Open tanshihaj opened 2 years ago
It's not obvious what's going on to me either. I'm going to mark this as help wanted.
If you do figure it out, I'd appreciate if you post it here or make a PR. You can @ me for a review.
@tanshihaj any news on that? I am facing the exact same issue when trying to build https://github.com/ros/kdl_parser
on a system which has ROS2 installed.
No, I didn't fix this issue, unfortunately.
I cannot build ROS packages that depends on tinyxml2_vendor using nixpkgs. Main issue is https://github.com/ros2/tinyxml2_vendor/blob/rolling/cmake/Modules/FindTinyXML2.cmake, it seems that in some environments you can get error during configure:
It seems that https://github.com/ros2/tinyxml2_vendor/blob/rolling/cmake/Modules/FindTinyXML2.cmake called twice (I think because there is two transitive dependencies of qt-gui-cpp that use TinyXML2). First call
FindTinyXML2.cmake
setsTINYXML2_LIBRARY
variable totinyxml2
here https://github.com/ros2/tinyxml2_vendor/blob/rolling/cmake/Modules/FindTinyXML2.cmake#L13 and second time it tries to split it by;
for 4 parts here https://github.com/ros2/tinyxml2_vendor/blob/rolling/cmake/Modules/FindTinyXML2.cmake#L27. This issue obviously specific to my environment since it builds fine on other ones (otherwise this bug would be fixed), but I don't understand how it should work.