Print

Image

Setting Up An Application With Code::Blocks - Linux


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

Follow the instruction at Building Your Projects With CMake to setup a CMake project.

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:
Image

After 'Configure' click once on 'Generate' to get a working CodeBlocks project.

Open CodeBlocks project

Image

Build

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

Success

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

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.


Contributors to this page: jacmoe177744 points  .
Page last modified on Friday 07 of January, 2011 17:28:09 UTC by jacmoe177744 points .


The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.