Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencv cmake error. #50

Open
H91011 opened this issue Oct 1, 2016 · 1 comment
Open

opencv cmake error. #50

H91011 opened this issue Oct 1, 2016 · 1 comment

Comments

@H91011
Copy link

H91011 commented Oct 1, 2016

I have an error I can nor solve this problem. I use Ubuntu 16.04 I use this tutorial https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-or-15.10-OpenCV-3.1-Installation-Guide and its not working.

Determining if the system is big endian passed with the following output:
Change Dir: /home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_ba66c/fast"
/usr/bin/make -f CMakeFiles/cmTC_ba66c.dir/build.make CMakeFiles/cmTC_ba66c.dir/build
make[1]: Entering directory '/home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ba66c.dir/TestEndianess.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 -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden  -O3 -DNDEBUG   -o CMakeFiles/cmTC_ba66c.dir/TestEndianess.c.o   -c /home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp/TestEndianess.c
Linking C executable cmTC_ba66c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ba66c.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 -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden  -O3 -DNDEBUG    CMakeFiles/cmTC_ba66c.dir/TestEndianess.c.o  -o cmTC_ba66c -rdynamic 
make[1]: Leaving directory '/home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp'

TestEndianess.c:
/* A 16 bit integer is required. */
typedef unsigned short cmakeint16;

/* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN."
   On a big endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_little[] =  {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000};

/* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN."
   On a little endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_big[] =     {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_little[argc];
  require += info_big[argc];
  (void)argv;
  return require;
}


Determining if the include file linux/videodev.h exists failed with the following output:
Change Dir: /home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_abb3e/fast"
/usr/bin/make -f CMakeFiles/cmTC_abb3e.dir/build.make CMakeFiles/cmTC_abb3e.dir/build
make[1]: Entering directory '/home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_abb3e.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 -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden  -O3 -DNDEBUG   -o CMakeFiles/cmTC_abb3e.dir/CheckIncludeFile.c.o   -c /home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:28: fatal error: linux/videodev.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_abb3e.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_abb3e.dir/CheckIncludeFile.c.o' failed
make[1]: *** [CMakeFiles/cmTC_abb3e.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_abb3e/fast' failed
make: *** [cmTC_abb3e/fast] Error 2


Determining if the include file sys/videoio.h exists failed with the following output:
Change Dir: /home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_4639f/fast"
/usr/bin/make -f CMakeFiles/cmTC_4639f.dir/build.make CMakeFiles/cmTC_4639f.dir/build
make[1]: Entering directory '/home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_4639f.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 -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden  -O3 -DNDEBUG   -o CMakeFiles/cmTC_4639f.dir/CheckIncludeFile.c.o   -c /home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: fatal error: sys/videoio.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_4639f.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_4639f.dir/CheckIncludeFile.c.o' failed
make[1]: *** [CMakeFiles/cmTC_4639f.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_4639f/fast' failed
make: *** [cmTC_4639f/fast] Error 2


Determining if the include file ffmpeg/avformat.h exists failed with the following output:
Change Dir: /home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_17b16/fast"
/usr/bin/make -f CMakeFiles/cmTC_17b16.dir/build.make CMakeFiles/cmTC_17b16.dir/build
make[1]: Entering directory '/home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_17b16.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 -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden  -O3 -DNDEBUG   -o CMakeFiles/cmTC_17b16.dir/CheckIncludeFile.c.o   -c /home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:29: fatal error: ffmpeg/avformat.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_17b16.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_17b16.dir/CheckIncludeFile.c.o' failed
make[1]: *** [CMakeFiles/cmTC_17b16.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/home/makine/Desktop/opencv-master/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_17b16/fast' failed
make: *** [cmTC_17b16/fast] Error 2

@EsterfanoLopes
Copy link

I have what i think be the same problem, but with another cmake compilation. I don't have the solution, but something make me think there is something about the ffmpeg. I'm trying to solve this problem, please make me know if you get any solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants