Tuesday, October 15, 2013

Doxygen on Ubuntu 12.04

Doxygen [almost full functionality] install on Ubuntu/Kubuntu 12.04

(let's suppose build-essential, texlive packages are installed)

install dependencies (for some reason it didn't work on a single line):

  sudo apt-get install flex
  sudo apt-get install bison 

get libiconv at
http://www.gnu.org/software/libiconv

install it
  sudo ./configure --prefix=/usr/local
  sudo make
  sudo make install

The manually compiled libiconv must be visible at execution time,
so modify your console profile (ex: ~/.bashrc) to to see the lib:

  export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH

install Qt4 (5 not yet supported by Doxygen as of now)

  sudo apt-get install qt4-dev-tools qt4-designer
 
Download doxygen sources to a temp directory. Configure the Doxygen installation from the temp directory


 sudo ./configure --with-doxywizard
 
Attempt to compile the sources:
 
sudo make

This will probably fail, but in the process, the file Makefile.doxygen will be created. Modify this makefile:


  sudo favorite_editor ~/temp/doxygen-1.8.5/src/Makefile.doxygen

at line

  LIBS    =    -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5 -lpthread -liconv


that -liconv is there, if not, add it.

Finish with installation:

  sudo make
  sudo make install
 
Generate doc if desired

  make pdf


No comments:

Post a Comment