Next Previous Contents

2. Installation

2.1 How to obtain Sankaku

Source codes and binary for both Linux and Windows are available from my homepage.

2.2 Requirements

Linux or Windows running computer that has following libraries.

For Linux : Please obtain paragui, SDL, SDL_image and SGE library.

For Windows : Libraries (DLLs) are included in the distribution.

2.3 Compilation and installation

For the Windows users : This section can be skipped if you are you are not interested in.

For the Linux users : Please follow the direction below.

2.3.1 GCC

Sorry... uncder construction.

2.3.2 KDevelop

Following procedure is well described in SDL & KDevelop mini-HOWTO. Please refer there for the detail. Set following to Compiler Options|Flags and Warnings|C++ Compiler Flags(CXXFLAGS)

`sdl-config --cflags`  `paragui-config --cflags`  `freetype-config --cflags`

Then, set following to Compiler Options|Flags and Warnings|LinkerFlags|Additional flags

`sdl-config --libs`  `paragui-config --libs`  `freetype-config --libs`

Add following to confing.in.in

dnl ---------------------------------------------------------------
dnl Check for SDL
SDL_VERSION=1.2.4
AM_PATH_SDL($SDL_VERSION,
            :,
            AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
dnl ---------------------------------------------------------------
dnl ---------------------------------------------------------------
dnl Checks for libraries.
dnl Replace `main' with a function in -lSDL_mixer:
AC_CHECK_LIB(SDL_mixer,
       main,
       LIBS="$LIBS -lSDL_mixer",
       AC_MSG_ERROR([*** SDL_mixer library not found!])
)
dnl ---------------------------------------------------------------
dnl ---------------------------------------------------------------
dnl Checks for libraries.
dnl Replace `main' with a function in -lSGE:
AC_CHECK_LIB(SGE,
       main,
       LIBS="$LIBS -lSGE",
       AC_MSG_ERROR([*** SGE library not found!])
)
dnl ---------------------------------------------------------------
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS" dnl __kdevelop[exc]__

Add SDL.m4 to acinclude.m4.in.

Finally, DistClean, Autoconf and automake, and configure.

2.3.3 Visual C++

Obtain header files and libs of paragui, SDL, SDL_image and SGE. Please reffer following libraries' web sites for the details.

SDL, SDL_image, ParaGUI SGE, Using SDL with Microsoft Visual C++ 5,6 and 7

Include source and header files of sankaku in your C++ project.

Set the C runtime to "Multi-threaded DLL" in the menu: Project|Settings|C/C++ tab|Code Generation|Runtime Library

Set always generic class to c++ language category in the menu: Project|Settings|C/C++ tab|C/C++ Language|Pointer to member

Set paragui.lib SDLmain.lib SDL.lib SDL_image.lib SGE.lib to the Object Library Module in Project|Settings|Link.

That's it.
Next Previous Contents