Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling error with fmt #4

Closed
FPSychotic opened this issue Oct 27, 2023 · 1 comment
Closed

compiling error with fmt #4

FPSychotic opened this issue Oct 27, 2023 · 1 comment

Comments

@FPSychotic
Copy link

FPSychotic commented Oct 27, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant