看板 Editor 關於我們 聯絡資訊
最近花了一點時間整理一下所用的 Vim plugins,去舊換新 最令人挫折的其中之一就是在 Windows 下的 YouCompleteMe 不過還是讓我亂試,試出 Win7/Win8 64bit YouCompleteMe with Clang support 的方法 主要就是依照網頁[1]中的兩個部分,混合操作 A) Instructions for 64-bit using Visual Studio 2012 Express B) Instructions for compiling YCM with Clang support 我首先從網上亂找一個別人編的 gVim 64bit 版本 (要有 +python/dyn ) 再安裝 Python 2.7 x86-64 , CMake , Vundle , YCM ,就如A部分所說 還有安裝 Visual Studio 2012 with Update 2 再從網頁[2]中,下載 LLVM-3.3-final-win64.rar,解開到 D:\ (我懶得自己編Clang #_# ) 接下來再依照B部分做,需要改的部分是 cmake 的參數,像我是改成 cmake -G "Visual Studio 11 Win64" -DPATH_TO_LLVM_ROOT="D:\LLVM-3.3.1-win64" D:\local\gVimPortable\Data\settings\vimfiles\bundle\YouCompleteMe\cpp 然後就A,B兩部分交互參考,就編完了,copy ycm_core.pyd libclang.dll 這兩個檔案就能用了。 心得: 1. 我自己是只用在寫C,沒遇到什麼問題,補完很迅速,搭配 Syntastic [3]使用還挺方便的。 2. 不曉得為什麼,直接複製 ycm_core.pyd libclang.dll 到別台電腦,好像不能用。 一定要再裝一下VS2012。 崩╰(〒皿〒)╯潰 如果有人知道解法,再麻煩指導一下。 [1] https://github.com/Valloric/YouCompleteMe/wiki/Windows-Installation-Guide [2] http://sourceforge.net/projects/clangonwin/ [3] https://github.com/scrooloose/syntastic -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.195.56.179 ※ 編輯: danqing 來自: 123.195.56.179 (06/28 00:34)
Bellkna:2的話 redistributable 別台有裝? 06/28 08:36
Bellkna:該不會得裝2012才不會ERROR嗎 囧 看了一下STEP差不多 可是 06/28 08:39
Bellkna:我會ERROR 用的是2010 python2+3 pathogen 其它好像差不多 06/28 08:41
danqing:嗯,感覺挺有可能的。不過我本身對VS不熟 XD 06/28 08:49
danqing:2的確是裝2012 Redistributable就解決了,感謝Bellkna 06/29 00:26