Skip to content

Instantly share code, notes, and snippets.

@hightemp
Forked from slog2/doxygen_on_centos_6.7
Created June 23, 2020 06:09
Show Gist options
  • Save hightemp/273f06444fdd6dfd3af4263b83038fad to your computer and use it in GitHub Desktop.
Save hightemp/273f06444fdd6dfd3af4263b83038fad to your computer and use it in GitHub Desktop.
how to use Doxygen on CentOS 6.7
# Install
yum -y install doxygen
yum -y install graphviz
yum -y install texlive texlive-utils
# Make default config for doxygen
cd {c_source_dir}
doxygen -g my.doxy
# Make 'myconfig' file useing echo command (change PROJECT_NAME)
echo '
PROJECT_NAME = your_project_name
PROJECT_NUMBER = 0.1
OUTPUT_DIRECTORY = ./doxygen_output
CREATE_SUBDIRS = YES
MULTILINE_CPP_IS_BRIEF = YES
EXTRACT_ALL = YES
EXTRACT_PRIVATE = YES
EXTRACT_STATIC = YES
RECURSIVE = YES
SOURCE_BROWSER = YES
GENERATE_TREEVIEW = YES
LATEX_OUTPUT = NO
HAVE_DOT = YES
UML_LOOK = YES
CALL_GRAPH = YES
CALLER_GRAPH = YES
DOT_PATH = /usr/bin/dot
DOT_GRAPH_MAX_NODES = 100' > myconfig
# Apply 'myconfig' content to the config file
cat myconfig |
while read a; do
key=`echo $a | awk '{print $1}'`
sed -i -e "/^$key/ c\
$a" my.doxy
done
# Let's make it
doxygen my.doxy
# Compress the output directory
tar zcf doxygen_output.tgz doxygen_output
# Download 'doxygen_output.tgz' to your PC and delete files (it's pretty big)
rm -rf doxygen_output
rm -rf doxygen_output.tgz
# Run doxygen document after decompress
html/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment