ORB_SLAM 2のインストール中に発生した問題
1867 ワード
私がPangolinをインストールする時、cmakeに着く時準備が整います
次のmake-jに進むとこのようなエラーが発生します.
make[2]:***[src/CPMakeFiles/pangolin.dir/video/video.cpp.o]エラー1 make[1]:***[src/CPMakeFiles/pangolin.dir/all]エラー2 make:***[all]エラー2
この問題に遭遇した後、インストールチュートリアルのcmakeを比較しました.2項多く出る
ho@B-Complex:~/Holib/Pangolin/build$ cmake ..
Build type not set (defaults to release)
-DCMAKE_BUILD_TYPE=Debug for debug
-- Python Found and Enabled
-- Eigen Found and Enabled
-- libdc1394 Found and Enabled
-- V4L Found and Enabled
-- ffmpeg Found and Enabled
-- OpenNI Found and Enabled !!!
-- OpenNI2 Found and Enabled !!!
-- libpng Found and Enabled
-- libjpeg Found and Enabled
-- libtiff Found and Enabled
-- libopenexr Found and Enabled
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Oculus NOT found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ho/Holib/Pangolin/build
PangolinのCMakeList.リストのこのコメントを削除すると、インストールを続行できます.
#find_package(OpenNI QUIET)
#if(BUILD_PANGOLIN_VIDEO AND OPENNI_FOUND)
# set(HAVE_OPENNI 1)
# list(APPEND INTERNAL_INC ${OPENNI_INCLUDE_DIRS} )
# list(APPEND LINK_LIBS ${OPENNI_LIBRARIES} )
# list(APPEND HEADERS ${INCDIR}/video/drivers/openni.h )
# list(APPEND SOURCES video/drivers/openni.cpp)
# message(STATUS "OpenNI Found and Enabled")
#endif()
#find_package(OpenNI2 QUIET)
#if(BUILD_PANGOLIN_VIDEO AND OPENNI2_FOUND)
# set(HAVE_OPENNI2 1)
# if(_LINUX_)
# add_definitions(-Dlinux=1)
# endif()
# list(APPEND INTERNAL_INC ${OPENNI2_INCLUDE_DIRS} )
# list(APPEND LINK_LIBS ${OPENNI2_LIBRARIES} )
# list(APPEND HEADERS ${INCDIR}/video/drivers/openni2.h )
# list(APPEND SOURCES video/drivers/openni2.cpp)
# message(STATUS "OpenNI2 Found and Enabled")
#endif()