Getting the source to compile (MSVC)


Questions, Explanations, Howtos

Mines Malingerer

Posts: 35

Joined: Wednesday, 5th February 2014, 19:07

Post Wednesday, 5th February 2014, 19:31

Getting the source to compile (MSVC)

I'm trying to get the source code to compile so I can begin editing or messing around or whatever. I've followed the instructions on INSTALL.txt, but obviously I went wrong somewhere along the line. Here's what I've done so far:
- Installed git and dowloaded the source code with the contributing libraries (using $ git clone git://gitorious.org/crawl/crawl.git and then $ git submodule update --init)
- Installed Strawberry Perl
- Installed MSVC 2012
- Ran gen-all.cmd
! Compiled Contribs.sln in MSVC
! Built crawl-ref.sln.

Now, those last two steps are where I encountered all the problems, and they probably originated from me setting something up improperly. Specifically in the case of choosing whether to compile as 32-bit or 64-bit, I really have no idea. I'm running 64-bit Windows 7, so I chose Release (x64) in MSVC for compiling contribs.sln and crawl-ref.sln. But maybe that's not where I made the mistake, and perhaps the console outputs will be a lot more telling:

Contribs.sln Error List
    Warning 1 warning C4244: '=' : conversion from 'double' to 'time_t', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sqlite\sqlite3.c 12427 1 sqlite
    Warning 2 warning C4101: 'auth' : unreferenced local variable C:\Git\crawl\crawl-ref\source\contrib\sqlite\sqlite3.c 60692 1 sqlite
    Warning 3 warning C4101: 'xAuth' : unreferenced local variable C:\Git\crawl\crawl-ref\source\contrib\sqlite\sqlite3.c 69097 1 sqlite
    Warning 4 warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) C:\Git\crawl\crawl-ref\source\contrib\lua\src\ltable.c 323 1 lua
    Warning 5 warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) C:\Git\crawl\crawl-ref\source\contrib\lua\src\ltable.c 376 1 lua
    Warning 6 warning : The referenced project '..\..\..\zlib\projects\visualc2005\zlib.vcxproj' does not exist. C:\windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets 1395 5 libpng
    Warning 7 warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\video\wincommon\SDL_syswm.c 223 1 SDL
    Warning 8 warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngwutil.c 218 1 libpng
    Warning 9 warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngwutil.c 1575 1 libpng
    Warning 10 warning C4267: 'initializing' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngwutil.c 2103 1 libpng
    Warning 11 warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) C:\Git\crawl\crawl-ref\source\contrib\lua\src\lgc.c 288 1 lua
    Warning 12 warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\lua\src\ldump.c 70 1 lua
    Warning 13 warning C4267: 'initializing' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngwtran.c 256 1 libpng
    Warning 14 warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngwio.c 56 1 libpng
    Warning 15 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 731 1 pcre
    Warning 16 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 824 1 pcre
    Warning 17 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 825 1 pcre
    Warning 18 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 826 1 pcre
    Warning 19 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 1052 1 pcre
    Warning 20 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 1207 1 pcre
    Warning 21 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 1208 1 pcre
    Warning 22 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 1209 1 pcre
    Warning 23 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 1481 1 pcre
    Warning 24 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 2066 1 pcre
    Warning 25 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 5774 1 pcre
    Warning 26 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 5775 1 pcre
    Warning 27 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 5801 1 pcre
    Warning 28 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_exec.c 5802 1 pcre
    Warning 29 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 474 1 pcre
    Warning 30 warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 491 1 pcre
    Warning 31 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 527 1 pcre
    Warning 32 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 742 1 pcre
    Warning 33 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 743 1 pcre
    Warning 34 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 765 1 pcre
    Warning 35 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 773 1 pcre
    Warning 36 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 782 1 pcre
    Warning 37 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 786 1 pcre
    Warning 38 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 797 1 pcre
    Warning 39 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 804 1 pcre
    Warning 40 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2222 1 pcre
    Warning 41 warning C4244: 'function' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2293 1 pcre
    Warning 42 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2304 1 pcre
    Warning 43 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2331 1 pcre
    Warning 44 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2332 1 pcre
    Warning 45 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2333 1 pcre
    Warning 46 warning C4244: 'function' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2384 1 pcre
    Warning 47 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2396 1 pcre
    Warning 48 warning C4244: 'function' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2417 1 pcre
    Warning 49 warning C4244: 'function' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2469 1 pcre
    Warning 50 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2486 1 pcre
    Warning 51 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2494 1 pcre
    Warning 52 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2558 1 pcre
    Warning 53 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2559 1 pcre
    Warning 54 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2560 1 pcre
    Warning 55 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2611 1 pcre
    Warning 56 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_dfa_exec.c 2612 1 pcre
    Warning 57 warning C4244: '=' : conversion from '__int64' to 'uschar', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 2183 1 pcre
    Warning 58 warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 2209 1 pcre
    Warning 59 warning C4244: '+=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 2747 1 pcre
    Warning 60 warning C4244: '+=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 2865 1 pcre
    Warning 61 warning C4244: 'function' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 3070 1 pcre
    Warning 62 warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 4108 1 pcre
    Warning 63 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 4129 1 pcre
    Warning 64 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 4197 1 pcre
    Warning 65 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 4306 1 pcre
    Warning 66 warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 4327 1 pcre
    Warning 67 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 4415 1 pcre
    Warning 68 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 4486 1 pcre
    Warning 69 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 4629 1 pcre
    Warning 70 warning C4244: '=' : conversion from '__int64' to 'uschar', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 4825 1 pcre
    Warning 71 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 4859 1 pcre
    Warning 72 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 4989 1 pcre
    Warning 73 warning C4244: '=' : conversion from '__int64' to 'uschar', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 5153 1 pcre
    Warning 74 warning C4244: '=' : conversion from '__int64' to 'uschar', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 5177 1 pcre
    Warning 75 warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 5982 1 pcre
    Warning 76 warning C4244: '=' : conversion from '__int64' to 'uschar', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 5996 1 pcre
    Warning 77 warning C4244: '=' : conversion from '__int64' to 'uschar', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 6011 1 pcre
    Warning 78 warning C4244: '=' : conversion from '__int64' to 'uschar', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 6013 1 pcre
    Warning 79 warning C4244: '=' : conversion from '__int64' to 'uschar', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 6068 1 pcre
    Warning 80 warning C4267: '=' : conversion from 'size_t' to 'pcre_uint32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 6626 1 pcre
    Warning 81 warning C4244: '=' : conversion from '__int64' to 'uschar', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 6697 1 pcre
    Warning 82 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\pcre\pcre_compile.c 6752 1 pcre
    Warning 83 warning C4244: '=' : conversion from 'DWORD_PTR' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\cdrom\win32\SDL_syscdrom.c 174 1 SDL
    Warning 84 warning C4244: '=' : conversion from 'DWORD_PTR' to 'DWORD', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\cdrom\win32\SDL_syscdrom.c 342 1 SDL
    Warning 85 warning C4267: 'initializing' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngtrans.c 210 1 libpng
    Warning 86 warning C4267: 'initializing' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngtrans.c 223 1 libpng
    Warning 87 warning C4267: 'initializing' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngtrans.c 236 1 libpng
    Warning 88 warning C4244: 'return' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\stdlib\SDL_string.c 1246 1 SDL
    Warning 89 warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngset.c 591 1 libpng
    Warning 90 warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngset.c 903 1 libpng
    Warning 91 warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrutil.c 1087 1 libpng
    Warning 92 warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrutil.c 1203 1 libpng
    Warning 93 warning C4267: 'initializing' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrutil.c 2880 1 libpng
    Warning 94 warning C4267: 'initializing' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrutil.c 2895 1 libpng
    Warning 95 warning C4267: 'initializing' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrutil.c 2913 1 libpng
    Warning 96 warning C4267: 'initializing' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrutil.c 2938 1 libpng
    Warning 97 warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrutil.c 3294 1 libpng
    Warning 98 warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrutil.c 3302 1 libpng
    Warning 99 warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrutil.c 3307 1 libpng
    Warning 100 warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrutil.c 3322 1 libpng
    Warning 101 warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\file\SDL_rwops.c 126 1 SDL
    Warning 102 warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\file\SDL_rwops.c 151 1 SDL
    Warning 103 warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\file\SDL_rwops.c 340 1 SDL
    Warning 104 warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\file\SDL_rwops.c 350 1 SDL
    Warning 105 warning C4244: 'return' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\file\SDL_rwops.c 392 1 SDL
    Warning 106 warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\file\SDL_rwops.c 412 1 SDL
    Warning 107 warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\file\SDL_rwops.c 417 1 SDL
    Warning 108 warning C4267: 'initializing' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrtran.c 1683 1 libpng
    Warning 109 warning C4267: 'initializing' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngrtran.c 1697 1 libpng
    Warning 110 warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngpread.c 592 1 libpng
    Warning 111 warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngpread.c 608 1 libpng
    Warning 112 warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngpread.c 778 1 libpng
    Warning 113 warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\libpng\pngpread.c 802 1 libpng
    Warning 114 warning C4603: 'PNG_NO_EXTERN' : macro is not defined or definition is different after precompiled header use C:\Git\crawl\crawl-ref\source\contrib\libpng\png.c 14 1 libpng
    Warning 115 warning C4244: 'function' : conversion from 'WPARAM' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\video\windib\SDL_dibevents.c 599 1 SDL
    Warning 116 warning C4244: '=' : conversion from 'WPARAM' to 'Uint16', possible loss of data C:\Git\crawl\crawl-ref\source\contrib\sdl\src\video\windib\SDL_dibevents.c 616 1 SDL
    Warning 117 warning : The referenced project '..\..\libpng\projects\visualc8\libpng.vcxproj' does not exist. C:\windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets 1395 5 SDL_image
    Error 118 error C1083: Cannot open include file: 'png.h': No such file or directory C:\Git\crawl\crawl-ref\source\contrib\sdl-image\IMG_png.c 72 1 SDL_image


crawl-ref.sln Error List
    Error 1 The OutputPath property is not set for project 'dat.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Release' Platform='AnyCPU'. This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform. dat
    Warning 2 warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_page.cc 101 1 tilegen
    Warning 3 warning C4244: '=' : conversion from 'const double' to 'unsigned char', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_list_processor.cc 245 1 tilegen
    Warning 4 warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_list_processor.cc 378 1 tilegen
    Warning 5 warning C4267: 'initializing' : conversion from 'size_t' to 'const unsigned int', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_list_processor.cc 412 1 tilegen
    Warning 6 warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_list_processor.cc 515 1 tilegen
    Warning 7 warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_list_processor.cc 544 1 tilegen
    Warning 8 warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_list_processor.cc 715 1 tilegen
    Warning 9 warning C4267: 'initializing' : conversion from 'size_t' to 'const unsigned int', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_list_processor.cc 751 1 tilegen
    Warning 10 warning C4267: '=' : conversion from 'size_t' to 'unsigned int', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_list_processor.cc 806 1 tilegen
    Warning 11 warning C4244: 'initializing' : conversion from 'unsigned int' to 'const float', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_list_processor.cc 1441 1 tilegen
    Warning 12 warning C4244: 'initializing' : conversion from 'unsigned int' to 'const float', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_list_processor.cc 1457 1 tilegen
    Warning 13 warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_colour.cc 110 1 tilegen
    Warning 14 warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_colour.cc 111 1 tilegen
    Warning 15 warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile_colour.cc 211 1 tilegen
    Warning 16 warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data C:\Git\crawl\crawl-ref\source\rltiles\tool\tile.cc 58 1 tilegen
    Warning 17 warning C4800: 'Uint32' : forcing value to bool 'true' or 'false' (performance warning) C:\Git\crawl\crawl-ref\source\rltiles\tool\tile.cc 397 1 tilegen
    Error 18 error LNK1181: cannot open input file 'SDL_image.lib' C:\Git\crawl\crawl-ref\source\MSVC\LINK tilegen
    Warning 19 warning C4005: 'constexpr' : macro redefinition C:\Program Files (x86)\MSVC\VC\include\xkeycheck.h 180 1 crawl
    Error 20 error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. C:\Program Files (x86)\MSVC\VC\include\xkeycheck.h 242 1 crawl

--

Obviously the fatal errors mean that I'm not getting any results here. From what I can gather it seems like there are some missing files... so maybe it's something I did wrong with the git setup. But really, I don't know.
So -- is there anything telling in the error lists? I'm no expert, so a push in the right direction would be awesome :D
limboring→optimal sanity = 0
User avatar

Crypt Cleanser

Posts: 689

Joined: Sunday, 3rd June 2012, 13:10

Post Sunday, 23rd February 2014, 11:04

Re: Getting the source to compile (MSVC)

I don't know much about MSVC, but have you considered trying MinGW or cygwin? They are better supported.
Dearest Steve
thanks for the gym equipment
the plane crashed

Ziggurat Zagger

Posts: 6454

Joined: Tuesday, 30th October 2012, 19:06

Post Monday, 24th February 2014, 02:02

Re: Getting the source to compile (MSVC)

I've never been able to get x64 to compile properly.

Use the x32 version, that has worked for me in the past, although for some reason if I get a messed up build like that, it seems to bork everything until I clean out the object directory.

Nowadays I just compile using mingw (it's less fiddly) and just use VS as a pretty syntax-highlighting editor that knows how to follow C++ declarations.
Spoiler: show
This high quality signature has been hidden for your protection. To unlock it's secret, send 3 easy payments of $9.99 to me, by way of your nearest theta band or ley line. Complete your transmission by midnight tonight for a special free gift!

Return to Coding

Who is online

Users browsing this forum: No registered users and 6 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.