Skip to main content
netbeans-logo.png
Setting Up An Application With NetBeans - Linux


Introduction

This set of instructions will walk you through setting up a NetBeans 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

You need to make sure you've installed the C++ extensions before continuing.
Also make sure that you've create a CMake project as outlined in Building Your Projects With CMake

Setting up a NetBeans Ogre project

New C++ project with existing sources.

NetBeans_cmake_1

Select Mode dialogue

NetBeans_cmake_2

Make and Make Install

Do a make && make install in a console in the build/source directory before attempting to run your project.

Run configuration

Select the executable in the project tree, right-click and setup it's run properties.
NetBeans_cmake_3
Be sure to set the project for the executable
NetBeans_cmake_4

Success

NetBeans_cmake_5

Conclusion

While NetBeans is a great programming environment, it seems to pollute the source directory completely as there doesn't seem to be a way to specify a separate build directory.
So make sure that you have a copy (or make one) of your source before letting it loose.