mp157带的ubuntu18.04安装opencv18.04编译opencv时遇到的问题,有大佬知道怎么解决吗
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘size_t fread_unlocked(void*, size_t, size_t, FILE*)’:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:371:14: error: ‘_IO_getc_unlocked’ was not declared in this scope
int __c = _IO_getc_unlocked (__stream);
^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio2.h:371:14: note: suggested alternative: ‘fgetc_unlocked’
int __c = _IO_getc_unlocked (__stream);
^~~~~~~~~~~~~~~~~
fgetc_unlocked
modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/build.make:62: recipe for target ‘modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/loadsave.cpp.o’ failed
make[2]: *** [modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/loadsave.cpp.o] Error 1
CMakeFiles/Makefile2:2847: recipe for target ‘modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/all’ failed
make[1]: *** [modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…