Katana, OSX and Eclipse

Machine Learning 2009. 12. 13. 22:25

* Install "Eclipse Classic" (cuz we require 'Ant' to use existing makefiles)

* Install CDT via Software update by adding the following site

http://download.eclipse.org/tools/cdt/releases/ganymede

* How to create a (existing makefile)project in Eclipse

* How to use 'Ant'

http://www.ibm.com/developerworks/aix/library/au-unix-eclipse/index.html

Ex)


Listing 1. Ant build file for working with unzip
<?xml version="1.0"?>
<project name="unzip" default="make">
<description>
Ant adaptor for the unzip Makefile.
</description>
<target name="make" description="build unzip">
<exec executable="make">
<arg value="-f"/>
<arg value="unix/Makefile"/>
<arg value="generic"/>
</exec>
</target>
<target name="test" description="test unzip"
depends="make">
<exec executable="make">
<arg value="-f"/>
<arg value="unix/Makefile"/>
<arg value="test"/>
</exec>
</target>
<target name="install" description="install unzip"
depends="make">
<exec executable="make">
<arg value="-f"/>
<arg value="unix/Makefile"/>
<arg value="install"/>
</exec>
</target>
<target name="clean" description="clean unzip">
<exec executable="make">
<arg value="-f</arg>
<arg value="unix/Makefile</arg>
<arg value="clean"/>
</exec></target> </project>

Now you can right-click the build.xml file and run it as an Ant build (Run As > Ant Build). The launch dialog (see Figure 15) lets you choose which build target to run.


Figure 15. The build targets for our unzip project
The build targets for our unzip project

You can see your build progress in the Console view, which will fill up with the output of your make command. As you can see from Figure 16, you've done it!

: