Friday, March 6, 2015

Steps to install ctags and cscope

ctags:
> download ctags-5.8.tar.gz  from http://ctags.sourceforge.net/
> from ctags-5.8 directory run
    > ./configure
    > make
    > make install

cscope:
> download from cscope-15.7a.tar.bz2 http://cscope.sourceforge.net/
> extract the files
> from cscope-15.7a run
    > ./configure
    > make
    > make install

Run the following steps to browse the code using cscope:
> go to the top most android directory and run
> ctags -R *
> for ext in  cpp hpp c h cxx hxx java aidl ; do find ./  -iname \*.$ext >> cscope.files ; done


use the following to resolve the multiple tags(definitions) issue:
:set cscopetag
:set cscopetagorder=1

0 comments:

Post a Comment