Ask Your Question
1

Build opencv windows for android

asked 2019-04-01 03:26:31 -0600

Scalaire gravatar image

updated 2019-04-01 07:07:52 -0600

Hello ! I come to you since I have building problems to put opencv and opencv-contrib in my android project ( i'am on windows 10). I followed the following tutorial and I have errors at the cmake stage. ( https://zami0xzami.wordpress.com/2016... )

I've been through a lot of forums that have guided me to add options, here is exactly the procedure I do to get the error.

cmake-gui

I press the Configure button, I select MinGW makefiles and when it's finished I press the Generate button. Then, I open a Mingw console ( I tried the latest version and version 5.3.0), I go to the folder where there are the build files and I type the following command:

mingw32-make -j4

And finally I have this error :

C:\Users\Marvyn\Documents\opencv build\opencv-3.4.5\modules\objdetect\src\detection_based_tracker.cpp:175:14: error: 'thread' in namespace 'std' does not name a type std::thread second_workthread; ^~~~~~ C:\Users\Marvyn\Documents\opencv build\opencv-3.4.5\modules\objdetect\src\detection_based_tracker.cpp:176:14: error: 'mutex' in namespace 'std' does not name a type std::mutex mtx; ^~~~~ C:\Users\Marvyn\Documents\opencv build\opencv-3.4.5\modules\objdetect\src\detection_based_tracker.cpp:177:14: error: 'condition_variable' in namespace 'std' does not name a type std::condition_variable objectDetectorRun; ^~~~~~~~~~~~~~~~~~ C:\Users\Marvyn\Documents\opencv build\opencv-3.4.5\modules\objdetect\src\detection_based_tracker.cpp:178:14: error: 'condition_variable' in namespace 'std' does not name a type std::condition_variable objectDetectorThreadStartStop; ^~~~~~~~~~~~~~~~~~ C:\Users\Marvyn\Documents\opencv build\opencv-3.4.5\modules\objdetect\src\detection_based_tracker.cpp: In member function 'void cv::DetectionBasedTracker::SeparateDetectionWork::setParameters(const cv::DetectionBasedTracker::Parameters&)': C:\Users\Marvyn\Documents\opencv build\opencv-3.4.5\modules\objdetect\src\detection_based_tracker.cpp:143:30: error: 'mutex' is not a member of 'std' std::unique_lock<std::mutex> mtx_lock(mtx);

edit retag flag offensive close merge delete

Comments

Are you trying to build opencv with contrib module from source?

Kafan gravatar imageKafan ( 2019-04-03 10:02:32 -0600 )edit

Yes, that's what I was trying to do, but in the end I succeeded.

Scalaire gravatar imageScalaire ( 2019-04-03 10:05:07 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-04-03 06:21:48 -0600

Scalaire gravatar image

If someone needs a solution to the problem:

https://github.com/opencv/opencv/issu...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-04-01 03:26:31 -0600

Seen: 509 times

Last updated: Apr 03 '19