1
我打算开始更多地使用面部识别,所以我试图安装dlib。我按照指示:无法编译dlib,它在99%时失败
cd examples
mkdir build
cd build
cmake ..
cmake --build . --config Release
而唯一失败的是最后一个。它跑了罚款,直到它得到99%完成,然后:
Scanning dependencies of target train_shape_predictor_ex
[ 96%] Building CXX object CMakeFiles/train_shape_predictor_ex.dir/train_shape_predictor_ex.cpp.o
[ 96%] Linking CXX executable train_shape_predictor_ex
[ 96%] Built target train_shape_predictor_ex
Scanning dependencies of target using_custom_kernels_ex
[ 96%] Building CXX object CMakeFiles/using_custom_kernels_ex.dir/using_custom_kernels_ex.cpp.o
[ 97%] Linking CXX executable using_custom_kernels_ex
[ 97%] Built target using_custom_kernels_ex
Scanning dependencies of target video_tracking_ex
[ 97%] Building CXX object CMakeFiles/video_tracking_ex.dir/video_tracking_ex.cpp.o
[ 98%] Linking CXX executable video_tracking_ex
[ 98%] Built target video_tracking_ex
Scanning dependencies of target webcam_face_pose_ex
[ 98%] Building CXX object CMakeFiles/webcam_face_pose_ex.dir/webcam_face_pose_ex.cpp.o
[ 99%] Linking CXX executable webcam_face_pose_ex
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]IBTIFF_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
/usr/local/lib/libopencv_highgui.so.2.4.11: undefined reference to `[email protected]_4.0'
collect2: error: ld returned 1 exit status
make[2]: *** [webcam_face_pose_ex] Error 1
make[1]: *** [CMakeFiles/webcam_face_pose_ex.dir/all] Error 2
make: *** [all] Error 2
它看起来对我来说,我只是缺少一些文件。我将如何解决这个问题?
它说,加上 “'-DBUILD_TIFF = ON'” 到CMake的。我把哪一个附加到:“'cmake ..'”,或者“'cmake --build。--config release'”?为什么我不能*安装* LibTIFF4? – Rich
我刚刚添加并重新编写了它,它仍然给了我相同的一组错误。 – Rich
你重建了opencv或dlib吗? – Evgeniy