Go to file
Maikel de Vries 30e109b73a Tutorial 4: Fixed item swith when dying (#665) 2011-10-01 10:41:53 +02:00
autotools autotools: Update for recent autoconf and autoconf macro archive versions 2011-08-10 01:13:23 +02:00
docs docs: split build_chm_files into build_contents, build_hhp and hhk.xsl 2011-09-19 14:50:27 +02:00
licenses Add license text for libogg and libvorbis 2010-12-15 00:03:59 +01:00
masterserver masterserver: Expect utf-8 from the clients (#621) 2011-09-23 01:03:06 +02:00
planet Tutorial 4: Fixed item swith when dying (#665) 2011-10-01 10:41:53 +02:00
src Landscape renderer: Cast a variable to int so it matches the format specifier 2011-09-28 19:46:43 +02:00
tests win32: Correctly read back unicode strings from registry 2011-07-27 17:30:56 +02:00
thirdparty Move TinyXML into thirdparty/ 2011-01-25 21:28:44 +01:00
tools win32: Installer uses new Clonk portrait 2011-09-23 01:55:39 +02:00
.hgignore Code cleaning, sourced the lorry stuff out into its own library, comments added 2011-03-21 18:49:49 +01:00
CMakeLists.txt removed Tests.ocf from "setup" build configuration 2011-09-29 22:22:42 +02:00
Credits.txt slightly update credits 2011-09-29 23:11:43 +02:00
FindReadline.cmake dedicated: fix CMake and object loading (thanks ck and Guenther) 2011-01-30 21:44:54 +01:00
GccPchSupport.cmake CMake: Use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_CACHEFILE_DIR 2011-08-04 19:24:39 +02:00
Makefile.am removed Tests.ocf from "setup" build configuration 2011-09-29 22:22:42 +02:00
README.linux.txt README.linux.txt is not executable. 2011-09-20 18:42:34 +02:00
README.mac.txt mac: readme: Remove NoNetwork notes, complete dependency list, add X11 to prerequisite list 2011-03-06 00:32:22 +01:00
README.windows.txt win32: Add build rules for the installer to CMakeLists.txt and Makefile.am 2011-09-20 19:43:22 +02:00
Version.txt Version 5.2.0 2011-09-30 16:35:39 +02:00
autogen.sh Revert "Removed autotools and anjuta build files" 2009-07-13 21:24:30 +02:00
clonk.anjuta Update Anjuta project file 2010-07-06 00:39:34 +02:00
clonk.desktop Polish 'make install' support a bit 2010-12-30 01:21:07 +01:00
config.h.cmake win32: Make vfw32 optional 2011-05-12 17:13:38 +02:00
config.h.in autotools: Update for recent autoconf and autoconf macro archive versions 2011-08-10 01:13:23 +02:00
configure.ac Clean up copyright notices 2011-09-01 12:47:54 +02:00

README.windows.txt

Requirements
============

You can build on Windows using either:

* vc10 (Microsoft Visual C++ 2010)
  - you need CMake (http://www.cmake.org/cmake/resources/software.html) to
    create the "solution"
  - you might have to set the correct DXSDK include and library directories

* MinGW and MSYS
  - plus DXSDK 9 (if you want DirectX support)

* Some other compilers and IDEs which are supported by CMake might also work

OpenClonk requires some additional libraries. Prebuilt versions of them can be
found on http://openclonk.org.

Building the installer
======================

The installer is created with NSIS. makensis needs to be in the PATH, and
the dlls used by openclonk in the build directory. To create the installer,
build the "setup" target if using CMake, or if using autotools, run:

    make setup_openclonk.exe

Get NSIS from http://nsis.sourceforge.net/.

Notes for MinGW
===============

You need gcc, g++, mingw-runtime, w32api, msys, msyscore, autoconf, automake,
and any packages needed by these.

Get the library package from openclonk.org and unpack it into the mingw
directory.

If you want DirectX support, get a DirectX 9 SDK from Microsoft. Copy the
contents of its include dir to the include dir of your MinGW installation,
and pass --with-directx to configure below.

Start msys (your MinGW directory, e.g. C:\MinGW -> msys.bat),
cd to this directory, and execute:

    ./autogen.sh && ./configure && make

To compile a debugbuild, pass --enable-debug to configure. Other options are
listed by ./configure --help.

On subsequent build runs, you only have to execute make.

If you want to separate the source directory and the output files, you can call
configure from another directory. You can call configure by it's relative path,
but using the full path helps gdb find the source files. Example:

    mkdir build
    cd build
    /path/to/clonksource/configure --with-directx CXXFLAGS='-Os'
    make