Author Topic: OpenCV and windows Vista  (Read 10999 times)

twhbender

  • Guest
OpenCV and windows Vista
« on: January 15, 2009, 08:39:28 am »
I am runing vista 32 and I am trying to learn opencv. Code::blocks and C++ was recommended to me. I know i have code::blocks installed correctly because i can build and run hello world. It cannot find the opencv headers. If I "#include cv.h" I get : no such file or directory. I followed some directions on how to link them up but they were designed for XP. Any help would be greatly appreciated.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: OpenCV and windows Vista
« Reply #1 on: January 15, 2009, 03:17:12 pm »
I am runing vista 32 and I am trying to learn opencv. Code::blocks and C++ was recommended to me. I know i have code::blocks installed correctly because i can build and run hello world. It cannot find the opencv headers. If I "#include cv.h" I get : no such file or directory. I followed some directions on how to link them up but they were designed for XP. Any help would be greatly appreciated.
Just like setting in devcpp, because both of them can use mingw compiler.
see here:
http://opencv.willowgarage.com/wiki/DevCpp

You need to set  include file directory
and  lib file directory.

See the wiki page here if you understand Chinese, even follow the screen shots.
http://www.opencv.org.cn/index.php/Codeblocks_MinGW_openCV
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

CodyJack

  • Guest
Re: OpenCV and windows Vista
« Reply #2 on: October 07, 2009, 07:53:21 pm »
hello,

i used xp, codeblocks find and compiles all but every file died with an windows erros message, even if i only compile hello word.

I use the pre1.1 of opencv

/edit: k seems to be a problem with the pre version 1.0 runs fine :-)
« Last Edit: October 07, 2009, 08:00:01 pm by CodyJack »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: OpenCV and windows Vista
« Reply #3 on: October 08, 2009, 02:24:58 am »
hello,

i used xp, codeblocks find and compiles all but every file died with an windows erros message, even if i only compile hello word.

I use the pre1.1 of opencv

/edit: k seems to be a problem with the pre version 1.0 runs fine :-)

The Official OpenCV is 2.0a now and windows installer contains the libraries built under TDM-MinGW.
So, it's quite easy to use .

 :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.