I try to install opencv on macbook pro following this instruction
i have problem when i build OpenCV framework. when i type
$ python opencv/ios/build_framework.py iOS
i got this problem:
CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
Configuring incomplete, errors occurred!
error: can't exec '/Developer/usr/bin/xcodebuild' (No such file or directory)
I check Developer/usr/bin/xcodebuild. I have this folder. But i need to type without "/" in front. What is the problem here?
You need to install cmake
and run again
http://www.cmake.org/cmake/help/install.html
Related
I am facing the following error while installing avro-c package on freebsd platform.
CMake Error at CMakeLists.txt:39 (message):
Cannot determine Avro version number
-- Configuring incomplete, errors occurred!
I have downloaded the latest source code from https://github.com/confluentinc/avro-c-packaging. Have used the following step to install-
mkdir build
cd build
cmake ../
I was expecting the package to get installed.
When I am building OpenCV, and running the make command, I get the following error:-
even though i have zlib installed in the path :-
zlib: /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz
Has anyone encountered this error before?
I'm trying to compile a project with CMake. I'm getting an error:
Found OpenCV Windows Pack but it has not binaries compatible with your
configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.
Call Stack (most recent call first):
CMakeLists.txt:9 (FIND_PACKAGE)
CMake Error at CMakeLists.txt:9 (FIND_PACKAGE):
Found package configuration file:
C:/Users/Ghenja/AppData/Local/opencv/build/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.
I don't understand what is happening. Please help me to solve this problem.
Clean your project and remove CMakeCache.txt. OpenCV_FOUND is probably cached now.
If that doesn't work, then run your cmake command with additional flags just to be sure:
cmake -DOpenCV_FOUND:BOOL=ON -DOpenCV_DIR=/path/to/your/OpenCV
I wanted to use the "extra" modules, that come as opencv_contrib from here for other functions of opencv 3.0. I followed the instructions as per the page, for building and compiling the modules, but am stuck with this error
Command:
cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
Error:
<Skipping the common Cmake statements and going straight to the error>
CMake Error at opencv_contrib/modules/adas/tools/fcw_train/CMakeLists.txt:16 (ocv_include_modules_recurse):
Unknown CMake command "ocv_include_modules_recurse".
-- Configuring incomplete, errors occurred!
I checked the CMakeLists.txt as mentioned in the path and there were other lines of code that had ocv_xxx , thus it was not a rename issue (I thought they misspelt opencv).
This is my folder structure:
Opencv
- build
- opencv_contrib
This is to verify if my CMake command was correct, as I had posted above.
Can you please tell me how to rectify this error?
UPDATE 1
As per a suggestion, I tried,by putting the opencv_contrib folder outside the opencv folder structure. The new structure was like this
-Opencv
- build
-opencv_contrib
and my new command was
cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ..
the error is still the same.
Fixed it, thanks to this question. From that question, I understood that the value of the argument should be correct, to turn on the build or something like that. So I changed my command from
cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
to
cmake -DOPENCV_EXTRA_MODULES_PATH=opencv_contrib/modules .
Plain and simple, without hierarchy information and it worked. Cheers.
CMake Build error:
I configured CMake and run make command to build Opencv. It gets stopped when It reached to 82%.
error is :
CMake Error at /opencv-2.4.9/cmake/cl2.cpp : 50 (string):
string does not recognize sub-command MD5
I myself fix the issue by commenting the line caused the error.
Try to upgrade CMake.
You can also try to comment the line out and try again!