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