We will start with a basic "Hello world" program and build up from there:
The file may be saved as e-1-1.cc. As the project uses qmake to build itself a qmake project is recomended. Here is an example project:
This may be saved in a file, say e-1-1.pro, then open a console and type:
However, for the needs of this tutorial, the project file needs to be adjusted so that the compiler finds include files and the linker finds the libraries we use (april and bbb - http://sourceforge.net/projects/libbbb/).
april-core library | Example 2 - Creating a world |