I
I
ixon2016-10-16 14:47:34
MinGW
ixon, 2016-10-16 14:47:34

How to properly install OpenCV for CodeBlocks with MinGW?

Using the instructions from this blog https://zahidhasan.wordpress.com/2013/02/16/how-to...
However, errors occurred during compilation (Codeblocks Settings 3 point). At first everything went correctly, compilation reached 91%, and then the following errors appeared:

C:\Anaconda2\libs\python27.lib: error adding symbols: File format not recognized
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[2]: *** [lib/cv2.pyd] Error 1
mingw32-make.exe[1]: *** [modules/python/CMakeFiles/opencv_python.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
modules\python\CMakeFiles\opencv_python.dir\build.make:154: recipe for target 'lib/cv2.pyd' failed
mingw32-make.exe[2]: Leaving directory 'C:/OpenCV/my_build'
CMakeFiles\Makefile2:5943: recipe for target 'modules/python/CMakeFiles/opencv_python.dir/all' failed
mingw32-make.exe[1]: Leaving directory 'C:/OpenCV/my_build'
C:/OpenCV/my_build/Makefile:135: recipe for target 'all' failed

Что не так? Откуда ошибки? Как от них избавиться и корректно установить openCV? Ошибки касаются питона, причём тут Питон, если я компилирую для C++?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey B., 2016-11-22
@andykov

<button class="button active">1</button>
<button class="button">2</button>
<button class="button">3</button>

$('.button').on('click', function(){
  $('.button').removeClass('active');
  $(this).addClass('active');
});

D
display: block, 2016-11-22
@qork

Stylized radio button.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question