Ask Your Question
1

Setup version 2.4.2 in Windows

asked 2012-08-20 09:14:24 -0600

mmarengoni gravatar image

Hi, I tried to install version 2.4.2 using the tutorial available in the documentation but the documentation is really outdated, even the videos described in the tutorial are outdated and if they are followed the installation will certainly fail.

I used the video at https://www.youtube.com/watch?v=kZvjTTK9zTw&feature=related, which helped a lot and was able to install version 2.4.2 on windows 7 64 bits. I was also able to set up visual studio 2010 express and compilo a hello world program.

The point is that for some reason the examples given in the samples folder were not compiled when I compiled using the OpenCV Microsoft Visual Studio Solution.

My question is: is there a simple way to compile the files in samples c/c++ folders in order to use them??

Thank you

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-08-20 10:13:35 -0600

Daniil Osokin gravatar image

updated 2012-10-01 08:53:15 -0600

Hi! I suppose, that you should check BUILD_EXAMPLES (video time: 3.36), or you can create project in MSVS, add source files from interested sample and also include paths an libs in project as described in second part of this video.

However, did you see this instruction: Installation in Windows? I've completed it several times, and everything was perfect. If you have constructive criticism - you are welcome to improve it.

edit flag offensive delete link more

Comments

how to I check out the video "BUILD_EXAMPLES"?

Carpenter gravatar imageCarpenter ( 2012-11-07 23:00:13 -0600 )edit

I've mean check the BUILD_EXAMPLES item when you run CMake.

Daniil Osokin gravatar imageDaniil Osokin ( 2012-11-19 01:11:19 -0600 )edit
-1

answered 2012-09-03 06:01:32 -0600

krs gravatar image

I have been looking for the answer to this too (and others).

I followed the instructions and videos for a full custom build of OpenCV as detailed in the "Installation in Windows" page. It took ages, and for nothing.

Not only the docnloads were huge (that's very understandable), but tweaking was a pain. Change from SVN to GIT (OK, only had to change tortoise).

Download MS Visual Studio 10 Express, only to find out at the end of the whole process that Express does not work. I did not want MSVC. I want to use with Eclipse (use GCC also if necessary). Also the VC build process, in addition to a whole load of errors, threw a tonne of warnings about float/double conversion.

CMake would not find OpenNI - nowhere can I find an answer to the simple question: where are variables like OPENNI_LIB_DIR declared?

A whole load of crap (more than just the above details). So, instead of digging a deeper hole, I decided to install the basic build (as the possibility was described n the "Install in Windows" page). I would work on OpenCV and then with time and good answers go to the full build. I binned half a day's work, including that horrible MS product.

Then I went to the OpenCV doc page and followed the link to the SourceForge download. Once downloaded, what a surprise to discover that, contrary to the idea of downloading and installing as proposed by the doc (read: "Start Setup"), I receive the source again with no setup possible! Same whether it is 2.4.2 or earlier.

Then looking at the video in the OP, I have to re-install MSVC to do this? You have got to be kidding me! No way am I doing that!

Considering the prevalence of Eclipse, why can't the Eclipse installation guide actually say something useful instead of sending us to MSVC?

To be fair, I think that the documentation is now just out of date, but it does not help me at all to be fair.

I promise that I will succeed, but if anyone can give any pointers, it would be much appreciated.

edit flag offensive delete link more

Comments

1

So, now you know how to make the OpenCV much better. Feel free to submit a couple of patches (for outdated documentation at least) through the github.

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-10-01 15:22:48 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2012-08-20 09:14:24 -0600

Seen: 787 times

Last updated: Oct 01 '12