如题,编译的时候选择了WITH_FLIR_CAMERA的选项的时候编译报错,如下,原因是 OpenPose 的更新之后,添加了对Spinnaker库的要求 。
解决方法就是 缺啥补啥,安装 Spinnaker ,下面是下载链接https://flir.app.boxcn.net/v/SpinnakerSDK
选择 SpinnakerSDK_FULL_1.27.0.48_x64.exe下载,然后一路安装
安装后得到 C:\Program Files\Point Grey Research\Spinnaker 路径
将上述三个文件夹内容 对应拷贝到 openpose工程目录里,对应关系如下图。openpose里的文件夹是自己创建的
拷贝完成后就完成了,重新cmake就没有问题了。
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:
SPINNAKER_LIB
linked by target “openpose” in directory D:/workplace/openpose-1.5.1/src/openpose
linked by target “Calibration” in directory D:/workplace/openpose-1.5.1/examples/calibration
linked by target “OpenPoseDemo” in directory D:/workplace/openpose-1.5.1/examples/openpose
linked by target “1_custom_post_processing” in directory D:/workplace/openpose-1.5.1/examples/tutorial_add_module
linked by target “01_body_from_image_default” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “02_whole_body_from_image_default” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “08_heatmaps_from_image” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “03_keypoints_from_image” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “12_asynchronous_custom_input_output_and_datum” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “05_keypoints_from_images_multi_gpu” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “04_keypoints_from_images” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “06_face_from_image” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “07_hand_from_image” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “09_keypoints_from_heatmaps” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “10_asynchronous_custom_input” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “11_asynchronous_custom_output” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “13_synchronous_custom_input” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “17_synchronous_custom_all_and_datum” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “14_synchronous_custom_preprocessing” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “15_synchronous_custom_postprocessing” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “16_synchronous_custom_output” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_cpp
linked by target “1_thread_user_processing_function” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_thread
linked by target “2_thread_user_input_processing_output_and_datum” in directory D:/workplace/openpose-1.5.1/examples/tutorial_api_thread
Configuring incomplete, errors occurred!
See also “D:/workplace/openpose-1.5.1/build/CMakeFiles/CMakeOutput.log”.