Ask Your Question
0

install opencv 2.4.8 and configure it with code blocks 13.12

asked 2014-04-01 07:25:27 -0600

yadav pradeep gravatar image

I am new to this platform, I dont know how to configure opencv with code blocks even i tried a lot but it always gives an error while compile any image processing program. Please help to configure opencv 2.4.8 with code blocks 13.12. Give me all the steps of configuring it.

Thanks yadav pradeep

edit retag flag offensive close merge delete

Comments

What OS are you using?

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-01 07:28:35 -0600 )edit

I am using windows 8.

yadav pradeep gravatar imageyadav pradeep ( 2014-04-01 12:11:20 -0600 )edit

Hey i need also i have windows 8.1

Regards Mayolo

eagleversus gravatar imageeagleversus ( 2014-04-01 18:17:32 -0600 )edit

And i get the follow error:

||=== Build: Debug in ejemplosdd (compiler: GNU GCC Compiler) ===| obj\Debug\main.o||In function ZN2cv3MatC1ERKS0_':| C:\opencv\build\include\opencv2\core\mat.hpp|125|undefined reference tocv::Mat::copySize(cv::Mat const&)'| obj\Debug\main.o||In function ZN2cv3MatD2Ev':| C:\opencv\build\include\opencv2\core\mat.hpp|278|undefined reference tocv::fastFree(void)'| obj\Debug\main.o||In function ZN2cv3Mat7releaseEv':| C:\opencv\build\include\opencv2\core\mat.hpp|367|undefined reference tocv::Mat::deallocate()'| obj\Debug\main.o||In function ZN2cv3MatD1Ev':| C:\opencv\build\include\opencv2\core\mat.hpp|278|undefined reference tocv::fastFree(void)'| obj\Debug\main.o||In function `ZN2cv3Mat7releaseEv':| C:\opencv\build\include\opencv2\core\mat.h

eagleversus gravatar imageeagleversus ( 2014-04-01 20:30:36 -0600 )edit
eagleversus gravatar imageeagleversus ( 2014-04-01 20:32:26 -0600 )edit

please i will be happy if anyone can help me to configure opencv with code blocks 13.12 for mac OS X lion . thank you

mtukruni gravatar imagemtukruni ( 2014-09-15 15:24:34 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-04-01 23:05:10 -0600

Haris gravatar image

Here is the step I followed to set code::blocks-10.04 global compiler setting for OpenCV, in Windows 7 64 bit.

  1. Open code::blocks go to Setting->Compiler and debugger, a popup window will open.

  2. Now select Search directories tab, and below select Compiler tab, now OpenCV include path, generally C:\opencv_path\build\include

  3. Click on Linker tab next to Compiler tab add OpenCV bin directory, like C:\opencv_path\build\x86\mingw\bin, here I used 32 bit binaries.

  4. Now open Linker settings tab and below Link libraries add OpenCV libraries, C:\opencv_path\build\x86\mingw\bin

Note that the above steps are global compiler setting for code:blocks and if you want to configure for a single project, just right click on the project name, select Build option and follow above steps.

And if you are using pre-built libraries there might be some issue with mingw, for me pre-built libraries works fine with Windows7 64-bit (32-bit binaries) but not on Windows 7 32-bit.

Any way just follow above and see it's working, if no you may have to build your own libraries for mingw from source.

edit flag offensive delete link more

Comments

Starting from 2.4.8, if I am correct, there are no prebuilt mingw libraries anymore. However, the codeblocks environment can just use the microsoft visual compilers!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-02 01:38:24 -0600 )edit

You are right, I am using 2.4.7 version.

Haris gravatar imageHaris ( 2014-04-02 04:53:22 -0600 )edit

I am using v2.4.9, and mingw libraries are not there anymore. Can you please elaborate on "the codeblocks environment can just use the microsoft visual compilers!"

gohilurvish gravatar imagegohilurvish ( 2014-08-27 13:16:30 -0600 )edit

When opening codeblocks and going to compiler settings you can select visual compiler after installing on your system as the desired code compiler. That enab,es you to use thd prebuilt VC libs.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-08-27 15:19:30 -0600 )edit

Question Tools

Stats

Asked: 2014-04-01 07:25:27 -0600

Seen: 13,704 times

Last updated: Apr 01 '14