baidu / boteye

211 stars 72 forks source link

找不到XP_DRIVER_LIBRARY #32

Closed zhangzhouyuan closed 5 years ago

zhangzhouyuan commented 5 years ago
zzy@zzy-ThinkPad-T430s:~/XP_release/boteye/apps/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Eigen3 at Eigen_INCLUDE_DIR = /usr/include/eigen3
-- Found OpenCV 3.0.0 at /home/zzy/XP_release/3rdparty_lib_lean
-- OpenCV contains the following libs
-- opencv_viz
-- opencv_videostab
-- opencv_videoio
-- opencv_video
-- opencv_superres
-- opencv_stitching
-- opencv_shape
-- opencv_photo
-- opencv_objdetect
-- opencv_ml
-- opencv_imgproc
-- opencv_imgcodecs
-- opencv_highgui
-- opencv_hal
-- opencv_flann
-- opencv_features2d
-- opencv_core
-- opencv_calib3d
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   filesystem
--   system
-- Found libopencv_viz
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
XP_DRIVER_LIBRARY
    linked by target "app_tracking" in directory /home/zzy/XP_release/boteye/apps/app_tracking
    linked by target "xp_sensor_logger" in directory /home/zzy/XP_release/boteye/apps/xp_sensor_logger
XP_LIBRARY
    linked by target "app_tracking" in directory /home/zzy/XP_release/boteye/apps/app_tracking
    linked by target "pose_receiver" in directory /home/zzy/XP_release/boteye/apps/app_tracking
    linked by target "xp_sensor_logger" in directory /home/zzy/XP_release/boteye/apps/xp_sensor_logger
    linked by target "cam_calibration" in directory /home/zzy/XP_release/boteye/apps/cam_calibration

-- Configuring incomplete, errors occurred!
See also "/home/zzy/XP_release/boteye/apps/build/CMakeFiles/CMakeOutput.log".

您好,两个库文件都已安装没有问题,但是cmake时候找不到XP_DRIVER_LIBRARY这个,该如何解决?

mingyux commented 5 years ago

https://github.com/baidu/boteye/wiki/Build#pre-built-libraries

https://github.com/baidu/boteye/blob/master/cmake/XP_lib_helper.cmake#L16

zhangzhouyuan commented 5 years ago

问题已解决,lib_x86_64放置到根目录你们指的是boteye文件夹下,而不是系统的根目录,表述不是很清晰

mingyux commented 5 years ago

Thanks for your feedback. We will improve the documentation accordingly.