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

catkin_make fails on 98% #84

Open
baberjunaid opened this issue Apr 25, 2022 · 3 comments
Open

catkin_make fails on 98% #84

baberjunaid opened this issue Apr 25, 2022 · 3 comments

Comments

@baberjunaid
Copy link

Hello experts,

All installation went fine. But it get failed on 98% with following error

[ 98%] Built target os_cloud_node
/usr/bin/ld: /home/robair/RobAIR/catkin_ws/devel/lib/lio/lio_estimator_node: hidden symbol `_ZN5ceres12CostFunctionD2Ev' in /usr/local/lib/libceres.a(cost_function.cc.o) is referenced by DSO
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lio-mapping/CMakeFiles/lio_estimator_node.dir/build.make:456: /home/robair/RobAIR/catkin_ws/devel/lib/lio/lio_estimator_node] Error 1
make[1]: *** [CMakeFiles/Makefile2:7251: lio-mapping/CMakeFiles/lio_estimator_node.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j4 -l4" failed
@Hi-Zed
Copy link

Hi-Zed commented Mar 9, 2023

I am having the same issue on Ubuntu 20.04.
Did you find a solution?

@Hi-Zed
Copy link

Hi-Zed commented Mar 10, 2023

For anyone with a similar issue, I solved it.
You need to build Cerse with shared libs, which are disabled by default.
option(BUILD_SHARED_LIBS "Build Ceres as a shared library." ON)

@HaogeZhou
Copy link

Hi @Hi-Zed, Where is this sentence you mentioned? How can I change or add this?

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

3 participants