I uninstalled depthai-core, deleted ./hunter and reinstalled with :
git clone --recurse-submodules luxonis/depthai-core.git
cd depthai-core
mkdir build && cd build
cmake ..
cmake --build . -j4
The installation completes then I compile my program with g++ :
g++ -std=c++17 -g slam_test.cpp \
-I/usr/include/eigen3 \
-I/usr/include/opencv4 \
-I/usr/include/pcl-1.14 \
-I$HOME/faiss_install/include \
-I$HOME/depthai-core/include \
-I$HOME/depthai-core/shared/include \
-I$HOME/depthai-core/shared/depthai-shared/include \
-I$HOME/depthai-core/shared/depthai-shared/third_party/libnop/include \
-I$HOME/tl_optional/include \
-L$HOME/depthai-core/build/lib \
-L/usr/local/lib \
-L/usr/lib/x86_64-linux-gnu \
-L$HOME/faiss_install/lib \
-ldepthai-core -ldepthai-opencv -lxlink \
-lgtsam -lgtsam_unstable -ltbb \
-lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_features2d -lopencv_videoio -lopencv_ximgproc \
-lpcl_common -lpcl_io -lpcl_filters -lpcl_search -lpcl_features \
-lpcl_kdtree -lpcl_registration -lteaser_registration -lfaiss \
-lcurl -lpthread -lrt -ldl -lzmq -fopenmp -lyaml-cpp \
-o slam_test
And I still got this error :
In file included from /home/me/depthai-core/shared/depthai-shared/include/depthai-shared/common/Point3f.hpp:7,
from /home/me/depthai-core/shared/depthai-shared/include/depthai-shared/common/Extrinsics.hpp:6,
from /home/me/depthai-core/shared/depthai-shared/include/depthai-shared/common/CameraInfo.hpp:4,
from /home/me/depthai-core/shared/depthai-shared/include/depthai-shared/common/EepromData.hpp:7,
from /home/me/depthai-core/include/depthai/device/CalibrationHandler.hpp:6,
from /home/me/depthai-core/include/depthai/depthai.hpp:9,
from Camera5.cpp:8,
from Slam4.cpp:29,
from slam_test.cpp:7:
/home/me/depthai-core/shared/depthai-shared/include/depthai-shared/utility/Serialization.hpp:9:10: fatal error: nop/serializer.h: No such file or directory
9 | #include <nop/serializer.h>
| ^\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~
compilation terminated.
I checked with : find ~/depthai-core -name "serializer.h"
but got no result.