Skip to main content

History: Setting Up An Application - CodeBlocks - Linux

Preview of version: 3

Image
Setting Up An Application With Code::Blocks


Introduction

This set of instructions will walk you through setting up a Code::Blocks C++ project from scratch. When you have finished this tutorial you will be able to compile a working Ogre Application and you will be ready to start the Basic Tutorials.

Prerequisites

sdlkfj

Creating an Ogre project with CMake and CodeBlocks

CMake GUI

Start cmake-gui and choose source directory and build directory.
Then click 'Configure' and choose the CodeBlocks makefile generator:
CodeBlocks_cmake_1

Open CodeBlocks project

CodeBlocks_cmake_2

Build

From within CodeBlocks, build the project (All) and then choose the 'install' target and build that:
CodeBlocks_cmake_3

Success

Select 'OgreApp' as target and run/debug it:
CodeBlocks_cmake_4

Conclusion

CodeBlocks is a good development environment, and since CMake has a working generator for it, it is a matter of minutes to get your Ogre project up and running with CodeBlocks.

History

Information Version
Fri 07 of Jan, 2011 17:28 GMT-0000 jacmoe 6
Sat 01 of Jan, 2011 19:45 GMT-0000 jacmoe 5
Sat 01 of Jan, 2011 19:44 GMT-0000 jacmoe 4
Sat 01 of Jan, 2011 19:43 GMT-0000 jacmoe 3
Sat 01 of Jan, 2011 16:21 GMT-0000 jacmoe 2
Sat 01 of Jan, 2011 16:15 GMT-0000 jacmoe 1