Compiling Hydrogen V0.9.6
These are the instructions for compiling the Hydrogen versions 0.9.6 (all based on QT4) on a debian-based distribution. Hydrogen runs on all kinds of linux distribution, but then the package names and installation tools will differ.
1. Install the required libraries:
apt-get install git-core libqt4-dev g++ libasound2-dev libjack-dev liblrdf0-dev libflac++-dev libtar-dev libsndfile1-dev
NOTE: get QT version 4.7 or higher
NOTE: if you want JackSession? support you will need a recent Jack version (1.9.7 or more)
If you want to use lash, install additionally:
If you want to use rubberband, install additionally:
If you want to use OSS, install additionally:
For portaudio / portmidi:
NOTE: make sure you are installing version 19 (on some Ubuntu systems V18 is the default)
If you're using portaudio / portmidi v19, make sure you apply the portaudio/portmidi patches (see below).
This is just an example for debian based systems. The package names may vary for other distributions.
Now install the build system "cmake".
apt-get install cmake
2. Get the sourcecode:
cd /usr/src git clone git://github.com/hydrogen-music/hydrogen.git
3. Apply portaudio / portmidi patches (only if you want to use portaudio / portmidi v19)
cd /usr/src/hydrogen patch -p0 < patches/portaudio.patch patch -p0 < patches/portmidi.patch
if the patches dir is empty this simply means that there are no patches to apply
4. Compile and install hydrogen:
cd /usr/src/hydrogen ./build.sh m
5. Build a debian package
As an alternative you can build a debian package. This makes it easier to remove hydrogen from your system.
apt-get install fakeroot debhelper build-essential cd /usr/src/hydrogen/linux fakeroot dpkg-buildpackage
The package appears in /usr/src/hydrogen and can be installed with dpkg ( dpkg -i package_name )