Skip to content

Installation Using Eclipse

Matthias Wolff edited this page Dec 21, 2015 · 8 revisions

These installation instructions apply to the Eclipse Mars (4.5) and Neon (4.6) IDEs. See Installation Using Eclipse Kepler (4.3) and Luna (4.4) for instructions for legacy versions or Command Line Installation for alternative instructions using command line tools only.

Table of Contents

Prerequisites

You need:

Software
GCC (on Windows e.g. part of MinGW) required see Windows: Installation and Configuration of MinGW
Eclipse Plug-Ins
Git or SVN team provider required
CDT (C/C++ Development Tooling) required
dLabPro Plug-In optional

Project Setup

1. Set/Modify Environment Variables
MACHINE optional unique identifier of the machine type (e.g. "x86_win64"); useful if the workspace is located on a network drive and you compile for different machines
DLABPRO_HOME optional dLabPro home folder <workspace_loc>/dLabPro
PATH recommended add the dLabPro binary folder <workspace_loc>/dLabPro/bin.release
2. Check-out

Using Git (2a) - or - SVN (2b):

2a) Git
  • in Eclipse: Window / Show View / Other...
    • select Git / Git Repositories
    • Ok
  • Git Repositories view
    • Clone a GIT repository
  • Source Git Repository page
  • Branch Selection page
    • uncheck everything but "master"
    • Next>
  • Local Destination page
    • Directory: <workspace_loc>/dLabPro
    • Finish
  • in Eclipse: File / New / Project...
  • proceed with 3.
2b) SVN
3. Configure the CDT Project
  • Select a wizard page
    • select: C/C++ / C Project
    • Next>
  • C Project page
    • Project name: dLabPro
    • Project type: Makefile project / Empty Project
    • Toolchains: Linux GCC, MinGW GCC, or any other appropriate
    • Finish
4. Add Build Targets
  • for full build:
    • open dLabPro/Makefile
    • in the outline view right-click the entries CLEANALL, DEBUG, and RELEASE and select "Add make Target"
  • for incremental builds (optional):
    • Make Target view
      • make sure that tool button "Hide Empty Folders" is unchecked
      • right-click tree item dLabPro/programs/dlabpro, select "New..." and create make targets CLEANALL, DEBUG, and RELEASE
      • optionally: repeat the last step for the tree items dLabPro/programs/dcg and dLabPro/programs/recognizer

Build

  • Make Target view
    • full build: double-click tree item dLabPro/DEBUG or dLabPro/RELEASE
    • incremental build: double-click tree item dLabPro/dlabpro/DEBUG or dLabPro/dlabpro/RELEASE