Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install the Eclipse CDT plugin. In Eclipse go to Help->Install New Software. Add the CDT download site for your version of Eclipse (tested on Kepler). Follow instructions.

    Info

    If you have already installed "Eclipse for Java Developers" or other Eclipse packages, you could install the CDT plug-in as follows:
    Launch Eclipse ⇒ Help ⇒ Install New Software ⇒ In "Work with" field, pull down the drop-down menu and select "Kepler - http://download.eclipse.org/releases/kepler" (or juno for Eclipse 4.2; or helios for Eclipse 3.7).
    In "Name" box, expand "Programming Language" node ⇒ Check "C/C++ Development Tools" ⇒ "Next" ⇒ ... ⇒ "Finish".


  2. Make sure you have generated the Impala Makefile via CMake. In $IMPALA_HOME run "cmake ."
  3. Import the BE project. In Eclipse go to File->Import->C/C++->Existing Code as Makefile Project. Navigate to $IMPALA_HOME/be. Select the "Linux GCC" toolchain.
  4. Set the Include Paths for the project. In Eclipse right-click the BE and go to Properties->C/C++ General->Paths and Symbols. Select GNU-C++ and click on "Import Settings". Import this include settings file. Note: the included xml is very obsolete. I use this script to create fresher ones: gen_eclipse_imports.py
    1. If for some reason the above steps did not work, you can manually add the includes via Properties->C/C++ General->Paths and Symbols. You can look in $IMPALA_HOME/be/CMakeFiles/CMakeDirectoryInformation.cmake for the exact includes you need.
  5. Rebuild the C++ index to resolve the includes. Project->C/C++ Index->Rebuild. After this step you shouldn't see any undefined macros and/or types anymore.

...