在windows10下面,用vs2015编译YouCompleteMe

时间:2015-10-17 17:40:55   收藏:0   阅读:1082

在windows10下面,用vs2015编译YouCompleteMe

需要安装:

  1. VS2015
  2. Python2.7.x(x86)
  3. CMake
  4. Vundle
  5. Vim7.4
  6. LLVM

操作步骤:

  1. 在vimrc中配置Vundle,并加入

    1 Bundle Valloric/YouCompleteMe

     

  2. 在YouCompleteMe目录下,新建ycmd_build目录,切换到该目录。执行:

    1 cmake -G "Visual Studio 14" -DPATHTOLLVMROOT="C:\My\Path\To\LLVM" . ..\thirdparty\ycmd\cpp

     

  3. 打开VS2015命令行工具。执行:

    1 msbuild /t:ycmcore;ycmclient_support /property:configuration=Release YouCompleteMe.sln

     

  4. 启动gvim时,如果提示c++ runtime error。可以尝试官网的方法:在path环境变量中找出所有带有msvcr90.dll和msvcp90.dll的目录。然后,更新dll到最新。或者改名。我按照这个说明没成功,现在每次启动都要看到一个烦人的提示。

如果你们有人知道怎么搞定这个问题。希望能帮我解决它。谢谢!

原文:http://www.cnblogs.com/rgarnet/p/4887818.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!