Install Tutorial for Netbeans and Qt on Windows

1.  Install NetBeans IDE and the C/C++ plugin module. Click here to download NetBeans C/C++ 7.0.1

2.  Download and install MSYS-1.0.10.exe in the default location. Click here to download MSYS-1.0.10

3.  Download and install the Qt 4.6.2 SDK which includes MinGW and gcc. If Qt Creator starts automatically, you can close it. Click here to download Qt 4.6.2 SDK

4.  In the NetBeans IDE, select Tools > Options > C/C++ to open the C/C++ properties.

5.  Click Add in the Tool Collections area.

6.  Specify the Qt MinGW installation's bin directory as the tool collection's Base Directory (for example, c:\Qt\2010.02.1\mingw\bin)

7.  Set the Tool Collection Name to MinGW_Qt and click OK, then click OK in the Options dialog box.

8.  Go back to the C/C++ properties in Tools > Options window , specify the “QMake Command” to c:\Qt\2010.02.1\qt\bin\qmake.exe.

9.  Append c:\Qt\2010.02.1\bin;c:\Qt\2010.02.1\qt\bin;c:\Qt\2010.02.1\mingw\bin to the system variable “Path”

NOTE: Do NOT type space between two paths, e.g. no space between “c:\Qt\2010.02.1\bin;” and “c:\Qt\2010.02.1\qt\bin;”.

If you fail to follow this rule, your NetBeans will give you an error like “Cannot find xxx.dll”!

 


Last updated on Sep. 15, 2011