Can't find the C/C++ source codes of the tf ros package in /opt/ros/melodic/...
I am trying to remove the boostsignals library dependency from the tf ros package, but i can't find the CMakeLists.txt file of the package. I am trying to remove the dependency of the boostsignals from the tf ros package.
Asked by seif_seghiri on 2021-04-02 11:04:37 UTC
Answers
It is possible that the tf ros package is not installed. Please try the following command.
$ sudo apt install ros-melodic-geometry ros-melodic-geometry2
Asked by miura on 2021-04-05 08:34:34 UTC
Comments
the package is installed, i just don't know where to find its CMakeLIsts.txt.
Asked by seif_seghiri on 2021-04-05 11:05:05 UTC
CMakelists.txt should not be included in the package.
It seems that tf2 has already been released with the https://github.com/ros/geometry2/pull/354/commits/f3f8bab69e35681def03a1d20533c1300d69f415 changes reflected. Therefore, I don't think that changing CMakelists.txt in tf2 is a solution to the issue you are having.
By the way, the CMakeLists.txt of tf2 is here.
Asked by miura on 2021-04-05 11:49:50 UTC
when i try to compie geometry2 package it raises this error
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libboost_system.a(error_code.o): relocation R_X86_64_PC32 against symbol `_ZTVN5boost6system14error_categoryE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status geometry2/tf2/CMakeFiles/tf2.dir/build.make:172: recipe for target '/home/seghiri/catkin_ws/devel/lib/libtf2.so' failed make[2]: *** [/home/seghiri/catkin_ws/devel/lib/libtf2.so] Error 1 CMakeFiles/Makefile2:2638: recipe for target 'geometry2/tf2/CMakeFiles/tf2.dir/all' failed make[1]: *** [geometry2/tf2/CMakeFiles/tf2.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4" failed
Asked by seif_seghiri on 2021-04-05 11:57:34 UTC
Do you want to use the tf package? Or do you want to build it yourself?
If you just want to use it, you should be able to do so by installing it with sudo apt install ros-melodic-geometry ros-melodic-geometry2
.
If you want to build it yourself, you can get the latest set of source code from github, including the CMakeLists.txt file.
Asked by miura on 2021-04-06 08:29:51 UTC
Comments
You have to provide more details. What package are you working with? Maybe share your CMakeLists.txt as well.
Asked by Akhil Kurup on 2021-04-02 12:39:32 UTC
i have problems with compiling some projects it says that cmake is not finding required boost libraries (boost_signals), and i found this tutorial remove_boost_signlas_library_dependency. but the problem i'm facing is that i can't find the tf package source code in ros workspace under (/opt/ros/melodic/share .....) ?
Asked by seif_seghiri on 2021-04-02 15:42:19 UTC
How did you install the tf ros package? Did you follow the tutorial and do it in
sudo apt install ros-melodic-desktop-full
?Asked by miura on 2021-04-03 11:49:32 UTC
Yes i did follow that.
Asked by seif_seghiri on 2021-04-03 12:56:44 UTC