Bluelich / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Can't build vim with VS2013 #327

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm building 64bit vim 7.4.

When I used VS2010 and use file "10_rc_win64.bat" from project vim-win3264: 
https://code.google.com/p/vim-win3264/downloads/lists

set CPU=AMD64
set MSVCver=10.0
set PYTHON_VER=27
set PYTHON=D:\python\python%PYTHON_VER%
set DYNAMIC_PYTHON=yes
set FEATURES=HUGE
@set _pf=%ProgramFiles%
@if not "[%ProgramFiles(x86)%]"=="[]" set _pf=%ProgramFiles(x86)%
call "%_pf%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86_amd64
@set _pf=
@title VS 2010 x64

And I follow the instruction in INSTALLpc. Use following commandline:

%VCDIR%bin\nmake -f Make_mvc.mak CPU=AMD64 GUI=yes OLE=yes 
PYTHON=%TOOLDIR%python\python27 DYNAMIC_PYTHON=yes PYTHON_VER=27 
PYTHON3=%TOOLDIR%python\python34 DYNAMIC_PYTHON3=yes PYTHON3_VER=34 
POSTSCRIPT=yes %1 IME=yes CSCOPE=yes 

It all works.

But when I migrate to VS2013, of course I modified the env, as follows:

set CPU=AMD64
set MSVCver=12.0
set PYTHON_VER=27
set PYTHON=D:\python\python%PYTHON_VER%
set DYNAMIC_PYTHON=yes
set FEATURES=HUGE
@set _pf=%ProgramFiles%
@if not "[%ProgramFiles(x86)%]"=="[]" set _pf=%ProgramFiles(x86)%
call "%_pf%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
@set _pf=
@title VS 2013 community edition x64

It won't work.

I add a environment variable 
SDK_INCLUDE_DIR="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include"

It also won't work.

Original issue reported on code.google.com by universe...@gmail.com on 10 Feb 2015 at 6:30

GoogleCodeExporter commented 9 years ago
In what way doesn't it work? Do you get an error? What specific error?

Original comment by benjamin...@rockwellcollins.com on 10 Feb 2015 at 5:47

GoogleCodeExporter commented 9 years ago
Please provide an error message, because I can build Vim successfully using 
VisualStudio Community 2013

Original comment by chrisbr...@googlemail.com on 11 Feb 2015 at 6:28

GoogleCodeExporter commented 9 years ago
Sorry, I am a sutdent in school and had to submit the issue when our dormitory 
cut off the power and Internet, so there was lack of information.

After I add the SDK_INCLUDE_DIR environment variable, I got a "cannot open 
include file 'windows.h' no such file or directory" error.

Original comment by universe...@gmail.com on 12 Feb 2015 at 8:49

GoogleCodeExporter commented 9 years ago
If I use your script, I can't build vim. The problem seems to be, that the 
SDK_INCLUDE_DIR variable is quoted. If you remove the quotes from the path, and 
add that as environment variable I can build vim successfully using nmake -f 
Make_mvc.mak in the vim\src directory.

Also see the wiki for more information on how to build Vim with Visual Studio:
http://vim.wikia.com/wiki/Build_Vim_in_Windows_with_Visual_Studio

So closing for now.

Original comment by chrisbr...@googlemail.com on 24 Mar 2015 at 6:47