在windows10下面,用vs2015编译YouCompleteMe

在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到最新。或者改名。我按照这个说明没成功,现在每次启动都要看到一个烦人的提示。

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

posted @ 2015-10-17 17:15  RayNet  阅读(1092)  评论(1编辑  收藏  举报