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 Jul 27, 2014 · 11 revisions

Compiling for Windows (PREVIEW ONLY - NOT WORKING YET)

  1. Download the following dependencies:
  • TDM-GCC (or any other GCC based compiler suite, threads: win32, exception: not dwarf)
  • 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 then:
  • I recommend installing the 32-bits TDM-GCC 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. 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 "...(mingw-w64)\mingw32\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 4'.

  5. 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.

  6. 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.exe %*
  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 "...(TDM-GCC-32)\bin" 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
Clone this wiki locally