1
私は顔認識でもっと作業を開始する予定ですので、dlibをインストールしようとしました。私は指示に従いました:dlibをコンパイルできません。99%で失敗します
cd examples
mkdir build
cd build
cmake ..
cmake --build . --config Release
最後に失敗したのは1つだけです。それは完全に完了して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]_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
私はちょうどいくつかのファイルが欠落しているように見えます。どのように私はそれを修正するだろうか?
それはcmakeのに "' -DBUILD_TIFF = on'の" を追加すると言います。 "cmake .."または "cmake --build。--config Release"には、どれを追加するのですか?なぜLibTIFF4をインストールするだけのことができないのですか? – Rich
私はそれを追加して作り直しましたが、それでも私には同じエラーが与えられました。 – Rich
opencvまたはdlibを再構築しましたか? – Evgeniy