sherlockchou86/VideoPipe

编译报错

GDbbq opened this issue · 1 comments

ubuntu20 , opencv4.7, 编译默认选项报错

Scanning dependencies of target N-1-N_sample
Scanning dependencies of target face_tracking_sample
Scanning dependencies of target enet_seg_sample
Scanning dependencies of target message_broker_sample
Scanning dependencies of target image_src_sample
Scanning dependencies of target multi_detectors_and_classifiers_sample
[ 67%] Building CXX object samples/CMakeFiles/face_tracking_sample.dir/face_tracking_sample.cpp.o
[ 67%] Building CXX object samples/CMakeFiles/image_des_sample.dir/image_des_sample.cpp.o
[ 67%] Building CXX object samples/CMakeFiles/multi_detectors_and_classifiers_sample.dir/multi_detectors_and_classifiers_sample.cpp.o
[ 67%] Building CXX object samples/CMakeFiles/image_src_sample.dir/image_src_sample.cpp.o
[ 68%] Building CXX object samples/CMakeFiles/N-1-N_sample.dir/N-1-N_sample.cpp.o
[ 68%] Building CXX object samples/CMakeFiles/1-N-N_sample.dir/1-N-N_sample.cpp.o
[ 68%] Building CXX object samples/CMakeFiles/enet_seg_sample.dir/enet_seg_sample.cpp.o
[ 69%] Building CXX object samples/CMakeFiles/message_broker_sample.dir/message_broker_sample.cpp.o
[ 70%] Linking CXX executable ../bin/multi_detectors_and_classifiers_sample
[ 71%] Linking CXX executable ../bin/enet_seg_sample
[ 71%] Linking CXX executable ../bin/face_tracking_sample
[ 72%] Linking CXX executable ../bin/image_src_sample
[ 73%] Linking CXX executable ../bin/1-N-N_sample
[ 74%] Linking CXX executable ../bin/image_des_sample
[ 74%] Linking CXX executable ../bin/N-1-N_sample
/usr/bin/ld: ../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
make[2]: *** [samples/CMakeFiles/multi_detectors_and_classifiers_sample.dir/build.make:101: bin/multi_detectors_and_classifiers_sample] Error 1
make[1]: *** [CMakeFiles/Makefile2:425: samples/CMakeFiles/multi_detectors_and_classifiers_sample.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: ../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
make[2]: *** [samples/CMakeFiles/enet_seg_sample.dir/build.make:101: bin/enet_seg_sample] Error 1
make[1]: *** [CMakeFiles/Makefile2:397: samples/CMakeFiles/enet_seg_sample.dir/all] Error 2
/usr/bin/ld: ../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
make[2]: *** [samples/CMakeFiles/face_tracking_sample.dir/build.make:101: bin/face_tracking_sample] Error 1
make[1]: *** [CMakeFiles/Makefile2:369: samples/CMakeFiles/face_tracking_sample.dir/all] Error 2
/usr/bin/ld: ../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
make[2]: *** [samples/CMakeFiles/image_src_sample.dir/build.make:101: bin/image_src_sample] Error 1
make[1]: *** [CMakeFiles/Makefile2:341: samples/CMakeFiles/image_src_sample.dir/all] Error 2
/usr/bin/ld: ../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
make[2]: *** [samples/CMakeFiles/1-N-N_sample.dir/build.make:101: bin/1-N-N_sample] Error 1
make[1]: *** [CMakeFiles/Makefile2:453: samples/CMakeFiles/1-N-N_sample.dir/all] Error 2
/usr/bin/ld: ../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
make[2]: *** [samples/CMakeFiles/image_des_sample.dir/build.make:101: bin/image_des_sample] Error 1
make[1]: *** [CMakeFiles/Makefile2:313: samples/CMakeFiles/image_des_sample.dir/all] Error 2
/usr/bin/ld: ../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
make[2]: *** [samples/CMakeFiles/N-1-N_sample.dir/build.make:101: bin/N-1-N_sample] Error 1
make[1]: *** [CMakeFiles/Makefile2:257: samples/CMakeFiles/N-1-N_sample.dir/all] Error 2
[ 75%] Linking CXX executable ../bin/message_broker_sample
/usr/bin/ld: ../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
make[2]: *** [samples/CMakeFiles/message_broker_sample.dir/build.make:101: bin/message_broker_sample] Error 1
make[1]: *** [CMakeFiles/Makefile2:285: samples/CMakeFiles/message_broker_sample.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

freetype2没装好,去微信群里问