美文网首页
神般存在人不知系列-开发工具

神般存在人不知系列-开发工具

作者: scott_yu779 | 来源:发表于2018-01-30 10:58 被阅读0次

源码阅读

引用
有哪些不错的大型项目代码浏览工具?
insight.io可以全github搜索代码的神器-要科学上网
octotree可以在github浏览文件一样浏览代码-要科学上网
chromium源码搜索-web
google codesearch
opengrok-基于web的浏览代码

doxygen生成代码文档

有函数调用关系图和类的图 非常不错

产生代码调用关系图

【下载资源站点】
https://web.archive.org/web/20150502053825/http://www.csn.ul.ie/~mel/projects/codeviz/#download
【源码】
https://github.com/petersenna/codeviz
【安装】
去github的README上阅读方法
https://www.bbsmax.com/A/GBJrLeWqd0/
http://blog.csdn.net/zhutaohf/article/details/8868458
https://www.bbsmax.com/A/mo5ke7NEzw/

1、update

sudo apt-get --fix-missing update
sudo apt-get --fix-missing upgrade

2、get lib

sudo apt-get install libgv-*
sudo apt-get install graphviz graphviz-dev graphviz-doc

3、下载并解压codeviz
codeviz-1.0.12.tar.gz

tar -zxvf codeviz-1.0.12.tar.gz 

4、下载gcc并拷贝到指定目录
gcc-4.6.2.tar.gz
把gcc-4.6.2.tar.gz拷贝到codeviz-1.0.12/compiler目录下

cd codeviz-1.0.12
cp ../gcc-3.4.6.tar.gz compilers/

5、在 cd codeviz-1.0.12 && 下运行

./configure && make

6、错误问题解决
gcc编译报错问题解决参照linux平台常见开发问题解决1-gcc编译报错
6.1、在编译GCC的时候,报错

checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 1

Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+
这个错误参照这个帖子进行解决
http://blog.csdn.net/wfdtxz/article/details/7345541

当三个库都安装完毕后,一般的GCC错误解决方式无法解决我们这个codeviz的依赖问题,我们需要修改compilers中的install_gcc-4.6.2.sh中的内容,将下面的内容插入到.sh原文当中的Configure and compile下面的部分

--with-gmp=/usr/local/gmp-4.3.2 --with-mpfr=/usr/local/mpfr-2.4.2 --with-mpc=/usr/local/mpc-0.8.1

修改前

# Configure and compile
../gcc-4.6.2/configure --prefix=$INSTALL_PATH  --enable-shared --enable-languages=c,c++ || exit
make bootstrap

修改后

# Configure and compile
../gcc-4.6.2/configure --prefix=$INSTALL_PATH --with-gmp=/usr/local/gmp-4.3.2 --with-mpfr=/usr/local/mpfr-2.4.2 --with-mpc=/usr/local/mpc-0.8.1 --enable-shared --enable-languages=c,c++ || exit
make bootstrap

make之前

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpc-0.8.1/lib:/usr/local/gmp-4.3.2/lib:/usr/local/mpfr-2.4.2/lib
sudo apt-get install  build-essential libc6-dev libc6-dev-i386

gcc依赖这些库安装:gmp/mpc/mpfr/cloog/ppl

6.2、编译gmp-4.3.2
./configure的时候,没有生成Makefile
checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons).
配置的时候 屏幕打印的错误信息
解决方法:sudo apt-get install m4
然后继续再次运行一下
【使用】
http://mstry.github.io/2016/05/15/codeviz-install-and-use/
http://www.linuxidc.com/Linux/2015-01/111501.htm

  • understand

  • navigator
    太烂


    这垃圾界面太烂了

代码搜索引擎

代码展示效果

网页中展示代码效果

将你的代码变成这样的效果,网址和方法如下


image.png

planetB
http://blog.csdn.net/u011303443/article/details/50992651

c++源码逆向工程生成uml类图

Rational Rose 2003 逆向工程转换C++源代码成UML类图

c++代码生成和逆向工程的工具讨论

http://bbs.csdn.net/topics/390809863

相关文章

  • 神般存在人不知系列-开发工具

    源码阅读 引用有哪些不错的大型项目代码浏览工具?insight.io可以全github搜索代码的神器-要科学上网o...

  • 神般存在人不知系列-引擎

    神一般存在却不广为认知的.* 学术资源类 arxiv 工具类 查询专业领域词汇的翻译方式词都 一般类 http:/...

  • 神般存在人不知系列-网站&博客

    神一般存在却不广为认知的.* 论坛 蓝鲸技术论坛-bwbot 博客 mind_hack 程序园 这个是个好博客哈哈...

  • 神般存在人不知系列-资源站点

    神一般存在却不广为认知的.* 学习资源 实验楼 下载资源 msdn.itellyou 查询 cpu性能查询 lin...

  • “请回答,1988”:陪伴是最长情的告白

    致:我们终将逝去的“请回答,1988” 不得不说,”请回答”系列真是神一般的存在,而“请回答,1988”更...

  • 神一般存在的人

    今天我们将迎来了每学期培训大会。支教老师们陆陆续续来到四川省索玛慈善基金会自己建立的学校__索爱小学 支教老师们有...

  • 神一般的存在

    读完这本书,终于明白为何书名副标题为“神一样的男人”。即使厚厚的529页,也不足以表达这个天才的一生。 ...

  • 神一般的存在

    我想你见到我, 像见到美丽的事物般发出感叹: 这个人真有气质真美丽真有学识有涵养! 我希望,我在你的眼中, 是完美...

  • 神一般的存在

    饭后一起散步,L总说,那天真没认出你就是糖果。变化太大了! 一孕不仅傻三年,于我而言是毁所有。原本就不瘦肉肉更是多...

  • 神一般存在的……

    以前泡在网上看网络小说。 也不是都能追完,因为大多的网络小说开头还不错,写着写着就水了,一年,两年,甚至三五年如一...

网友评论

      本文标题:神般存在人不知系列-开发工具

      本文链接:https://www.haomeiwen.com/subject/lgwqzxtx.html