You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pal-robotics/backward_ros#21 (Which btw. still doesn't work). I therefore tried to include backward-cpp directly in my program. When I followed the guide in the readme I first ran into the following issues:
cmake couldn't clone the repository -> This was due to the SYSTEM argument in the Fetch call. This argument is only supported in cmake > 3.25. Ubuntu 22.04 ships 3.22.1. -> Removing SYSTEM fixes that
None of the targets Backward::Interface, Backward::Object, or Backward::Backward can be found by cmake.
Solution: Directly link against backward_object
So in order to get it working on Ubuntu 22.04 I have now the following CMakeLists.txt
# Also requires one of: libbfd (gnu binutils), libdwarf, libdw (elfutils)
FetchContent_Declare(Backward #Note: For some reason I ran into issues when the target here is called backwards with a small b at the beginning
GIT_REPOSITORY https://github.com/bombela/backward-cpp
GIT_TAG master # or a version tag, such as v1.6
)
FetchContent_MakeAvailable(Backward)
add_executable....
target_link_libraries(my_executable backward_object)
The text was updated successfully, but these errors were encountered:
Hi I originally came from:
pal-robotics/backward_ros#21 (Which btw. still doesn't work). I therefore tried to include backward-cpp directly in my program. When I followed the guide in the readme I first ran into the following issues:
SYSTEM
argument in the Fetch call. This argument is only supported in cmake > 3.25. Ubuntu 22.04 ships 3.22.1. -> RemovingSYSTEM
fixes thatBackward::Interface, Backward::Object, or Backward::Backward
can be found by cmake.Solution: Directly link against
backward_object
So in order to get it working on Ubuntu 22.04 I have now the following CMakeLists.txt
The text was updated successfully, but these errors were encountered: