Skip to main content

History: Setting Up An Application - NetBeans - Linux

Source of version: 8 (current)

Copy to clipboard
            {DIV(class="Layout_box6")}{SPLIT(colsize=15%|85%)}{img fileId="1960"}---
{DIV(class="bigBold")}Setting Up An Application With NetBeans - Linux{DIV}{SPLIT}
{DIV}
%clear%
!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)).

{maketoc}

!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.
{img fileId="1954" width="400" thumb="y" alt="" rel="box[g]"}

!!Select Mode dialogue
{img fileId="1956" width="400" thumb="y" alt="" rel="box[g]"}

!!Make and Make Install
Do a {MONO()}make && make install{MONO} 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.
{img fileId="1957" width="400" thumb="y" alt="" rel="box[g]"}
Be sure to set the project for the executable
{img fileId="1955" width="400" thumb="y" alt="" rel="box[g]"}

!!Success
{img fileId="1958" width="400" thumb="y" alt="" rel="box[g]"}

!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.