Package: hydrogen
Severity: normal
Tags: patch upstream


hydrogen fails to build on experimental with the latest Qt 4.7.

g++ -o libs/hydrogen/src/song.o -c -O3 -fomit-frame-pointer -funroll-loops -g 
-I. -Igui/src -I3rdparty/install/include -Ilibs/hydrogen/include 
-I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui 
-I/usr/include/lash-1.0 -I/usr/include/alsa libs/hydrogen/src/song.cpp
libs/hydrogen/src/song.cpp: In static member function 'static H2Core::Song* 
libs/hydrogen/src/song.cpp:144: error: call of overloaded 'QString(int)' is 
/usr/include/qt4/QtCore/qstring.h:428: note: candidates are: 
QString::QString(const QByteArray&)
/usr/include/qt4/QtCore/qstring.h:426: note:                 
QString::QString(const char*)
/usr/include/qt4/QtCore/qstring.h:727: note:                 
QString::QString(const QString&)
/usr/include/qt4/QtCore/qstring.h:106: note:                 
/usr/include/qt4/QtCore/qstring.h:105: note:                 
QString::QString(const QChar*)
scons: *** [libs/hydrogen/src/song.o] Error 1
scons: building terminated because of errors.
make: *** [debian/stamp-scons-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
I: unmounting dev/pts filesystem
I: unmounting proc filesystem

The following patch solves this issue:

Origin: Ubuntu
Author: David Sugar <>
Description: Fix FTBFS due to an ambiguous overloaded QString object
 libs/hydrogen/src/song.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- hydrogen-
+++ hydrogen-
@@ -141,7 +141,7 @@ Song* Song::get_default_song(){
                song->set_swing_factor( 0.0 );
                InstrumentList* pList = new InstrumentList();
-               Instrument *pNewInstr = new Instrument(QString( 0 ), "New 
instrument", new ADSR());
+               Instrument *pNewInstr = new Instrument(QString( "" ), "New 
instrument", new ADSR());
                pList->add( pNewInstr );
                song->set_instrument_list( pList );

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

pkg-multimedia-maintainers mailing list

Reply via email to