下準備。
vundleでvimprocのインストール
vundleでvimshellのインストール

ココからが難しいとこ

Mingw-toolsのインストール(makeのインストール)

http://jaist.dl.sourceforge.net/project/mingw/Installer/mingw-get-inst/mingw-get-inst-20111118/mingw-get-inst-20111118.exe

インストールディレクトリをMinGW-toolsに指定、コンパイラはインストールせずにMSYS Basic Systemだけインストール。コンパイラは次にダウンロードする64bit版を使うので。

C:\MinGW-tools\msys\1.0\bin pathに追加

Mingw-64bitのインストール

http://jaist.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win64/Automated%20Builds/mingw-w64-bin_i686-mingw_20111220.zip

解凍したファイルを移動して、C:\mingw-w64\ に名前変更

C:\mingw-w64\bin pathに追加

C:\mingw-w64\bin\x86_64-w64-mingw32-gcc.exe を gcc.exeに名前変更

※上記のMingw-tools、及びMingw-64bitは以下を参考に最新をダウンロードするといい。
http://umeji.blogspot.com/2011/10/mingwwindows64bitvimprocdll.html

コマンドプロンプトを起動して、こんな感じで出る

c:\>make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
 
This program built for i686-pc-msys
 
c:\>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw-w64/bin/../libexec/gcc/x86_64-w64-mingw32/4.7.0/lto
-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../build/gcc/src/configure --target=x86_64-w64-mingw32 --
prefix=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/root --with-sysroot=/c
/bb/vista64-mingw32/mingw-x86-x86_64/build/build/root --enable-languages=all,obj
-c++ --enable-fully-dynamic-string --disable-multilib
Thread model: win32
gcc version 4.7.0 20111220 (experimental) (GCC)

vimprocのコンパイル

c:\>cd c:\Users\xxxxxx\.vim\bundle\vimproc
 
c:\Users\xxxxxx\.vim\bundle\vimproc>make -f make_mingw.mak
gcc -O2 -Wall -shared -o autoload/proc.dll autoload/proc_w32.c -lwsock32
autoload/proc_w32.c:31:0: warning: "WINVER" redefined [enabled by default]
In file included from c:\mingw-w64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../..
/../../x86_64-w64-mingw32/include/stdio.h:9:0,
                 from autoload/proc_w32.c:22:
c:\mingw-w64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-ming
w32/include/_mingw.h:240:0: note: this is the location of the previous definitio
n
autoload/proc_w32.c:32:0: warning: "_WIN32_WINNT" redefined [enabled by default]
 
In file included from c:\mingw-w64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../..
/../../x86_64-w64-mingw32/include/stdio.h:9:0,
                 from autoload/proc_w32.c:22:
c:\mingw-w64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-ming
w32/include/_mingw.h:244:0: note: this is the location of the previous definitio
n
autoload/proc_w32.c: In function 'vp_pipe_open':
autoload/proc_w32.c:499:33: warning: cast from pointer to integer of different s
ize [-Wpointer-to-int-cast]
autoload/proc_w32.c:501:33: warning: cast from pointer to integer of different s
ize [-Wpointer-to-int-cast]
autoload/proc_w32.c:504:37: warning: cast from pointer to integer of different s
ize [-Wpointer-to-int-cast]
autoload/proc_w32.c: In function 'ExitRemoteProcess':
autoload/proc_w32.c:648:33: warning: cast to pointer from integer of different s
ize [-Wint-to-pointer-cast]
autoload/proc_w32.c: In function 'vp_open':
autoload/proc_w32.c:949:9: warning: cast from pointer to integer of different si
ze [-Wpointer-to-int-cast]
In file included from autoload/proc_w32.c:44:0:
autoload/proc_w32.c: At top level:
autoload/vimstack.c:42:19: warning: 'vp_stack_null' defined but not used [-Wunus
ed-variable]

動作確認

vimを再起動して、:VimShellを起動、lsを表示してエラーが出なければOK

Pocket

Comments are closed.