[back to front page] | [back to development index]
To compile Oyun, you need:
sudo apt-get install build-essential
)brew install cmake
sudo apt-get install cmake
; Gentoo: sudo emerge cmake
)configure --disable-dependency-tracking --disable-precomp-headers --with-cocoa --disable-shared --disable-compat24 \
--enable-unicode --enable-macosx_arch="i386,x86_64"--with-libpng=builtin --with-libjpeg=builtin --with-zlib=builtin \
--with-expat=builtin --with-libtiff=builtin
brew install haskell-platform
, then cabal install pandoc
(make sure ~/.cabal/bin
is in your PATH
)sudo apt-get install pandoc
, Gentoo: sudo emerge pandoc
)sudo apt-get install texlive
, Gentoo: sudo emerge texlive
)bin
directory in your system PATH.sudo apt-get install zip
, Gentoo: sudo emerge zip
)First, you need to unpack the Oyun source archive and create a build directory:
tar xvf oyun-VERSION.tar.bz2
mkdir build
cd build
Now, run CMake to generate project/build files for your platform:
cmake ../oyun-VERSION
On Windows, you will need to specify a generator:
cmake -G "Visual Studio 2010" ../oyun-VERSION
An aside: if you wish to compile universal binaries on Mac (e.g., for
distribution), after the first run of CMake, open the CMakeCache.txt file and
change the value of CMAKE_OSX_ARCHITECTURES
to ppc;i386;x86_64
. Also, for
maximum compatibility you’ll want to set CMAKE_OSX_DEPLOYMENT_TARGET
to 10.5
and change CMAKE_OSX_SYSROOT
to point to the 10.5 SDK.
If CMake runs successfully (and finds wxWidgets), you now just need to build
Oyun. On Linux and Mac, simply execute make
. On Windows, open the generated
solution file (Oyun.sln or Oyun.dsw) in Visual Studio and compile. The Oyun
binaries will be located in your build tree. On Linux, you may simply execute
make install
to install them. On Windows and Mac, you probably want to run
make package
, which will create an installer file (oyun-VERSION-win.exe or
oyun-VERSION-mac.dmg) which you can use to properly install Oyun.