harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Harmony Wiki] Update of "DevConfiguration Fedora10" by AndrewMyers
Date Wed, 29 Apr 2009 07:15:46 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Harmony Wiki" for change notification.

The following page has been changed by AndrewMyers:
http://wiki.apache.org/harmony/DevConfiguration_Fedora10

New page:
= Configuring Fedora 10 For Harmony Development =

These instructions presume a fresh install of Fedora 10 (although should work with other versions)
and that you have the ability to '''sudo''' or become the root (Super User).

1) As root install subversion and g++:

{{{
$ yum install subversion
$ yum install gcc-c++
}}}

2) Check whether Java is installed on your system.

{{{
$ java -version
}}}

Should print something similar to :

{{{
java version "1.6.0_0"
IcedTea6 1.4 (fedora-15.b14.fc10-i386) Runtime Environment (build 1.6.0_0-b14)
OpenJDK Client VM (build 14.0-b08, mixed mode)
}}}

If Java is installed, please proceed to step 4.

3) Install java (as root) : 

{{{
$ yum install java-1.6.0-openjdk-devel
}}}

4) Install ant (1.7.1) : 

Although ant can be installed via yum, I was unable to get it to find the ecj.jar file, so
I recommend installing it manually:

Download '''apache-ant-1.7.1-bin.tar.gz''' from [http://ant.apache.org].  I have assume you
downloaded it to your home directory and want to install it for the current user only perform
the following:

{{{
$ cd ~
$ mkdir java-tools
$ cd java-tools
$ tar -xzvf ~/apache-ant-1.7.1-bin.tar.gz
}}}

Alternatively you could install to /usr/local/share if you wish it to be available to all
users.

Then update your '''.bashrc''' file to prefer this version of ant to any others:

{{{

# User specific aliases and functions
....
ANT_HOME=/home/username/java-tools/ant
PATH=$ANT_HOME/bin:$PATH:$HOME/bin

export PATH ANT_HOME
}}}

You may need to log out and log back in for the changes to take effect.  Then test that ant
is working by issuing the following commands:

{{{
ant -version
[andrew@fedora10 ~]$ which ant
}}}

Should print something similar to: 

{{{
Apache Ant version 1.7.1 compiled on June 27 2008
}}}

And

{{{
$ which ant
}}}

Should print something similar to:

{{{
~/java-tools/ant/bin/ant
}}}

5) Download ecj-3.4.2.jar from [http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#JDTCORE]
and copy to ~/.ant/lib 

6) Install other dependencies (as root):

{{{
$ yum install lcms-devel
$ yum install libpng-devel
$ yum install libjpeg-devel
$ yum install libX11-devel
$ yum install libXft-devel
$ yum install binutils-devel
$ yum install libxml2-devel
$ yum install xorg-x11-proto-devel
$ yum install libXtst-devel
$ yum install eclipse-ecj
$ yum install libXext-devel
}}}

Now you can continue with the build instructions as found at 
http://harmony.apache.org/quickhelp_contributors.html

'''NOTE''' :

As at 29 April 2009 a problem exists when fetching the com.ibm.icu.base-3.3.zip

This may be fixed in a future build, but until then you can run 

{{{
ant -Dauto.fetch=true all
}}}

until it aborts with an error saying it couldn't find this file.  Then edit common_resources/make/depends.properties,
and change the eclipse.base as follows:

{{{
#eclipse.base=http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700
eclipse.base=http://archive.eclipse.org/eclipse/downloads/drops/R-3.3-200706251500
}}}

Then re-run 

{{{
ant -Dauto.fetch-true all
}}}

It will now continue but this time grab com.ibm.icu.base-3.3.zip from Eclipse 3.3 which seems
to work without problems.

Mime
View raw message