You are not logged in.

#1 2012-09-01 21:17:47

n0rv
Member
Registered: 2012-02-27
Posts: 49

Building gVim with Ruby and Python support (for Windows)

I would like to build gVim 7.3 with Ruby (1.8.7) and Python (3.2) support. For 32-bit Windows using 64-bit Linux.
So, I downloaded everything what I need (ruby, python and vim sources), I installed mingw32 packages. Next, I modified vim makefile src/Make_ming.mak (as described here: http://people.smu.edu/jrobinet/howto/co … indows.asp) by adding ruby and python patches and versions.
Finally, I tried to compile this:

cd /tmp/vim/src
make -f Make_ming.mak gvim.exe

and I get quite strange result:

make -f Make_ming.mak gvim.exe
gcc -c -Iproto -DWIN32 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF -DFEAT_BIG -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=i386 -Wall -DFEAT_RUBY -I /tmp/ruby/lib/ruby/1.8/i386-mswin32 -I /tmp/ruby/include/ruby-1.8 -I /tmp/ruby/include/ruby-1.8/i386-mswin32 -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"msvcrt-ruby18.dll\" -DDYNAMIC_RUBY_VER=18 -DFEAT_PYTHON  -DDYNAMIC_PYTHON -O3 -fomit-frame-pointer -freg-struct-return -s blowfish.c -o gobj/blowfish.o
blowfish.c:1:0: error: CPU you selected does not support x86-64 instruction set
blowfish.c:1:0: error: CPU you selected does not support x86-64 instruction set
make: *** [gobj/blowfish.o] Błąd 1

I'm a little confused, I use 64-bit Linux (C2D E6750 processor), but I want to build 32-bit program using 32-bit compiler, so why I need 64-bit instruction set? Any suggestions?
I'm not very familiar with compilation. It is a good way to build custom gVim?

Last edited by n0rv (2012-09-01 21:21:03)

Offline

Board footer

Powered by FluxBB