Thursday, September 26, 2013

Building Vim plugin from Sources

Well, the following link gives some information on how to build gvim from sources and along with important info on how to build from sources in general:

http://aufather.wordpress.com/2010/08/15/building-gvim/

Now I seem to go back to the following link:

https://github.com/Valloric/YouCompleteMe/issues/1

I did not find any link which says how to build a plugin from sources. So what should I do? Let me go to github page of YCM (YouCompleteMe) and see whether I can get the source file.

Well It's  official page has all the information of how to recompile YCM:

https://github.com/Valloric/YouCompleteMe

I was such a fool not to read it through. Here are the specific instructions from above link:

Remember: YCM is a plugin with a compiled component. If you update YCM using Vundle and the ycm_core library API has changed (happens rarely), YCM will notify you to recompile it. You should then rerun the install process.

Install development tools and CMake: sudo apt-get install build-essential cmake

Make sure you have Python headers installed: sudo apt-get install python-dev.

Compiling YCM with semantic support for C-family languages:
cd ~/.vim/bundle/YouCompleteMe
./install.sh --clang-completer
 
 
Compiling YCM without semantic support for C-family languages:
cd ~/.vim/bundle/YouCompleteMe
./install.sh

No comments: