-
Notifications
You must be signed in to change notification settings - Fork 213
RedhatBuildSetup
We currently use ScientificLinux 6.5 on x64 to do our official builds of Mozilla Stumbler.
You'll need to install some x86 compatibility packages to get everything running:
sudo yum install glibc.i686
sudo yum install zlib.i686
sudo yum install libstdc++.i686
We use the official Oracle JDK 7u75 for x64 as our JDK to build.
You can grab the RPM for that over here: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Make sure you get the x64 RPM. Once you have that you just issue:
sudo yum install ./jdk-7u75-linux-x64.rpm
Our own ScientificLinux came with a copy of the OpenJDK 1.6 runtime installed, but that is probably a Mozilla specific thing. We had to remove that or else the build system gets confused which java byte format to use. So we remove OpenJDK with:
sudo yum remove java-1.6.0-openjdk.x86_64
Set your JAVA_HOME and add JAVA_HOME to your executable path:
export JAVA_HOME=/usr/java/jdk1.7.0_75
export PATH=$PATH:$JAVA_HOME/bin
Now you're ready to clone and build the system.
git clone [email protected]:mozilla/MozStumbler.git
cd MozStumbler
make clean; make test
It's important that you run either make clean
or make debug
. We use an Android deployer to setup your Android SDK for you, but you need to run make clean
or make debug
to get that to run the first time.