FTBS with new QT 4.7
hydrogen fails to build from source with the new release of the Qt4 libraries.
The following patch fixes this issue:
Origin: Ubuntu
Author: David Sugar <david.sugar@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/601195
Description: Fix FTBFS due to an ambiguous overloaded QString object
constructor.
Forwarded: no
---
libs/hydrogen/src/song.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- hydrogen-0.9.4.1.orig/libs/hydrogen/src/song.cpp
+++ hydrogen-0.9.4.1/libs/hydrogen/src/song.cpp
@@ -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 );
The following patch fixes this issue:
Origin: Ubuntu
Author: David Sugar <david.sugar@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/601195
Description: Fix FTBFS due to an ambiguous overloaded QString object
constructor.
Forwarded: no
---
libs/hydrogen/src/song.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- hydrogen-0.9.4.1.orig/libs/hydrogen/src/song.cpp
+++ hydrogen-0.9.4.1/libs/hydrogen/src/song.cpp
@@ -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 );
Leave a comment