|Version 27 (modified by thijz, 15 months ago)|
Compiling Hydrogen V0.9.4 / V0.9.5 / V0.9.6
These are the instructions for compiling the Hydrogen versions 0.9.4, 0.9.5 and 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 subversion libqt4-dev g++ libasound2-dev libjack-dev liblrdf0-dev libflac++-dev libtar-dev libsndfile1-dev
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. If you're using hydrogen < 0.9.6, you have to install SConstruct:
apt-get install scons
For hydrogen 0.9.6 and above, install cmake:
apt-get install cmake
2. Get the sourcecode:
cd /usr/src svn co http://svn.assembla.com/svn/hydrogen/trunk hydrogen
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:
For hydrogen < 0.9.6:
cd /usr/src/hydrogen scons su -c "scons install"
If you want to use lash, portmidi or portaudio be sure to enable it by appending " lash=1","portaudio=1" or "portmidi=1" to the scons command
For hydrogen >= 0.9.6:
cd /usr/src/hydrogen ./build.sh m
5. Build a debian package
As an alternative to "scons install" 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 )