OpenCV : CMake Error at /opencv-2.4.9/cmake/cl2.cpp - opencv

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!

Related

Can't build todo_ddc project

I want to try polymerize so I have found and use that post. But I met issues when try command
pub run polymerize:polymerize build
It works some time and then return bazel's error:
2017.35.08 16:35:06.015 polymerize [INFO]: Running bazel ...
____Loading package:
ERROR: while parsing ':all': error loading package '': Encountered error while reading extension file 'BUILD.test_app.bzl': no such package '#build_files//': No WORKSPACE file found in /private/var/tmp/_bazel_kelegorm/df7a1dbca8a607bc3485e726bb483b2b/external/build_files.
How can I solve that problem? Why it happens? Why I can't find any mention about that error? What have I missed?
Thanks!
There was a problem with newest bazel versions. Just upgrade to latest polymerize (v. 0.8.6+1) and it should work again.
To start from a clean workspace just do a :
git clone git#github.com:polymer-dart/todo_ddc.git
cd todo_ddc
pub get
pub run polymerize:polymerize build

Compilation project with Cmake . I'm getting an error

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

ChicagoBoss failed to run on version OTP18.1

I am currently using newest erlang version otp/18.1 to run ChicagoBoss, but I see this error
ERROR: compile failed while processing /home/datumwiine/ChicagoBoss-0.8.15/deps/riak_pb: rebar_abort
What could be wrong?
Try typing in the command line the following commands:
git clone https://github.com/ChicagoBoss/ChicagoBoss.git
cd ChicagoBoss/
make

Error while building opencv_contrib opencv 3.0

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.

error with creating framework

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

Resources