# cmake error ###### tags `卒論` CMakeError.logは以下のようになっています。 ``` Determining if the include file sys/videoio.h exists failed with the following output: Change Dir: /home/qcmp/opencv/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_0de62/fast" /usr/bin/make -f CMakeFiles/cmTC_0de62.dir/build.make CMakeFiles/cmTC_0de62.dir/build make[1]: ディレクトリ '/home/qcmp/opencv/build/CMakeFiles/CMakeTmp' に入ります Building C object CMakeFiles/cmTC_0de62.dir/CheckIncludeFile.c.o /usr/bin/cc -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -fvisibility=hidden -O3 -DNDEBUG -fPIE -o CMakeFiles/cmTC_0de62.dir/CheckIncludeFile.c.o -c /home/qcmp/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c /home/qcmp/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: sys/videoio.h: そのようなファイルやディレクトリはありません #include <sys/videoio.h> ^~~~~~~~~~~~~~~ compilation terminated. CMakeFiles/cmTC_0de62.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_0de62.dir/CheckIncludeFile.c.o' failed make[1]: *** [CMakeFiles/cmTC_0de62.dir/CheckIncludeFile.c.o] Error 1 make[1]: ディレクトリ '/home/qcmp/opencv/build/CMakeFiles/CMakeTmp' から出ます Makefile:126: recipe for target 'cmTC_0de62/fast' failed make: *** [cmTC_0de62/fast] Error 2 Build output check failed: Regex: 'command line option .* is valid for .* but not for C' Output line: 'cc1: warning: command line option ‘-Wsuggest-override’ is valid for C++/ObjC++ but not for C' Compilation failed: source file: '/home/qcmp/opencv/build/CMakeFiles/CMakeTmp/src.c' check option: ' -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wsuggest-override' ===== BUILD LOG ===== Change Dir: /home/qcmp/opencv/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_22a6c/fast" /usr/bin/make -f CMakeFiles/cmTC_22a6c.dir/build.make CMakeFiles/cmTC_22a6c.dir/build make[1]: ディレクトリ '/home/qcmp/opencv/build/CMakeFiles/CMakeTmp' に入ります Building C object CMakeFiles/cmTC_22a6c.dir/src.c.o /usr/bin/cc -O3 -DNDEBUG -fPIE -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wsuggest-override -o CMakeFiles/cmTC_22a6c.dir/src.c.o -c /home/qcmp/opencv/build/CMakeFiles/CMakeTmp/src.c cc1: warning: command line option ‘-Wsuggest-override’ is valid for C++/ObjC++ but not for C /home/qcmp/opencv/build/CMakeFiles/CMakeTmp/src.c:1:0: warning: ignoring #pragma [-Wunknown-pragmas] #pragma Linking C executable cmTC_22a6c /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_22a6c.dir/link.txt --verbose=1 /usr/bin/cc -O3 -DNDEBUG CMakeFiles/cmTC_22a6c.dir/src.c.o -o cmTC_22a6c make[1]: ディレクトリ '/home/qcmp/opencv/build/CMakeFiles/CMakeTmp' から出ます ===== END ===== Determining if the function cheev_ exists failed with the following output: Change Dir: /home/qcmp/opencv/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_2365c/fast && /usr/bin/make -f CMakeFiles/cmTC_2365c.dir/build.make CMakeFiles/cmTC_2365c.dir/build make[1]: ディレクトリ '/home/qcmp/opencv/build/CMakeFiles/CMakeTmp' に入ります Building C object CMakeFiles/cmTC_2365c.dir/CheckFunctionExists.c.o /usr/bin/cc -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=cheev_ -O3 -DNDEBUG -fPIE -o CMakeFiles/cmTC_2365c.dir/CheckFunctionExists.c.o -c /home/qcmp/.pyenv/versions/anaconda3-5.3.1/envs/cv/lib/python3.7/site-packages/cmake/data/share/cmake-3.15/Modules/CheckFunctionExists.c Linking C executable cmTC_2365c /home/qcmp/.pyenv/versions/anaconda3-5.3.1/envs/cv/lib/python3.7/site-packages/cmake/data/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2365c.dir/link.txt --verbose=1 /usr/bin/cc -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=cheev_ -O3 -DNDEBUG -Wl,--gc-sections CMakeFiles/cmTC_2365c.dir/CheckFunctionExists.c.o -o cmTC_2365c CMakeFiles/cmTC_2365c.dir/CheckFunctionExists.c.o: 関数 `main' 内: CheckFunctionExists.c:(.text.startup.main+0xc): `cheev_' に対する定義されていない参照です collect2: error: ld returned 1 exit status CMakeFiles/cmTC_2365c.dir/build.make:86: recipe for target 'cmTC_2365c' failed make[1]: *** [cmTC_2365c] Error 1 make[1]: ディレクトリ '/home/qcmp/opencv/build/CMakeFiles/CMakeTmp' から出ます Makefile:121: recipe for target 'cmTC_2365c/fast' failed make: *** [cmTC_2365c/fast] Error 2 ```