A single Ubuntu Linux machine can be used to build all binaries required for an rxtx release. This is possible thanks to the excellent availability of cross compilers. You only need to install the cross compilers for the target architectures you want to build. To build a release, install everything marked with the symbol.
The Java Development Kit (JDK):
sudo apt-get install openjdk-7-jdk openjdk-7-source openjdk-7-jre-headless openjdk-7-jre-lib
The C/C++ compiler, C library for your host platform:
sudo apt-get install build-essential
Apache Maven, our build tool:
sudo apt-get install maven
By default you have installed the compiler which matches your build host system architecture (x86 or x86_64). Now choose the opposite architecture.
When you are on x86 and want to build binaries for x86_64:
sudo apt-get install libc6-dev-amd64
When you are on x86_64 and want to build binaries for x86:
sudo apt-get install libc6-dev-i386
sudo apt-get install gcc-arm-linux-gnueabi binutils-arm-linux-gnueabi
sudo apt-get install gcc-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
sudo apt-get install gcc-mingw-w64-i686
sudo apt-get install gcc-mingw-w64-x86-64
For mac there is no cross compiler in the official Ubuntu sources. We use the apple-cross toolchain from the flosoft/cross-apple PPA. Because our Ubuntu version differs from the PPA version, the package sources have to be added manually (not by the add-apt-repository Command). Therefor append the following lines to your /etc/apt/sources.list file.
deb http://ppa.launchpad.net/flosoft/cross-apple/ubuntu maverick main
deb-src http://ppa.launchpad.net/flosoft/cross-apple/ubuntu maverick main
Then reload your software sources and install the cross toolchain:
sudo apt-get update
sudo apt-get install apple-x86-gcc