Author Topic: opencv 2.3 and codeBlocks on windows 7 64  (Read 42782 times)

12oclocker

  • Guest
Re: opencv 2.3 and codeBlocks on windows 7 64
« Reply #15 on: October 19, 2011, 05:33:15 pm »
I followed those instructions, and every other example on the net exactly, afterwards you can compile OpenCV applications, but the applications do not work, they give errors like "libstdc++-6.dll is missing"

...also, the instructions are not complete.....
......pkg-config is a free command-line tool (available on Windows, Mac and Linux) that should have been automatically setup correctly when you built OpenCV with CMake.....

How to build OpenCV with CMake? There are no instructions on how to do this, the instructions on OpenCV's site are Not for the newest version of 2.3.1, and they don't work anyway. I'm on day 2 of google searching, and I only find other frustrated people in the same position as I.

I have also completely read the install guide here.... http://opencv.willowgarage.com/wiki/InstallGuide
ANd it says.....
   cd C:\OpenCV2.3 # the directory containing INSTALL, CMakeLists.txt etc.
   mkdir release
   cd release
   cmake -D:CMAKE_BUILD_TYPE=RELEASE C:\OpenCV2.3
//Which does not work
ERROR: Your C compiler "cl" was not found
the C compiler identification is unknown
the CXX compiler identification is unknown
the error list goes ON and ON
« Last Edit: October 19, 2011, 05:44:29 pm by 12oclocker »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: opencv 2.3 and codeBlocks on windows 7 64
« Reply #16 on: October 19, 2011, 05:51:30 pm »
ERROR: Your C compiler "cl" was not found
This refers to the Visual Studio compiler. If you don't have that, it won#'t work. So either you change your setup to use the MinGW compilers suite or you have to adjust your PATH'S, so that the VC compiler can be found. Also, C::B doesn't use CMAKE.

However, as this forum is dedicated to the development of Code::Blocks you'll hardly find good answers here, as most people simpley doen't even know what OpenCV is. Why don't you try a forum directly related to OpenCV / CMAKE?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

12oclocker

  • Guest
Re: opencv 2.3 and codeBlocks on windows 7 64
« Reply #17 on: October 19, 2011, 06:37:38 pm »
Thanks Morten, I've also tried using the CMake GUI, with no success, I'll give those other forums a try, thanks.
It seems everyone is just using the VC compiler for OpenCV, but I stopped using it after VS2002 was released, VS 2003~VS2010 all have bugs which compile into the exe's. For example in VS2010, there is a bug which causes some resource data to get compiled in with random garbage data at the end of it. You wouldn't know unless examining the compiled EXE, but it's there. nonsense like that is what drove me to MinGW and codeblocks IDE, at least minGW compiles an EXE without garbage inside.

Another solution would be DirectX with MinGW, but I can't find anything that works....
I found this... http://sourceforge.net/projects/mingwdx/
But no instructions on how to get the library to work.
Any ideas on that?
« Last Edit: October 19, 2011, 06:45:21 pm by 12oclocker »

Offline reckless

  • Regular
  • ***
  • Posts: 338
Re: opencv 2.3 and codeBlocks on windows 7 64
« Reply #18 on: October 19, 2011, 07:18:10 pm »
Though not a service i normally render i compiled it for you.
Get it here http://sourceforge.net/projects/cbadvanced/files/SoftWare%20Development%20Kits/dxmingw.zip/download
Just unzip it in the mingw folder.
Might also be usefull for other mingw users not using the mingw64 compiler (which allready has full directx support).

12oclocker

  • Guest
Re: opencv 2.3 and codeBlocks on windows 7 64
« Reply #19 on: November 02, 2011, 04:35:06 am »
their is a version of MinGw with full directX support? what about directShow support?
I just spent like 5 days creating a directShow video class, and had to manually figure out all the structs and import all the COM functions, it was terrible.

umar.zawar

  • Guest
Re: opencv 2.3 and codeBlocks on windows 7 64
« Reply #20 on: March 08, 2012, 10:02:54 pm »
Hello everyone,

I am facing the same problem can anyone post the complete procedure of installing opencv 2.3.1 with codeblocks and window-7 (64-bit).

Thanks