89 lines
3.7 KiB
Plaintext
89 lines
3.7 KiB
Plaintext
EN
|
|
|
|
How to...
|
|
|
|
1. Compile the game.
|
|
|
|
1.1 Windows:
|
|
|
|
1. Download and install MinGW and MSYS:
|
|
http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-20111118/
|
|
When installing, select all available components.
|
|
2. Download and install CMake:
|
|
http://www.cmake.org/cmake/resources/software.html (the Windows zip file)
|
|
Unpack the contents of the archive to where MinGW is installed (files from bin/ should go into bin/, etc.)
|
|
3. Download the following libraries, installing them in your MinGW directory like with CMake:
|
|
SDL, SDL_imgage, SDL_ttf, libpng
|
|
4. Run MinGW console from the shortcut in menu start.
|
|
5. Change to the directory where you have the Colobot sources by typing "cd /c/where/the/sources/are"
|
|
6. Type "cmake -G 'MSYS Makefiles' ."
|
|
7. Type "make"
|
|
8. Everything should compile without errors.
|
|
|
|
Note: you might experience some troubles with OpenGL headers, as Windows (used to?) ship with outdated header files.
|
|
Download the newest ones from SDK of your graphics card vendor.
|
|
|
|
1.2 Linux:
|
|
|
|
Since you're running Linux, you probably know how to do this anyway ;)
|
|
But just in case, here's what you need:
|
|
gcc compiler (with gcc-g++), cmake, libraries with header files: SDL, SDL_image, SDL_ttf, libpng
|
|
Instructions are the same:
|
|
$ cmake .
|
|
$ make
|
|
|
|
1.3 Other platforms, compilers, etc.
|
|
|
|
We haven't checked other platforms yet but the code isn't particularly tied to any compiler or platform, so in theory it should work.
|
|
If you can, please try to compile the code on your platform and let us know how it goes.
|
|
|
|
2. Run the compiled game.
|
|
|
|
1. Download development data package - make sure you get the latest version as the files will be changed/moved around.
|
|
Currently the files are hosted at: http://colobot.info/files (packages are named colobot-data-YYYY-MM-DD.zip)
|
|
2. Unpack the data package to any place you want.
|
|
3. Run the game with commandline option "-datadir where_you_put_the_data_dir" and enjoy the game.
|
|
|
|
|
|
PL
|
|
|
|
Jak...
|
|
|
|
1. Skompilować grę.
|
|
|
|
1.1 Windows:
|
|
|
|
1. Ściągamy i instalujemy MinGW i MSYS:
|
|
http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-20111118/
|
|
Przy instalacji zaznaczamy wszystkie komponenty do instalacji.
|
|
2. Ściągamy i instalujemy CMake:
|
|
http://www.cmake.org/cmake/resources/software.html (plik zip dla Windowsa)
|
|
Zip rozpakowujemy do katalogu, gdzie zainstalowany jest MinGW (pliki z bin/ mają trafić do bin/ itd.).
|
|
3. Ścągamy następujące biblioteki i instalujemy je tam, gdzie MinGW, podobnie jak z CMake:
|
|
SDL, SDL_image, SDL_ttf, libpng
|
|
4. Uruchamiamy MinGW console ze skrótu w menu start.
|
|
5. Przechodzimy do katalogu, gdzie są źródła wpisując "cd /c/tam/gdzie/sa/zrodla"
|
|
6. Wpisujemy "cmake -G 'MSYS Makefiles' ."
|
|
7. Wpisujemy "make"
|
|
8. Wszystko powinno się skomplikować bez błędów.
|
|
|
|
1.2 Linux:
|
|
|
|
Skoro już masz Linuksa, to prawdpobodobnie wiesz co robić ;)
|
|
Ale na wszelki wypadek, potrzebujesz tego:
|
|
kompilator gcc (razem z gcc-g++), cmake, biblioteki wraz z nagłówkami: SDL, SDL_image, SDL_ttf, libpng
|
|
Polecenia są takie same:
|
|
$ cmake .
|
|
$ make
|
|
|
|
1.3 Inne platformy, kompilatory, etc.
|
|
|
|
Nie sprawdzaliśmy jeszcze innych platform, ale kod nie jest jakoś specjalnie związany z danym kompilatorem czy platformą, więc w teorii powinien zadziałać.
|
|
Jeśli możesz, spróbuj skompilować kod na twojej platformie i daj nam znać jak poszło.
|
|
|
|
2. Uruchomić skompilowaną grę.
|
|
|
|
1. Ściągamy paczkę developerską z plikami danych gry - upewnij się, że jest to najnowsza wersja, bo pliki będą zmieniane/przenoszone.
|
|
2. Wypakowujemy pliki gdziekolwiek.
|
|
3. Uruchamiamy grę wraz z opcją "-datadir tam_gdzie_rozpakowałeś_paczkę" i cieszymy się grą.
|