Generate OpenSceneGraph documents using Doxygen, Graphviz

Source: Internet
Author: User
Tags doxygen

OpenSceneGraph is an open-source C + + three-dimensional engine library, but because it is open source, related documents are scarce. Although the official website provides the source code can directly generate Doxygen documents, but seemingly not very good, anyway I did not generate correctly.

I have studied the use of Doxygen, Graphviz generated openscenegraph documents, and finally successfully generated related documents, the process of tidying up, I hope to be helpful to everyone.

Raw materials:

Doxygen-1.8.11-setup, graphviz-2.38,

These two software are open source, respectively:

Http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.12-setup.exe

Http://graphviz.org/pub/graphviz/stable/windows/graphviz-2.38.msi

Two software installation is relatively simple, do not repeat.

Steps:

1. Find the OpenSceneGraph source path under the \doc\doxyfiles, this directory contains a variety of generated documents related configuration, I use "all_doxyfile", this file is a lot of variables we need to manually modify.

Mainly include: ${openscenegraph_version}, ${openscenegraph_source_dir}, ${doxygen_dot_path}

The first is the OSG version number (such as 3.5.1, according to the actual situation can be filled)

A second OSG source path

The third is the installation path of Graphviz, the path can not contain Chinese, space and other special characters, or in the generation process, will error, the specific error message is as follows:

Error:problems opening map file Xxxx.map for inclusion in the docs!

There is a need to modify the place is "Dot_graph_max_nodes", the default is 50, in the document generation will prompt you some diagram generation error, I modified to 500, perfect generation, no error.

2. Open Doxygen software, file-open-\doc\doxyfiles\all_doxyfile;

3. Click Run directly to generate the document.

Generate OpenSceneGraph documents using Doxygen, Graphviz

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.