sherlockchou86 / VideoPipe

跨平台的视频结构化(视频分析)框架,觉得有帮助的请给个星星 : ) 。**VideoPipe下一版本正在开发中,在保证跨平台、易上手的前提下,预计性能直逼deepstream等各硬件平台官方框架**。
Apache License 2.0
1.16k stars 165 forks source link

编译错误:../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()' #42

Closed MnMainTou closed 1 month ago

MnMainTou commented 2 months ago

使用make -j4命令后,报错

[ 71%] Linking CXX executable ../bin/multi_detectors_sample
[ 71%] Linking CXX executable ../bin/firesmoke_detect_sample
../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
samples/CMakeFiles/multi_detectors_sample.dir/build.make:111: recipe for target 'bin/multi_detectors_sample' failed
make[2]: *** [bin/multi_detectors_sample] Error 1
CMakeFiles/Makefile2:383: recipe for target 'samples/CMakeFiles/multi_detectors_sample.dir/all' failed
make[1]: *** [samples/CMakeFiles/multi_detectors_sample.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
samples/CMakeFiles/lane_detect_sample.dir/build.make:111: recipe for target 'bin/lane_detect_sample' failed
make[2]: *** [bin/lane_detect_sample] Error 1
CMakeFiles/Makefile2:269: recipe for target 'samples/CMakeFiles/lane_detect_sample.dir/all' failed
make[1]: *** [samples/CMakeFiles/lane_detect_sample.dir/all] Error 2
../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
samples/CMakeFiles/face_swap_sample.dir/build.make:111: recipe for target 'bin/face_swap_sample' failed
make[2]: *** [bin/face_swap_sample] Error 1
CMakeFiles/Makefile2:307: recipe for target 'samples/CMakeFiles/face_swap_sample.dir/all' failed
make[1]: *** [samples/CMakeFiles/face_swap_sample.dir/all] Error 2
../libs/libvideo_pipe.so: undefined reference to `cv::freetype::createFreeType2()'
collect2: error: ld returned 1 exit status
samples/CMakeFiles/firesmoke_detect_sample.dir/build.make:111: recipe for target 'bin/firesmoke_detect_sample' failed
make[2]: *** [bin/firesmoke_detect_sample] Error 1
CMakeFiles/Makefile2:345: recipe for target 'samples/CMakeFiles/firesmoke_detect_sample.dir/all' failed
make[1]: *** [samples/CMakeFiles/firesmoke_detect_sample.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

环境 系统:Ubuntu 18.04.6 LTS openCV:4.6.0

sherlockchou86 commented 2 months ago

参考: https://github.com/sherlockchou86/VideoPipe/issues/40#issuecomment-2069606083