Ask Your Question
0

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

asked 2014-07-28 11:28:42 -0500

konstunn gravatar image

updated 2014-08-01 07:58:00 -0500

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 flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-08-02 08:03:37 -0500

daytan46 gravatar image

updated 2014-08-02 09:29:11 -0500

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.

edit flag offensive delete link more

Comments

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

Isn't that enough?

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

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

konstunn gravatar imagekonstunn ( 2014-08-02 09:55:08 -0500 )edit
0

answered 2014-08-01 07:56:02 -0500

konstunn gravatar image

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?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-07-28 11:28:42 -0500

Seen: 272 times

Last updated: Aug 02 '14