-
Notifications
You must be signed in to change notification settings - Fork 3
Getting Started (for Windows users)
Choose between one of the available compilers (TDM-GCC, MinGW-w64 and Cygwin) and follow its tutorial. No need to install more than one.
- 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)
- 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"
-
Follow: Installing VAPIs
-
Follow: Creating and compiling a game
- 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)
- Install MinGW-w64 using:
gcc >= 4.8 threads: win32 exception: any except dwarf
-
Add compiler to PATH enviroment variable
-
Follow: Installing VAPIs
-
Follow: Creating and compiling a game
- 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)
- 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
-
Install missing packages manually.
-
Follow: Installing VAPIs
-
Follow: Creating and compiling a game
-
Clone or download and extract SDL2 VAPIs to any place you want (you're only will need this files for next step).
-
Copy all files ending in ".vapi" (and ".deps" if exists) to "...(COMPILER ENVIROMENT)\share\vala\vapi".
-
Clone or download and extract our repository to any place you want (you're gonna need this files forever).
-
Go to "...(avalanche)\sdks\vapi" and repeate 'step 2'.
-
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.
-
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 %*
- For more variable options and documentation, check page "Default Makefile environment variables" on our wiki.
-
When you're ready open a console inside your project folder and run your new bat file.
-
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