MercuryDPM  Alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Set up Netbeans editor to compile Mercury DPM

Writing, compiling, and debugging code is easier if you use a integrated development environment (IDE), such as NetBeans.

To use MercuryDPM with Netbeans:

netbeans_cpp_project_with_ex_sources.png
Choose a 'C/C++ Project with Existing Sources' (default)
  • Select C/C++ -> C/C++ Project With Existing Sources and click Next.
netbeans_select_existing_source.png
Specify source location and compiler
  • As source, specify the folder which contains the Mercury source files (e.g., ~/MercuryDPM/MercurySource); at 'Tool Collection', specify the C++ compiler you want; select Custom configuration mode and click Next.
netbeans_use_existing_makefile.png
Specify existing Makefile
  • If you already created a build directory, choose Use existing Makefile and select the Makefile in your build directory (e.g. ~/MercuryDPM/MercuryBuild/Makefile).
    Alternatively, if you do not have a build directory yet, select Run configure script in subfolder, select ../MercuryBuild as subfolder.
    Click Next .
netbeans_specify_working_directory.png
Specify Build directory as working directory
  • Specify your Build directory (e.g. ~/MercuryDPM/MercuryBuild) as your 'Working Directory', and click Next.
  • Click Next until you reach the section 'Project Name and Location' (the last section). Make sure you choose the project name (only used in NetBeans) such, that the Location is NOT directly your Source or Build directory. This is the location where your NetBeans configuration files end up. You could pick, for example, 'MercuryDPM_nb' as a name.
  • Click Next repeatedly until the button gets disabled.
  • Finally, click Finish.

Now your project will be set up, which will take a few minutes. After that, you are ready to go.