# OpenCV 2.4.9 from source with docs and samples: so where are they?

Hello.

I'm using MinGW under 64-bit Windows 7 to build and install OpenCV 2.4.9. I used latest version of CMake with GUI to configure and generate MinGW makefile. This way, using GUI, I configured to build the samples and documentation.

I built all wanted modules and features and made 'mingw32-make install' successfully, with no errors. I found dlls and include files. But I can not find the samples binaries in release directory. I can't find documentation there, as well. But I think I would be able to generate it from source dir using Doxygen. So that's gonna be okay, I hope. But I have no ideas, so far, how can I build samples manually?

What do you suggest?

edit retag close merge delete

Sort by » oldest newest most voted

When you compiled, did you specify

-DBUILD_EXAMPLES=ON


?

That should be enough to find all samples built. Note that in Mac OS X the folder is opencv-2.4.9/samples/, but in Windows it could be in the "release" folder or "bin" folder - just look for the executable you are looking for by using the Windows explorer. If you want to modify the source and recompile it, there should be a file called "link.txt" per each sample, that contains the command to execute to get the new final executables.

more

I've checked the checkbox opposite to BUILD_EXAMPLES option in CMake GUI before generating Makefile.

Isn't that enough?

( 2014-08-02 09:51:58 -0500 )edit

I've tried to find samples executables through Windows explorer but I had no success.

( 2014-08-02 09:55:08 -0500 )edit

Still don't know why no one sample is built. May be that's because I don't build all the OpenCV modules, but only I want and need. However, I consider, there should be a possibility to build the samples sparsely. Well, I could build samples manually, but it takes a little effort.

Speaking about docs, I read on some forum that, however, building documentation on OpenCV version 2.4 requires Python, Sphinx and Miktex, which I don't have. That's why docs are not built. But why then there is a Doxygen configuration file in doc directory if there is no possibility to build doc with Doxygen, isn't it?

more

Official site

GitHub

Wiki

Documentation