Skip to Content

scons: building terminated because of errors.

7 replies [Last post]
ib1
Offline
Joined: 04/17/2010

Hi

I've just tried to compile the latest build on ubuntu 8.10 (intrepid) .

I Began to build .

cd /usr/src/hydrogen
scons

name@name-laptop:/usr/src$ sudo svn co http://svn.assembla.com/svn/hydrogen/trunk hydrogen
Checked out revision 730.
name@name-laptop:/usr/src$ cd /usr/src/hydrogen
name@name-laptop:/usr/src/hydrogen$ sudo scons
scons: Reading SConscript files ...
Checking for C header file sndfile.h... (cached) yes
Checking for C header file alsa/asoundlib.h... (cached) yes
Checking for C header file jack/jack.h... (cached) yes
Checking for C header file zlib.h... (cached) yes
Checking for C header file libtar.h... (cached) yes
Checking for C header file lrdf.h... (cached) yes
Checking for C header file FLAC/all.h... (cached) yes

=================================================================
Hydrogen build script

Revision: 730
Platform: linux2
Release build
Prefix: /usr/local
Destdir:
=================================================================
Feature Overview:

lash: enabled
oss: enabled
alsa: enabled
jack: enabled
libarchive: disabled (using libtar instead)
portaudio: disabled
portmidi: disabled

=================================================================

scons: warning: QTDIR variable is not defined, using moc executable as a hint (QTDIR=/usr)
File "/usr/src/hydrogen/qt4.py", line 207, in _detect

scons: warning: QTDIR variable is not defined, using moc executable as a hint (QTDIR=/usr)
File "/usr/src/hydrogen/qt4.py", line 207, in _detect
scons: done reading SConscript files.
scons: Building targets ...
g++ -o libs/hydrogen/src/preferences.o -c -O3 -fomit-frame-pointer -funroll-loops -DOSS_SUPPORT -DALSA_SUPPORT -DJACK_SUPPORT -DLASH_SUPPORT -DLRDF_SUPPORT -DFLAC_SUPPORT -DLADSPA_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -I/usr/lib/lash-1.0 -I. -Igui/src -I3rdparty/install/include -Ilibs/hydrogen/include -I/usr/include/lash-1.0 -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui libs/hydrogen/src/preferences.cpp
libs/hydrogen/src/preferences.cpp: In constructor ?H2Core::Preferences::Preferences()?:
libs/hydrogen/src/preferences.cpp:110: error: ?qStringPath? was not declared in this scope
scons: *** [libs/hydrogen/src/preferences.o] Error 1
scons: building terminated because of errors.
name@name-laptop:/usr/src/hydrogen$

I Didn't continue and enter

su -c "scons install"

because of the error message

mauser
Offline
Joined: 03/30/2010

Hi,

sorry, i forgot to delete a line when i was editing a file this morning. It seems to be not wise to code so early in the morning :) It should be fixed now, just run "svn update".

ib1
Offline
Joined: 04/17/2010

ok thanks for that :-)

jonobo
Offline
Joined: 04/17/2010

Hi,

i had the same error on Feb 13 13:13cet *sic* with the package downloaded from here:
http://freefr.dl.sourceforge.net/sourceforge/hydrogen/hydrogen-0.9.4-bet...

So i guess, i try to get the svn-version (i am not too familiar with all this compiling, but i am gonna make it somehow).

mauser
Offline
Joined: 03/30/2010

hi,

you should try beta3 (on SF)!

jonobo
Offline
Joined: 04/17/2010

Hi,

thanks to your great work and the holy spaghetti-monster i got it running right now.

I compiled from svn, Hydrogen 0.9.4-svn789.

It works and i got sound through JACK ;)

But until now i could not compile it with lash/portaudio/portmidi-support, that always gave me strange error-messages like this one:
[i]
libs/hydrogen/src/IO/PortAudioDriver.h:65: error: ISO C++ forbids declaration of ?PortAudioStream? with no type
libs/hydrogen/src/IO/PortAudioDriver.h:65: error: expected ?;? before ?*? token
libs/hydrogen/src/hydrogen.cpp: In function ?int H2Core::audioEngine_updateNoteQueue(unsigned int)?:
libs/hydrogen/src/hydrogen.cpp:1035: warning: converting to ?int? from ?float?
libs/hydrogen/src/hydrogen.cpp: In member function ?void H2Core::Hydrogen::addRealtimeNote(int, float, float, float, float, bool)?:
libs/hydrogen/src/hydrogen.cpp:1840: warning: converting to ?unsigned int? from ?float?
libs/hydrogen/src/hydrogen.cpp: In member function ?void H2Core::Hydrogen::handleBeatCounter()?:
libs/hydrogen/src/hydrogen.cpp:2755: warning: converting to ?long unsigned int? from ?double?
libs/hydrogen/src/hydrogen.cpp:2761: warning: converting to ?long unsigned int? from ?double?
libs/hydrogen/src/hydrogen.cpp:2769: warning: converting to ?int? from ?float?
libs/hydrogen/include/hydrogen/instrument.h: At global scope:
libs/hydrogen/include/hydrogen/instrument.h:129: warning: inline function ?H2Core::InstrumentLayer* H2Core::Instrument::get_layer(int)? used but never defined
scons: *** [libs/hydrogen/src/hydrogen.o] Error 1
scons: building terminated because of errors.
[/i]

I documented the whole process over here:
http://ooommm.org/sudelwiki/index.php?title=Get_hydrogen_running_with_new_JACK_version_on_Ubuntu_Feisty_Fawn_7.04#Updating_Hydrogen

Am gonna try with "scons lash=1 portaudio=0 portmidi=0" again, later.

Thanks for the cool program ;)

mauser
Offline
Joined: 03/30/2010

Hi!

You need to patch hydrogen to use the new portaudio libraries (v19).
But thats very easy, the patches are in the svn repository.
You have to execute the following commands before using scons:

patch -p0 < patches/portaudio.patch
patch -p0 < patches/portmidi.patch

Please run svn update before applying the patches, i've changed something in the portaudio.patch right now.
Btw. have you installed portaudio v19 on your own? Or is it shipped with Ubuntu Feisty Fawn?

An existing tutorial is here: http://trac.assembla.com/hydrogen/wiki/development%3Aqt4compile

jonobo
Offline
Joined: 04/17/2010

Hi mauser,

thanks for the answer and the quick update in the wiki ;)

Actually i must admit that i don't even know what portaudio/portmidi is, or what it would be useful for, for me as a user - as far as i understood from the portaudio-website it is an API that makes it easier for programmers to "port" audio-programs to different platforms, correct me if i'm wrong.

So, i don't really need it i guess, i was just curious.

Ubuntu Feisty Fawn 7.04 has libportaudio-dev 18.1-4 in the repositories, which i installed.
Sorry, i was wrong, in addition there is a package called "portaudio19-dev" version "19+svn20060825-1", which is viewable in my synaptic-package manager, but not installed right now - whatever.

I guess i would need the newest version from their website anyway to compile it right - but that is going to far for now, at least as long as i don't get any benefits from portaudio.

So, i am happy for now, if i encounter any problems i'll post again, but now i gotta get back to THE BEAT ;)

Thanks again for all the work you put in this program, it is simply a wonderful application and i hope it will continue for a loooooooooong time ;)