Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

Getting Started (for Windows users)

Pedro edited this page Aug 2, 2014 · 11 revisions

(PREVIEW ONLY - NOT WORKING YET)

Compiling for Windows

Choose between one of the available compilers (TDM-GCC, MinGW-w64 and Cygwin) and follow its tutorial. No need to install more than one.

Installing Compiler: TDM-GCC (32-bits)

  1. Download the following:
  • TDM-GCC
  • Avalanche's dependencies: Vala (and dependencies), SDL2 (and complements) and Chipmunk (6.2.0 or higher) - with deferenced links.
  • (Check "Useful files" on our wiki for pre-built packages if necessary)
  1. Install the following:
  • I recommend installing compiler in "C:\TDM-GCC-32"
  • Extract the following "...(mingw-vala+sdl2+chipmunk.7z)\usr\i686-w64-mingw32" to "...(TDM-GCC-32)" and "...(mingw-vala+sdl2+chipmunk.7z)\usr\share" to "...(TDM-GCC-32)\share"
  1. Follow: Installing VAPIs

  2. Follow: Creating and compiling a game

Installing Compiler: MinGW-w64

  1. Download the following:
  • MinGW-w64
  • Avalanche's dependencies: Vala (and dependencies), SDL2 (and complements) and Chipmunk (6.2.0 or higher) - with deferenced links.
  • (Check "Useful files" on our wiki for pre-built packages if necessary)
  1. Install MinGW-w64 using:
gcc >= 4.8
threads: win32
exception: any except dwarf
  1. Add compiler to PATH enviroment variable

  2. Follow: Installing VAPIs

  3. Follow: Creating and compiling a game

Installing Compiler: Cygwin

  1. Download the following:
  • Cygwin
  • Missing packages:
chipmunk, libgee, libjpeg-turbo, modplug, sdl2, sdl2_gfx, sdl2_image, sdl2_mixer, sdl2_net, sdl2_ttf, smpeg2
  • (Check "Useful files" on our wiki for pre-built packages if necessary)
  1. Install Cygwin, include this packages during installation:
bzip2 cmake dbus expat libexpat-devel flac flac-devel libglut3 libglut-devel libfreetype-devel gettext gettext-devel libglib2.0_0 libglib2.0-devel libffi6 libffi-devel libgcrypt libgcrypt-devel libgpg-error libgpg-error-devel libiconv2 libogg libogg-devel libpng15 libpng-devel libtiff6 libtiff-devel libunistring0 libunistring-devel libvorbis0 libvorbis-devel libwebp libwebp-devel libxml2 libxml2-devel libxslt libxslt-devel pkg-config termcap vala zlib0 zlib-devel
  1. Install missing packages manually.

  2. Follow: Installing VAPIs

  3. Follow: Creating and compiling a game

Installing VAPIs

  1. Clone or download and extract SDL2 VAPIs to any place you want (you're only will need this files for next step).

  2. Copy all files ending in ".vapi" (and ".deps" if exists) to "...(COMPILER ENVIROMENT)\share\vala\vapi".

  3. Clone or download and extract our repository to any place you want (you're gonna need this files forever).

  4. Go to "...(avalanche)\sdks\vapi" and repeate 'step 2'.

Creating and compiling a game

  1. Copy "...(avalanche)\sdks\template" to anywhere you want, feel free to rename it to any desired name, in this new folder your project will be developed.

  2. Inside yours project folder, create a ".bat" file to keep your environment variables, something similar to this:

@echo off
SET AVALANCHE_DIR=C:\avalanche
mingw32-make %*
  1. When you're ready open a console inside your project folder and run your new bat file.

  2. For running you're gonna need to copy the following files from compiler's "...(COMPILER ENVIROMENT)\bin" folder into project's "bin" folder:

libbz2-1.dll, libffi-6.dll, libfreetype-6.dll, libgcc_s_sjlj-1.dll, libgee-0.8.dll, libglib-2.0-0.dll, libgobject-2.0-0.dll, libiconv-2.dll, libintl-8.dll, libpng16-16.dll, libSDL2_gfx-1-0-0.dll, libstdc++-6.dll, libwinpthread-1.dll, SDL2.dll, SDL2_image.dll, SDL2_mixer.dll, SDL2_net.dll, SDL2_ttf.dll, smpeg2.dll, zlib1.dll