On Mon, Aug 27, 2012 at 9:28 AM, skeept <[email protected]> wrote:

> This is already a quite old thread but I can't find easily any instruction
> on how to compile vim for 64 bit windows. I am using windows 7.
>
> I tried the following:
>
> first I call
> "c:\Program Files (x86)\Microsoft Visual Studio
> 10.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
>
> to set up the vars to 64 bit.
>
> Then I try to compile just with
> nmake -f Make_mvc.mak GUI=yes
>
> and all the files seem to compile fine until it reaches the link step
> where the error is:
>
>         cl -c /W3 /nologo  -I. -Iproto -DHAVE_PATHDEF -DWIN32
> -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG
>   -DWINVER=0x0400 -D_WIN32_WINNT=0x0400  /Fo.\ObjG/ /Ox /GL -DNDEBUG  /Zl
> /MT -DFEAT_GUI_W32 -DDYNAMIC
> _ICONV -DDYNAMIC_GETTEXT -DFEAT_BIG /Fd.\ObjG/ /Zi version.c
> version.c
>         link /RELEASE /nologo /subsystem:windows /LTCG:STATUS
> -out:gvim.exe .\ObjG\blowfish.obj  .\Obj
> G\buffer.obj  .\ObjG\charset.obj  .\ObjG\diff.obj  .\ObjG\digraph.obj
>  .\ObjG\edit.obj  .\ObjG\eval.ob
> j  .\ObjG\ex_cmds.obj  .\ObjG\ex_cmds2.obj  .\ObjG\ex_docmd.obj
>  .\ObjG\ex_eval.obj  .\ObjG\ex_getln.o
> bj  .\ObjG\fileio.obj  .\ObjG\fold.obj  .\ObjG\getchar.obj
>  .\ObjG\hardcopy.obj  .\ObjG\hashtab.obj  .
> \ObjG\main.obj  .\ObjG\mark.obj  .\ObjG\mbyte.obj  .\ObjG\memfile.obj
>  .\ObjG\memline.obj  .\ObjG\menu
> .obj  .\ObjG\message.obj  .\ObjG\misc1.obj  .\ObjG\misc2.obj
>  .\ObjG\move.obj  .\ObjG\normal.obj  .\Ob
> jG\ops.obj  .\ObjG\option.obj  .\ObjG\os_mswin.obj  .\ObjG\os_win32.obj
>  .\ObjG\pathdef.obj  .\ObjG\po
> pupmnu.obj  .\ObjG\quickfix.obj  .\ObjG\regexp.obj  .\ObjG\screen.obj
>  .\ObjG\search.obj  .\ObjG\sha25
> 6.obj  .\ObjG\spell.obj  .\ObjG\syntax.obj  .\ObjG\tag.obj
>  .\ObjG\term.obj  .\ObjG\ui.obj  .\ObjG\und
> o.obj  .\ObjG\window.obj  .\ObjG\vim.res .\ObjG\gui.obj
>  .\ObjG\gui_beval.obj  .\ObjG\gui_w32.obj  .\O
> bjG\os_w32exe.obj            .\ObjG/if_cscope.obj .\ObjG/netbeans.obj
> .\ObjG\version.obj oldnames.li
> b kernel32.lib advapi32.lib shell32.lib gdi32.lib  comdlg32.lib ole32.lib
> uuid.lib /machine:i386 /node
> faultlib gdi32.lib version.lib   winspool.lib comctl32.lib advapi32.lib
> shell32.lib  /machine:i386 /no
> defaultlib libcmt.lib   user32.lib           WSock32.lib  /PDB:gvim.pdb
> -debug
> .\ObjG\blowfish.obj : fatal error LNK1112: module machine type 'x64'
> conflicts with target machine typ
> e 'X86'
> NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual
> Studio 10.0\VC\BIN\x86_amd64\link
> .EXE"' : return code '0x458'
> Stop.
>
>
> Any ideas on how to compile this?
> I guess this would be  nice thing to have for the next release.
>
> Thanks,
>
> Jorge
>

There are some old and sadly neglected batch files at
http://code.google.com/p/vim-win3264/downloads/list that will help in
building a native Win64 build of Vim. I don't use Windows much anymore and
when I do, I run the Win32 binaries by default on Win64, for the reasons
elucidated at http://code.google.com/p/vim-win3264/
-- 
/George V. Reilly  [email protected]  Twitter: @georgevreilly
http://www.georgevreilly.com/blog  http://blogs.cozi.com/tech

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui