AutonomousFieldRoboticsLab / SVIn

Underwater Navigation with tightly coupled fusion of Visual Inertial Sonar and Depth Information
GNU General Public License v3.0
104 stars 20 forks source link

OpenMP issues pertaining to pose graph library #12

Closed sushrutsurve closed 1 year ago

sushrutsurve commented 1 year ago

Hi ! I am trying to build the SVIn but the build fails specifically when it tries to link this CXX executable [ 90%] Linking CXX executable /data/svin_ws/devel/lib/pose_graph/pose_graph

I think the issue is the following /usr/local/lib/libceres.a(evaluator.cc.o): In function.omp_outlined.': evaluator.cc:(.text+0x177): undefined reference to __kmpc_global_thread_num' evaluator.cc:(.text+0x1d9): undefined reference tokmpc_for_static_init_4' evaluator.cc:(.text+0x214): undefined reference to `kmpc_flush' evaluator.cc:(.text+0x22e): undefined reference to __kmpc_flush' evaluator.cc:(.text+0x26a): undefined reference tokmpc_flush' evaluator.cc:(.text+0x971): undefined reference to __kmpc_for_static_fini' /usr/local/lib/libceres.a(evaluator.cc.o): In function.omp_outlined..12': evaluator.cc:(.text+0x9f4): undefined reference to __kmpc_global_thread_num' evaluator.cc:(.text+0xa57): undefined reference tokmpc_for_static_init_4' evaluator.cc:(.text+0xa92): undefined reference to __kmpc_flush' evaluator.cc:(.text+0xaac): undefined reference tokmpc_flush' evaluator.cc:(.text+0xae8): undefined reference to __kmpc_flush' evaluator.cc:(.text+0xf01): undefined reference tokmpc_for_static_fini' /usr/local/lib/libceres.a(evaluator.cc.o): In function .omp_outlined..13': evaluator.cc:(.text+0xf72): undefined reference tokmpc_global_thread_num' evaluator.cc:(.text+0xfd4): undefined reference to __kmpc_for_static_init_4' evaluator.cc:(.text+0x101d): undefined reference to__kmpc_flush' evaluator.cc:(.text+0x103a): undefined reference to `kmpc_flush' evaluator.cc:(.text+0x107b): undefined reference to __kmpc_flush' evaluator.cc:(.text+0x14c1): undefined reference to__kmpc_for_static_fini'`

I am using Ubuntu 18.04.5 LTS with ROS melodic.

Any suggestions on how to solve this issue would be really helpful. Thanks !

sushrutsurve commented 1 year ago

Just reinstalled OpenMP libraries using sudo apt-get install libomp5 sudo apt-get install libomp-dev