History: Setting Up An Application - CodeBlocks - Linux
Source of version: 6 (current)
Copy to clipboard
{DIV(class="Layout_box1")}{SPLIT(colsize=15%|85%)}{IMG(src="img/wiki_up/CBsplash.jpg")}{IMG}--- {DIV(class="bigBold")}Setting Up An Application With Code::Blocks - Linux{DIV}{SPLIT} {DIV} %clear% !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)). {maketoc} !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: {img fileId="1969" width="400" thumb="y" alt="" rel="box[g]"} After '''Configure''' click once on '''Generate''' to get a working CodeBlocks project. !!Open CodeBlocks project {img fileId="1968" width="400" thumb="y" alt="" rel="box[g]"} !!Build From within CodeBlocks, build the project (All) and then choose the '''install''' target and build that: {img fileId="1967" width="400" thumb="y" alt="" rel="box[g]"} !!Success Select '''OgreApp''' as target and run/debug it: {img fileId="1970" width="400" thumb="y" alt="" rel="box[g]"} !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.