shanmo / OrcVIO-Lite

A lightweight version of OrcVIO that uses monocular images, inertial data, as well as bounding box measurements
36 stars 8 forks source link

undefined reference to `cv::hdf::open(cv::String const&)' for the tests #3

Closed FengQiaojun closed 2 years ago

FengQiaojun commented 2 years ago

I had this error when compiling the Non-ROS version

Screenshot from 2021-09-29 12-17-06

I am using OpenCV 3.4.14.

shanmo commented 2 years ago

Related issues:

It seems this issue is caused by missing dependencies of OpenCV. Based on this, it needs

libhdf5-dev: This library contains development files for Hierarchical Data Format 5 (HDF5). HDF5 is designed to store and organize large amounts of data

so sudo apt-get install -y libhdf5-dev might solve the issue, and adding these in cmakelist may also help

find_package(HDF5)
include_directories(${HDF5_INCLUDE_DIRS})

The test code is not essential for this codebase to run, you could just delete them and remove the relevant part in cmakelist.