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

Configuring incomplete, errors occurred! #6027

Closed
datomnurdin opened this issue Jan 28, 2016 · 14 comments
Closed

Configuring incomplete, errors occurred! #6027

datomnurdin opened this issue Jan 28, 2016 · 14 comments
Labels

Comments

@datomnurdin
Copy link

I got this error message when I trying to CMake on Mac platform.

Determining if the include file linux/videodev.h exists failed with the following output:
Change Dir: /Applications/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_dd2e6/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_dd2e6.dir/build.make CMakeFiles/cmTC_dd2e6.dir/build
Building C object CMakeFiles/cmTC_dd2e6.dir/CheckIncludeFile.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc    -fsigned-char -W -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 -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -fno-omit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -fvisibility=hidden -fvisibility-inlines-hidden  -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk   -o CMakeFiles/cmTC_dd2e6.dir/CheckIncludeFile.c.o   -c /Applications/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Applications/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'linux/videodev.h' file not found
#include <linux/videodev.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_dd2e6.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_dd2e6/fast] Error 2


Determining if the include file linux/videodev2.h exists failed with the following output:
Change Dir: /Applications/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_e6cff/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_e6cff.dir/build.make CMakeFiles/cmTC_e6cff.dir/build
Building C object CMakeFiles/cmTC_e6cff.dir/CheckIncludeFile.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc    -fsigned-char -W -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 -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -fno-omit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -fvisibility=hidden -fvisibility-inlines-hidden  -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk   -o CMakeFiles/cmTC_e6cff.dir/CheckIncludeFile.c.o   -c /Applications/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Applications/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'linux/videodev2.h' file not found
#include <linux/videodev2.h>
         ^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_e6cff.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_e6cff/fast] Error 2

Please advice. Thank you.

@alalek
Copy link
Member

alalek commented Jan 28, 2016

More useful details are required

@datomnurdin
Copy link
Author

What kind of details u need? Below are my steps until I produced the error message

cd ~
git clone https://github.com/Itseez/opencv.git
cd opencv
git checkout 3.1.0

/** output **/

cd ~/opencv
mkdir build
cd build

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D PYTHON2_PACKAGES_PATH=~/.virtualenvs/cv/lib/python2.7/site-packages \
    -D PYTHON2_LIBRARY=/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/bin \
    -D PYTHON2_INCLUDE_DIR=/usr/local/Frameworks/Python.framework/Headers \
    -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON \
    -D BUILD_EXAMPLES=ON \
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules

/** output **/
sudo CMake build

/** error message **/

@alalek
Copy link
Member

alalek commented Jan 28, 2016

Determining if the include file linux/videodev2.h exists failed with the following output

It is just configuration check, they should not fail CMake.

@belial0317
Copy link

How to solve the problem?

@aypee19
Copy link

aypee19 commented Mar 9, 2016

I have solved it !
It's explained here : http://www.pyimagesearch.com/2015/07/20/install-opencv-3-0-and-python-3-4-on-ubuntu/
You have to write INSTALL_C_EXAMPLES=OFF instead of INSTALL_C_EXAMPLES=ON in your cmake command.

@nirmineigue
Copy link

i have the same error as you, where did you change the code exactly?

@nirmineigue
Copy link

@AxelPuig response please

@aypee19
Copy link

aypee19 commented Mar 23, 2016

When you write the cmake command, you have to use this one :

cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D INSTALL_C_EXAMPLES=OFF \
    -D INSTALL_PYTHON_EXAMPLES=ON \
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
    -D BUILD_EXAMPLES=ON ..

There is written -D INSTALL_C_EXAMPLES=OFF instead of -D INSTALL_C_EXAMPLES=ON

That's how I solved the issue...

@nirmineigue
Copy link

thank you @AxelPuig it works now

@Hosm
Copy link

Hosm commented Sep 19, 2016

try this : 👍
sudo rm /usr/lib/x86_64-linux-gnu/libEGL.so; sudo ln /usr/lib/x86_64-linux-gnu/libEGL.so.1 /usr/lib/x86_64-linux-gnu/libEGL.so

@navan0
Copy link

navan0 commented Aug 23, 2018

If you are getting an error related to stdlib.h: No such file or directory during either the cmake or make phase of this tutorial you’ll also need to include the following option to CMake: -D ENABLE_PRECOMPILED_HEADERS=OFF . In this case I would suggest deleting your build directory, re-creating it, and then re-running CMake with the above option included. This will resolve the stdlib.h error.

cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D INSTALL_C_EXAMPLES=OFF \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.1.0/modules \ -D PYTHON_EXECUTABLE=~/.virtualenvs/cv/bin/python \ -D BUILD_EXAMPLES=ON -D ENABLE_PRECOMPILED_HEADERS=OFF ..

@Sawyer117
Copy link

for anyone run into this thread because of "Configuring incomplete, errors occurred!"
if you are cross-compiling for arm64 with g++4.8 or low, this error would occur because of ARM_NEON issue, try upgrade the toolchain

@Haoran-Young
Copy link

for anyone run into this thread because of "Configuring incomplete, errors occurred!"
if you are cross-compiling for arm64 with g++4.8 or low, this error would occur because of ARM_NEON issue, try upgrade the toolchain

Wow, I updated my g++ from 4.8 to 5.4. Then the problem was solved, thanks.

@cannguyen275
Copy link

I've just solved it by using sudo -s before run cmake.

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

No branches or pull requests

10 participants