Skip to content
ooxi edited this page Oct 27, 2012 · 1 revision

Eclipse

  • Install subclipse and CDT.
  • Checkout the project from SVN as empty C++ project using wizard.
  • Goto project properties -> C/C++ Build -> Settings.
  • Select Tool Settings -> GCC C++ Compiler -> Directories.
  • Add include path for SDL (f.e. -l/usr/include/SDL).
  • Select Tool Settings -> Libraries.
  • Add libraries SDL, SDL_mixer, SDL_ttf, SDL_image, GL (-l).

You're done. Now you can build or debug the project.

KDevelop 4

Provided by mailto:weaselweb@web.de

Setup

  • Checkout project.
  • Start Kdevelop and Select Project -> Open / Import Project.
  • Select top-level CMakeLists.txt.
  • Confirem CMake buildsystem.
  • Select build and install dir (e.g. $SRC_ROOT/build and $SRC_ROOT/dist).
  • Select build type.
  • Build and install.

Create launch target

  • Select Run -> Configure Launches...
  • Select violetland and click the green +.
  • Check Executeable and select absolut path to installed binary (e.g. $SRC_ROOT/dist/bin/violetland).
  • Set wirking directory to $SRC_ROOT/dist/bin.
  • Select "Build and Install" as dependency actions.

You should be done now be able to launch normally or in a debug session using gdb.

Visual Studio 2008

Checkout the project.

Run the Visual Studio and create a new project from template "Win32 Console Application". Deselect the precompiled header option and select the empty project option in wizard.

After project creating, add source files to the project (add existing item...).

Go to the project properties -> Configuration properties -> C/C++ -> General and add additional include directories (you must download SDL, SDL_mixer, SDL_ttf, SDL_image packages and also a dirent.h file (see FileUtility.h for details).

Go to the project properties -> Configuration properties -> Linker -> General and add additional library directories (same as in previous step).

Last, go to project properties -> Configuration properties -> General and change character set from unicode to multi-byte.

You're done. Now you can build or debug the project.