Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Very straight-forward question. I have downloaded mingw32 and the Vim source code and I have edited Make_mind.mak to use the correct Python version and location. I'm located in the src directory and I issue the command:

mingw32-make.exe -f Make_ming.mak gvim.exe

The compilation is successful, but when I run :version it says that the executable is 32 bit, and surely enough, it refuses to load my 64 bit python27.dll library.

What do I have to do to compile gvim.exe as a 64 bit executable instead?

share|improve this question
2  
Do you really need to build it from source? There is a 64 bit binary at code.google.com/p/vim-win3264 – heavyd Jan 11 '13 at 20:00
1  
@heavyd: I have tried every conceivable precompiled binary in the physical universe. Trust me, none of them work 100%. Either they are 32 bit, or they are an outdated vim version, or they target the wrong Python version or none at all, or, in the ONE instance where I found a 64bit version of vim 7.3 compiled targeting Python 27, I get this fatal error every time I try using Python from gVim. – Hubro Jan 11 '13 at 20:10
3  
I'm assuming then that you did try that link which is gVim 7.3 with Python 2.7 support. To compile a 64-bit executable you'll need to start with a toolset that supports 64-bit compilation: mingw-w64.sourceforge.net – heavyd Jan 11 '13 at 20:23
    
As @heavyd says, you need to install the 64 bit version of Mingw. However, if your operating system is only 32 bit it might not be that straightforward. – ChrisF Jan 12 '13 at 11:48

You can check out my releases of Vim for Windows to save yourself some time. It's built using MinGW-w64 toolchain (don't worry, you don't need its runtime libraries for my build to work). Have support for both x86 (32-bit) and x64 (64-bit) architectures, "huge" feature set, and scripting interfaces for most popular programming languages:

  • Python;
  • Ruby;
  • Lua;
  • Perl.
share|improve this answer
    
Working link: bitbucket.org/Alexander-Shukaev/vim-for-windows – Shrikant Sharat Aug 28 '15 at 16:00
    
@Shrikant, fixed. – Alexander Shukaev Aug 28 '15 at 22:33
up vote 4 down vote accepted

I managed to compile a 64-bit version of gVim.exe using the full version of Visual Studio 2010 and the commands from this superuser answer:

nmake -f Make_mvc.mak GUI=yes CPU=AMD64 PYTHON=C:\Python27 DYNAMIC_PYTHON=yes PYTHON_VER=27

It's probably possible with the 64-bit mingw toolset linked by heavyd too, but I couldn't find anything that worked on Windows and I wasn't about to start messing with Cygwin.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .