Compiling on Windows with Visual Studio


Questions, Explanations, Howtos

Temple Termagant

Posts: 7

Joined: Friday, 3rd May 2013, 18:55

Post Tuesday, 12th November 2013, 17:47

Compiling on Windows with Visual Studio

I have Visual Studio 2008 Pro Edition C++ on a Windows XP system.
I also have a Windows 7 system.

I'd like to start exploring and compiling the code to the crawl program. Which version of the source should I get, and what do I use to compile the program - what URLs to what tools?

thanks,
L Murphy (Blackskull)

Ziggurat Zagger

Posts: 3163

Joined: Friday, 6th January 2012, 18:45

Post Tuesday, 12th November 2013, 18:15

Re: Compiling on Windows with Visual Studio

If you want to be able to keep up with the daily updates to the code base, follow the instructions here for setting up msysgit. If you don't care about staying current or don't want to mess with git, you can grab tarballs of the code base from the game download page.

Setting it up as a project in VS might take some work. On Windows, I just use Notepad++ for editing and compile from the command line.

Dungeon Master

Posts: 1613

Joined: Thursday, 16th December 2010, 21:54

Post Tuesday, 12th November 2013, 18:48

Re: Compiling on Windows with Visual Studio

There are instructions for compiling in Visual Studio 2012 in INSTALL.txt. I'm not sure if older versions of Visual Studio will work, but you can just grab the free version of 2012 for Windows 7 I think.

Temple Termagant

Posts: 7

Joined: Friday, 3rd May 2013, 18:55

Post Thursday, 14th November 2013, 20:31

Re: Compiling on Windows with Visual Studio

MarvinPA wrote:There are instructions for compiling in Visual Studio 2012 in INSTALL.txt. I'm not sure if older versions of Visual Studio will work, but you can just grab the free version of 2012 for Windows 7 I think.


Hi - thanks for the pointer to the INSTALL.txt file. I am reading the step which says:

In the Crawl source, run gen-all.cmd which is in source/util/. This step
must be executed any time you update to a new version of the source (or
if you have modified tile data or unrandarts).


When I look in source\util, I do not see "gen-all.cmd". What am I missing?

I only see these files listed:

  Code:
art-data.pl
checkwhite
cmd-name.pl
columnise-credits.pl
configure
cpp_version
crawl.rc
db_lint
db_splice
db_split
dcss.svg
descript-sort.pl
docs
edit_vault
fake_pty.c
FAQ2html.pl
gather_abilities
gather_branches
gather_cards
gather_features
gather_items
gather_mons
gather_spells
gather_tiles_mons
gen_ver.pl
gen_ver_msvc.pl
gen-apt.pl
gen-cflg.pl
gen-luatags.pl
gen-mi-enum
gen-mst.pl
html_doclet.lua
includes.sh
levcomp.lpp
levcomp.ypp
list_merged_branches.pl
mac-crawl-build-update-cdo
makedb.pl
Makefile
optimize-pngs
release_ver
rotate-tile.pl
salvage-credits.pl
taglet.lua
testdb.pl
tiledef_lint
tiles_unused
txc
unbrace
undoku.sed
unrest.pl
webtiles-init-player.sh

Ziggurat Zagger

Posts: 6454

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

Post Thursday, 14th November 2013, 20:41

Re: Compiling on Windows with Visual Studio

You seem to be missing the gen-all.cmd (and a number of other files from the crawl-ref\source\util file listing)

Here's the directory from my local repository:
  Code:
art-data.pl
checkwhite
cmd-name.pl
columnise-credits.pl
configure
cpp_version
crawl.ico
crawl.nsi
crawl.rc
db_lint
db_splice
db_split
dcss.svg
descript-sort.pl
docs
edit_vault
fake_pty.c
FAQ2html.pl
gather_abilities
gather_branches
gather_cards
gather_features
gather_items
gather_mons
gather_spells
gather_tiles_mons
gen-all.cmd
gen-apt.pl
gen-cflg.pl
gen-luatags.pl
gen-mi-enum
gen-mst.pl
gen_ver.pl
gen_ver_msvc.pl
html_doclet.lua
includes.sh
levcomp.lex.cc
levcomp.lex.d
levcomp.lex.o
levcomp.lpp
levcomp.tab.cc
levcomp.tab.d
levcomp.tab.h
levcomp.tab.o
levcomp.ypp
list_merged_branches.pl
mac-crawl-build-update-cdo
makedb.pl
Makefile
optimize-pngs
rotate-tile.pl
salvage-credits.pl
taglet.lua
testdb.pl
tiledef_lint
tiles_unused
txc
unbrace
undoku.sed
unrest.pl
webtiles-init-player.sh
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!

Temple Termagant

Posts: 7

Joined: Friday, 3rd May 2013, 18:55

Post Friday, 15th November 2013, 02:18

Re: Compiling on Windows with Visual Studio

Siegurt wrote:You seem to be missing the gen-all.cmd (and a number of other files from the crawl-ref\source\util file listing)

Here's the directory from my local repository:
  Code:
art-data.pl
checkwhite
cmd-name.pl
columnise-credits.pl
configure
cpp_version
crawl.ico
crawl.nsi
crawl.rc
db_lint
db_splice
db_split
dcss.svg
descript-sort.pl
docs
edit_vault
fake_pty.c
FAQ2html.pl
gather_abilities
gather_branches
gather_cards
gather_features
gather_items
gather_mons
gather_spells
gather_tiles_mons
gen-all.cmd
gen-apt.pl
gen-cflg.pl
gen-luatags.pl
gen-mi-enum
gen-mst.pl
gen_ver.pl
gen_ver_msvc.pl
html_doclet.lua
includes.sh
levcomp.lex.cc
levcomp.lex.d
levcomp.lex.o
levcomp.lpp
levcomp.tab.cc
levcomp.tab.d
levcomp.tab.h
levcomp.tab.o
levcomp.ypp
list_merged_branches.pl
mac-crawl-build-update-cdo
makedb.pl
Makefile
optimize-pngs
rotate-tile.pl
salvage-credits.pl
taglet.lua
testdb.pl
tiledef_lint
tiles_unused
txc
unbrace
undoku.sed
unrest.pl
webtiles-init-player.sh


I used the tar ball from http://crawl.develz.org/wordpress/downloads

Ziggurat Zagger

Posts: 6454

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

Post Friday, 15th November 2013, 02:32

Re: Compiling on Windows with Visual Studio

It sounds like you grabbed the "Without dependancies" tarball (Which doesn't have all the extra libraries and stuff needed to build, including "gen-all.cmd")

I just downloaded the regular tarball and checked and it's in the regular one.
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 17 guests

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