next up previous
Next: The Brute Force Approach Up: Mini How-To: Qt on Previous: Qt4 on NetBeans 6

Getting Started

Since the first addition of a C/C++-pack to the NetBeans environment, the C/C++ package has gone a long way. NetBeans is now also one of the best C/C++-IDEs around, for sure a very serious competitor for the Eclipse development environment. Nevertheless, for Eclipse a Qt plug-in is now available (see LINK TO QT), Netbeans still misses such a plug-in.

The original Mini How-To was written in 2006. It needed some updating for the newer NetBeans versions and it was also a good opportunity to repair some shortcuts and to extend it somewhat. Nevertheless, opening the old NetBeans 5.5 project in NetBeans 6.1 after nearly two years, and building and running the HelloQtOnNetBeans program was an immediate success - the old example is still compatible with the NetBeans environment.

In principle the development of C and C++ programs in NetBeans is straight forward and the example programs and the tutorials cover a lot of ground. However, if you leave the well-paved road of terminal I/O and try to program in an GUI environment such as the open-source version of Qt, you may end up in infinite loops and find yourself killing processes (if you can) or rebooting your computer over and over again. Or find out that you program can't find libraries and include files. Therefore this short How-To was written, which tries to get you started with Qt4-development on NetBeans 6.

Requirements

Qt 4.0 or higher: Download the OpenSource version from www.trolltech.com and compile it. Installation instructions are available from the same source.
NetBeans 6.1: Download NetBeans 6.1 from www.netbeans.org with the C/C++ pack and install it following the installation instruction.
GNU Toolset: Compiler, linker, runtime libraries etc. should be already available in your Linux distribution. If not you need to install it. See the documentation of your Linux distributor for information.

Install both program packages in the '/usr/local'- or the '/opt'-directory. Don't forget to add the 'bin'-directories to your PATH environment variable and to make yourself acquainted with the C/C++ example programs in the NetBeans C/C++ pack and in Qt. Make sure that the Qt-libraries are in the library path and can be accessed.

You are ready to get started with your first Qt program to be developed on the NetBeans 6 IDE.


next up previous
Next: The Brute Force Approach Up: Mini How-To: Qt on Previous: Qt4 on NetBeans 6
TSSE, 23 October 2008