clang_complete插件所需的libclang 的编译
来源:互联网 发布:开发java最好用的软件 编辑:程序博客网 时间:2024/05/18 14:44
gcc 4.8.x 的编译
====
llvm 用gcc4.1编不过,需要4.8以上的,如果没有可以参照http://www.linuxfromscratch.org/blfs/view/stable/general/gcc.html来编。
libclang.so 的编译
====
cd ~
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd ~/llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ~/llvm/projects
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
mkdir build && cd build
export CFLAGS='-fPIC'
export LDFLAGS='-fPIC'
export CPPFLAGS='-fPIC'
export CXXFLAGS='-fPIC'
../llvm/configure --prefix=$HOME/tools \
--disable-docs --enable-optimized --disable-assertions --enable-targets=x86,x86_64 \
--with-gcc-toolchain=$HOME/tools \
--with-extra-ld-options=-Wl,-R,$HOME/tools/lib64 \
make -j16
make VERBOSE=1 查看编译参数,适当修改Makefile.config
我编译出现projects/compiler-rt/lib/sanitizer_common下面编不过。
我#if 0暂时规避了。不知道把上层subdirs += sanitizer_common 有什么影响。
windows mingw 编译请参考[1]。
windows 上我编译花了很长时间, linux 服务器16核马力全开,也花了半个小时。
把clang_complete 放到bundle 下面就可以用了,
这时编辑一个cpp文件,出现
WARNING: libclang can not find the builtin includes
--with-c-include-dirs 就是为了避免这种情况。
但是我发现加了编译不过,按[1]的修改源码也不行,
正解是修改 plugin/libclang.py 的 getBuiltinHeaderPath[2]
[1] http://blog.wwang.me/2013/12/ycm-with-clang-on-windows.html
[2] https://github.com/Rip-Rip/clang_complete/issues/238
[3] neocomplete 和YCM的比较: https://github.com/skwp/dotfiles/issues/330
====
llvm 用gcc4.1编不过,需要4.8以上的,如果没有可以参照http://www.linuxfromscratch.org/blfs/view/stable/general/gcc.html来编。
libclang.so 的编译
====
cd ~
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd ~/llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ~/llvm/projects
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
mkdir build && cd build
export CFLAGS='-fPIC'
export LDFLAGS='-fPIC'
export CPPFLAGS='-fPIC'
export CXXFLAGS='-fPIC'
../llvm/configure --prefix=$HOME/tools \
--disable-docs --enable-optimized --disable-assertions --enable-targets=x86,x86_64 \
--with-gcc-toolchain=$HOME/tools \
--with-extra-ld-options=-Wl,-R,$HOME/tools/lib64 \
make -j16
make VERBOSE=1 查看编译参数,适当修改Makefile.config
我编译出现projects/compiler-rt/lib/sanitizer_common下面编不过。
我#if 0暂时规避了。不知道把上层subdirs += sanitizer_common 有什么影响。
windows mingw 编译请参考[1]。
windows 上我编译花了很长时间, linux 服务器16核马力全开,也花了半个小时。
把clang_complete 放到bundle 下面就可以用了,
这时编辑一个cpp文件,出现
WARNING: libclang can not find the builtin includes
--with-c-include-dirs 就是为了避免这种情况。
但是我发现加了编译不过,按[1]的修改源码也不行,
正解是修改 plugin/libclang.py 的 getBuiltinHeaderPath[2]
[1] http://blog.wwang.me/2013/12/ycm-with-clang-on-windows.html
[2] https://github.com/Rip-Rip/clang_complete/issues/238
[3] neocomplete 和YCM的比较: https://github.com/skwp/dotfiles/issues/330
0 0
- clang_complete插件所需的libclang 的编译
- fedora 20下安装vim的C++补全插件clang_complete
- fedora17的vim+ctags+taglist+clang_complete
- clang_complete
- vim clang_complete找不到模式无法匹配的问题总结(吐槽篇)
- 插件所需jar的添加流程
- 编译内核所需的软件包ncurses
- vim自动补全插件clang_complete
- JavaScript判断是否安装所需版本的flash插件
- bundler解决安装gem列表所需的插件问题
- 自动下载编译所需的库文件
- 在PC上显示所需vga库的编译
- 使用NDK编译Android所需的FFMPEG动态库
- Ubuntu下编译android所需ffmpeg的so库
- JFinal所集成的插件们
- 目前我所使用的AndroidStudio插件
- ubuntu 14.04 Clang编译安装,libclang解析c++代码
- ads编译时所发生的错误
- 指针常量与常量指针
- 史上最简单的带流控功能的http server
- Arcpy基础入门-6、遍历
- 读取硬盘的MBR引导扇区(Windows各系统通用)
- Get和Post的区别
- clang_complete插件所需的libclang 的编译
- axjzsubggnabvvdshnfljqydcl
- 教育中的反思精神——从书籍《创造:一流大学之魂》的一则评论谈起
- Sonar的安装
- 在虚拟机上同步服务器上的时间_Hbase
- 士兵杀敌(三)
- 黑马程序员_java基础
- python参考手册 第四章
- datagridview绑定后添加行