Ubuntu system installation DLib package

        During this period of time, I picked up the loopback detection of the old line of undergraduate, and prepared a paper. After studying the code of DLoopDetector before, I planned to copy some content on the basis of the source code, but found that there is no way to use modules such as DUtils and DUtilsCV directly. , After opening cmakelist, I still can't find the corresponding solution.

        As known from GitHub, the author of DLoopDetector, dorian3d , is both the author of DBoW2 and the author of DLib, so he intends to directly configure the related environment of DLib.

        Mainly run some codes:

git clone https://github.com/dorian3d/DLib.git
cd DLib/
mkdir build
cd build
cmake ..
make -j4
sudo make install

 

 

  

        In addition to including the corresponding header files in the code, add the following code to CMAKELIST.

find_package(DLib REQUIRED)

set( DLib_INCLUDE_DIRS "/usr/local/include" )
set( DLib_LIBS "/usr/local/lib/libDLib.so" )

target_link_libraries(XXX ${DLib_LIBS})

        After that, there will be no more errors!

Guess you like

Origin blog.csdn.net/loveSIYU/article/details/127197297