Thursday, September 13, 2012

Re: Problems compiling 64bit Vim using MSVC++ 2010 Express on Windows7 and statically linking Python3

> Untested:
>
> Run "nmake clean", then edit bigvim64.bat if necessary (possibly under
>
> another name), and run that.

Thanks, this got me on the right track. I eventually realized that MSVC 2012 Express doesn't in fact come with the necessary tools for 64bit compiling so the modules are always compiled for 32bit, grrr.. apparently this has been a known issue on the MS forums.

To fix it i downloaded the latest Windows SDK for my platform (Windows 7) and then installed the new MSVisualStudio Express 2012 for Desktop which comes with the necessary tools and batch files. Then i modified the Vim make files to use the new versions, etc. So this is the batch file that compiled everything fine:

@ECHO OFF

REM For mods in the make files where i'm importing win32.mak:
SET SDK_INCLUDE_DIR=C:\Program Files\Microsoft SDKs\Windows\v7.1\Include

SET VC_DIR="C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC

ECHO "Setting up compiler..."
CALL %VC_DIR%\vcvarsall.bat" x86_amd64

ECHO "Setting up environment variables..."
SET CPUNR=i686
set WINVER=0x500
SET CPU=AMD64
SET GUI=yes
SET PYTHON=
SET PYTHON_VER=
SET DYNAMIC_PYTHON=
SET PYTHON3=C:\Python32
SET PYTHON3_VER=32
SET DYNAMIC_PYTHON3=no
SET IME=no
SET OLE=no
SET CSCOPE=no
SET NETBEANS=no
SET FEATURES=HUGE
SET OPTIMIZE=MAXSPEED

ECHO "Start compiling..."
CALL %VC_DIR%\bin\nmake" -f Make_mvc.mak

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: