我用cmake编译了osvr_tracker_viewer的源代码。我设置了如下条目:
-DBOOST_ROOT =" C:/本地/ boost_1_62_0" ^ -DBOOST_LIBRARYDIR =" C:/local/boost_1_62_0/lib64-msvc-12.0" ^ -Dosvr_DIR =" d:/项目/ OSVR-构建/ OSVR / OSVR核/构建" ^
并显示如下错误:
CMake Error at C:/Program Files/CMake/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
OPENTHREADS_FOUND OSGDB_FOUND OSGVIEWER_FOUND OSGGA_FOUND OSGUTIL_FOUND
OSG_FOUND)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.7/Modules/FindOpenSceneGraph.cmake:223 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:11 (find_package)