hku-mars / D-Map

D-Map provides an efficient occupancy mapping approach for high-resolution LiDAR sensors.
GNU General Public License v2.0
281 stars 26 forks source link

compiling error with fmt #4

Closed FPSychotic closed 10 months ago

FPSychotic commented 10 months ago

with catkin build

`ws/devel/.private/dmap/lib/libdmap_lib.so: undefined reference to `typeinfo for fmt::v9::format_error'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/example.dir/build.make:490: /home/ibox/dmap_ws/devel/.private/dmap/lib/dmap/example] Error 1
make[1]: *** [CMakeFiles/Makefile2:1256: CMakeFiles/example.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

With catkin_make

`[ 85%] Building CXX object D-Map/CMakeFiles/example.dir/src/DMap_example.cpp.o
[100%] Linking CXX executable /home/ibox/dmap_ws/devel/lib/dmap/example
/usr/bin/ld: /home/ibox/dmap_ws/devel/lib/libdmap_lib.so: undefined reference to `fmt::v9::detail::throw_format_error(char const*)'
/usr/bin/ld: /home/ibox/dmap_ws/devel/lib/libdmap_lib.so: undefined reference to `vtable for fmt::v9::format_error'
/usr/bin/ld: /home/ibox/dmap_ws/devel/lib/libdmap_lib.so: undefined reference to `fmt::v9::detail::assert_fail(char const*, int, char const*)'
/usr/bin/ld: /home/ibox/dmap_ws/devel/lib/libdmap_lib.so: undefined reference to `fmt::v9::detail::thousands_sep_result<char> fmt::v9::detail::thousands_sep_impl<char>(fmt::v9::detail::locale_ref)'
/usr/bin/ld: /home/ibox/dmap_ws/devel/lib/libdmap_lib.so: undefined reference to `fmt::v9::format_error::~format_error()'
/usr/bin/ld: /home/ibox/dmap_ws/devel/lib/libdmap_lib.so: undefined reference to `fmt::v9::detail::dragonbox::decimal_fp<float> fmt::v9::detail::dragonbox::to_decimal<float>(float)'
/usr/bin/ld: /home/ibox/dmap_ws/devel/lib/libdmap_lib.so: undefined reference to `fmt::v9::detail::is_printable(unsigned int)'
/usr/bin/ld: /home/ibox/dmap_ws/devel/lib/libdmap_lib.so: undefined reference to `fmt::v9::detail::print(_IO_FILE*, fmt::v9::basic_string_view<char>)'
/usr/bin/ld: /home/ibox/dmap_ws/devel/lib/libdmap_lib.so: undefined reference to `char fmt::v9::detail::decimal_point_impl<char>(fmt::v9::detail::locale_ref)'
/usr/bin/ld: /home/ibox/dmap_ws/devel/lib/libdmap_lib.so: undefined reference to `fmt::v9::detail::dragonbox::decimal_fp<double> fmt::v9::detail::dragonbox::to_decimal<double>(double)'
/usr/bin/ld: /home/ibox/dmap_ws/devel/lib/libdmap_lib.so: undefined reference to `typeinfo for fmt::v9::format_error'
collect2: error: ld returned 1 exit status
make[2]: *** [D-Map/CMakeFiles/example.dir/build.make:490: /home/ibox/dmap_ws/devel/lib/dmap/example] Error 1
make[1]: *** [CMakeFiles/Makefile2:1897: D-Map/CMakeFiles/example.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

` it happens with amd64 cpu, 20.04, and with fmtros package installed from source or without it, libmmt dev is installed in the system. used -j2 or -j4 with same error. I have it installed in jetson orin nx, I dont remember if I had this error and fixed it or it is new. I think I had a error with jetson and fixed it , will check the bash.rc history, but I live the issue just in case.

FPSychotic commented 10 months ago

fixed uninstalling fmt ros package that was dependence of other package.