Configure OpenCV 3.1 with Code::Blocks 16.01+MinGW

asked 2016-02-20 17:34:56 -0600

Hello

I'm a new user of OpenCV 3.1. I tried to configure Code::Blocks 16.01+MinGW to work with OpenCV 3.1 but there is always something wrong.

Can you help me?

Thank you.

edit retag flag offensive close merge delete

Comments

forget your ide for a while,

step1: build opencv libs for mingw(you can't use the prebuild vs libs) using cmake

berak gravatar imageberak ( 2016-02-21 00:08:31 -0600 )edit

tnx for the answer I built opencv using cmake, but I got too many files (1.84 GB) are they all necessary ???

Magtheridon gravatar imageMagtheridon ( 2016-02-21 08:33:37 -0600 )edit

" but I got too many files (1.84 GB) are they all necessary ?"

no. in the end, all you need is your install folder

berak gravatar imageberak ( 2016-02-21 08:40:58 -0600 )edit

tnx what's the next step ?

Magtheridon gravatar imageMagtheridon ( 2016-02-21 08:52:23 -0600 )edit

try to build a project for your ide, like here

berak gravatar imageberak ( 2016-02-21 08:55:16 -0600 )edit

tnx but I'm using Code::Blocks not CMake

Magtheridon gravatar imageMagtheridon ( 2016-02-21 09:46:05 -0600 )edit

cmake -G will give you a list of generators. choose your code::blocks tag there, and generate your project

berak gravatar imageberak ( 2016-02-21 10:18:58 -0600 )edit

thank you for all

Magtheridon gravatar imageMagtheridon ( 2016-02-21 10:29:37 -0600 )edit