2008-06-28

Hydrogen

Hydrogen ; http://www.hydrogen-music.org/



Hydrogen インストール
# wget http://nchc.dl.sourceforge.net/sourceforge/hydrogen/hydrogen-0.9.3.tar.gz

# tar xzf hydrogen-0.9.3.tar.gz
# cd hydrogen-0.9.3
# ./configure
...[snip]...
configure: WARNING: QTDIR must be properly set.
 * Searching for Qt library
   |-> searching QT in /usr/share/qt *** Not found ***
   |-> searching QT in /usr/share/qt3 *** Not found ***
   |-> searching QT in /usr/lib/qt3 *** Not found ***
   |-> searching QT in /usr/lib/qt-3.1 *** Not found ***
configure: WARNING: Qt library not found. Maybe QTDIR isn't properly set.
checking for qmake... no
configure: error: qmake not found in current PATH. Maybe QT development environment isn't available (qt3-devel).
qmake がないと怒られる。
PATH を確認。通ってなかったので、PATH を設定。
PATH=$PATH:/usr/lib/qt-3.3/bin/

ついでに、.configure ファイルを修正。上記エラーに qt-3.3 がないため。
 3255行         for X in /usr/share/qt /usr/share/qt3 /usr/lib/qt3 /usr/lib/qt-3.1; do
  ↓
 3255行         for X in /usr/share/qt /usr/share/qt3 /usr/lib/qt3 /usr/lib/qt-3.3; do
再度 ./configure 実行。
# ./configure
 * Searching for Qt library
   |-> searching QT in /usr/share/qt *** Not found ***
   |-> searching QT in /usr/share/qt3 *** Not found ***
   |-> searching QT in /usr/lib/qt3 *** Not found ***
   |-> searching QT in /usr/lib/qt-3.3 *** Found ***
checking for qmake... /usr/lib/qt-3.3/bin/qmake
...[snip]...
configure: error: "sndfile library not found. Website: http://www.mega-nerd.com/libsndfile/"
sndfile library not found と怒られる。

http://www.mega-nerd.com/libsndfile/ より sndfile を DL。
# cd ..
# wget http://www.mega-nerd.com/libsndfile/libsndfile-1.0.17.tar.gz
# tar xzf libsndfile-1.0.17.tar.gz
# cd libsndfile-1.0.17
# ./configure
# make && make install
再再度 hydrogen の ./configure 実行。
# cd ../hydrogen-0.9.3
# ./configure
configure: error: "FLAC++ library not found. FLAC website: http://flac.sourceforge.net"
FLAC++ library not found と怒られる。

yum より FLAC++ library を DL。
# yum -y install flac flac-devel
再再再度 hydrogen の ./configure 実行。
# ./configure
# make && make install
make[1]: Entering directory `/root/work/pkg/hydrogen-0.9.3'
g++ -c -pipe -g -w -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -Isrc -I/include -o src/tinystr.o src/lib/xml/tinystr.cpp
src/lib/xml/tinyxml.h:828: error: extra qualification 'TiXmlDeclaration::' on member 'TiXmlDeclaration'
make[1]: *** [src/tinystr.o] Error 1
make[1]: Leaving directory `/root/work/pkg/hydrogen-0.9.3'
make: *** [hydrogenPlayer] Error 2
またしてもエラー orz
http://www.hydrogen-music.org/forum/?action=show_thread&fid=5&thread=420&s=&e=
によると
You should try to install hydrogen with the planet ccrma repositories. Add them to you repository list and normaly you should be able to install hydrogen with your package manager.
CCRMA のリポジロリからインストールすると簡単だということで。

CCRMA のリポジトリを yum 配下に追加。
# rpm -Uvh http://ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetccrma/6/i386/planetccrma-repo-1.0-3.fc6.ccrma.noarch.rpm
早速、
# yum -y install hydrogen hydrogen-drumkits
完了 orz