User forums > Using Code::Blocks

opencv 2.3 and codeBlocks on windows 7 64

<< < (2/5) > >>

paflechien:
hi guys, thanks for the replies :)

actually, the opencv 2.3 mega pack comes with pre compiled libs for mingw, vc9 and vc10.
however, the mingw doesn't seem to be good, as i've been finally able to successfully compile a project after building opencv 2.3 with mingw (steps are described here for the 2.2, and works for 2.3).
then, as obfuscated said, just add in the linker search path the path to the .dll (the path to the .dll.a is not required)
enjoy :)

thanks all !

MortenMacFly:

--- Quote from: oBFusCATed on July 22, 2011, 12:20:00 am ---As stated many times, MinGW doesn't support .lib files

--- End quote ---
Sorry to say this, but this is not true. In fact, MinGW handles .lib files just fine in 99% of the cases. Take e.g. the Direct/X SDK (the one directly downloaded from MS) - this works just fine.

oBFusCATed:
Morten, are you sure you're using the libs not the dll's?
Last time I've played with MinGW, I've to search very hard how to convert the opengl libs to .a files...

MortenMacFly:

--- Quote from: oBFusCATed on July 22, 2011, 11:43:14 pm ---Morten, are you sure you're using the libs not the dll's?

--- End quote ---
Certainly - as the DLL's are in a different folder, not known by the linker. Using process monitor (sysinternals) reveals the link goes against the *.lib files.

harold44:
Hello

I am trying too to make like you but  i have a message :
"Opencv - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
"Opencv - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done.
What is that somebody has a simple solution so that work.
Thank for advance

Harold

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version