Ask Your Question
0

cannot build documentation

asked 2014-06-13 20:58:05 -0600

João M. S. Silva gravatar image

Hi,

I followed the steps in How to contribute but I'm not being able to build the documentation.

I tried:

sphinx-build opencv/doc/ tmp

but:

writing output... [ 0%] index
Exception occurred:
File "/usr/local/lib/python2.7/dist-packages/Sphinx-1.2.2-py2.7.egg/sphinx/environment.py", line 1093, in get_doctree
f = open(doctree_filename, 'rb')
IOError: [Errno 2] No such file or directory: u'/home/jmss/tmp/.doctrees/index.doctree'

I also tried cmake, make, make install but in the installation directory there are no HTML or PDF files.

How can I generate the HTML or PDF for testing the changes I made to modules/imgproc/doc/structural_analysis_and_shape_descriptors.rst?

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2014-06-16 10:21:08 -0600

If you compile OpenCV by yourself, simply type:

make docs

in the build directory. If you have activated the documentation compilation in CMake (BUILD_DOCS flag), it will produce the doc in HTML and PDF (if all dependencies are satisfied).

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-06-13 20:58:05 -0600

Seen: 422 times

Last updated: Jun 16 '14