Howto Install and Configure Doxygen for QtCreator on Ubuntu

HowtoInstall and Configure Doxygen for QtCreator on Ubuntu

  1. Downloaddoxygen-1.8.3.1.src.tar.gz from http://www.doxygen.org/and extract the file;

  2. Configure, build and installdoxygen follow the commands:

    1. $sudo apt-get install flex

    2. $sudo apt-get install bison

    3. $sh ./configure–with-doxywizard

    4. $make

    5. $make install

The command make will generate doxygenand doxywizard, the command install will install doxygen anddoxywizard to /usr/local/bin. You can also run $make pdf togenerate a pdf documentation of doxygen.

  1. Download doxygen fromhttp://dev.kofee.org/projects/qtcreator-doxygen/wiki,here we choose Binary for Linux x86_64: forqtcreator 2.4.0, then Extract the file;

  2. Copy the plugin to qt directory:

    $sudo cp Doxygen.pluginspeclibDoxygen.so /usr/lib/x86_64-linux-gnu/qtcreator/plugins/

  3. Start up qtcreator, there will bea dialog show that the version of qtcreator(2.4.1) anddoxygen(2.4.0) is not compatible, just change all the version infoin the pluginspec 2.4.0 to 2.4.1:$sudo gedit Doxygen.pluginspec.

  4. Set the doxygen command inqtcreator, Tools->Options->Doxygen Plugin, set the doxygencommand and doxywizard command to the generated command.


Howto use doxygen in QtCreator:

GenerateDoxygen tags: CTRL+SHIFT+F3 and the context menu -> "CreateDoxygen Documentation"

  • GenerateDoxygen tags for a whole file: CTRL+SHIFT+F5 and the context menu ->"Document whole file"

  • Buildingproject documentation: CTRL+SHIFT+F4 and the "Tools/Doxygen"menu -> "Build Doxygen Documentation".
    If you didn'tcreate and configure a Doxyfile at your project root, the defaultone will be generated and used.

  • EditDoxyfile with doxywizard: CTRL+SHIFT+F6

Don'tforget to configure the "doxygen" and "doxywizard"commands in "Settings/Documentation/Doxygen Plugin" if itis not in your  $PATH .



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值