Make a local browseable copy of Haiku source code, using Eclipse

From Richard's Wiki
Jump to: navigation, search

The following steps will give you an Eclipse installation with Subversion and C++ support, to allow you to get and browse a local copy of the Haiku source tree in a nice IDE environment. All this was done under Windows (Vista) so it doesn't give you an actual development environment, just a browsing environment. Following the same instructions under Linux will probably give you (nearly) a full development environment.

  1. Download Eclipse (Galileo) from [1], choose Eclipse Classic 3.5.0 (162 MB) link from the bottom of the list. Unzip the file (eclipse-SDK-3.5-win32.zip) to install it.
  2. Download the CDT C/C++ development environment for Eclipse from CDT Galileo Releases Update Site, choose the 6.0.0 (June 24, 2009) link to get a local zipfile of the addin. Install it using the Help/Install New Software... menu option in Eclipse. If you have trouble, start up Eclipse with a -clean switch (edit eclipse.ini to add the flag). This will give you a C++ environment in Eclipse
  3. Install the Subversion addin to Eclipse - use Eclipse menu Option Help/Install New Software... and specify http://subclipse.tigris.org/update_1.4.x as the location of the updated. Go ahead and install it. That will give you Subversion support. The features to add are core Subclipse and Subclipse Integration.
  4. After restarting Eclipse open the SVN Repository Exploring perspective from the Eclipse menu Window/Open Perspective/Other.../SVN Repository Exploring. Right-click in the SVN Repositories window and select New/Repository Location... from the context menu. In the URL box type http://svn.berlios.de/svnroot/repos/haiku/haiku/trunk.
  5. Right-click the new repository and select Checkout... from the context menu. Specify new project in current workspace as the target location. This will get the current Haiku trunk onto your local disk.

At this point you should have a complete current Haiku source trunk in an Eclipse project, with Subversion and C++ support installed.

Additional Links