[2.0.4] build failed on midi

3 replies [Last post]
skogkatt
User offline. Last seen 6 years 35 weeks ago. Offline
Joined: 2006-11-10
Posts:

Hi, here is : http://perso.orange.fr/uncensored.assault/linux/midi_error.txt

skogkatt
User offline. Last seen 6 years 35 weeks ago. Offline
Joined: 2006-11-10
Posts:

Oops, I am on Ubuntu Dapper + jack 0.103.

skogkatt
User offline. Last seen 6 years 35 weeks ago. Offline
Joined: 2006-11-10
Posts:

Same error with 2.0.5.

paul
paul's picture
User offline. Last seen 4 hours 35 min ago. Offline
Joined: 2006-03-16
Posts:

quoting from ardour-users (why aren't you subscribed?):
---------------------------------------------------
On Fri, 2007-08-03 at 14:11 -0500, Brett Clark wrote:
> When compiling 2.0.5 from the ardour-2.0.5.tar.bz2 tarball:
>
> [brett@daw ardour-2.0.5]$ scons FFT_ANALYSIS=1
> ...
> ....
> g++ -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -pipe -DARCH_X86 -mmmx -march=i686 -msse -mfpmath=sse -DUSE_XMMINTRIN -DBUILD_SSE_OPTIMIZATIONS -Wall -DHAVE_LIBLO -DENABLE_NLS -DWITH_ALSA -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DLIBSIGC_DISABLE_DEPRECATED -Woverloaded-virtual -fPIC -Ilibs/pbd -I/usr/include/glib-2.0 -Ilibs/sigc++2 -I/usr/lib/glib-2.0/include -Ilibs/midi++2 -I/usr/include/libxml2 -c -o libs/midi++2/alsa_sequencer_midiport.os libs/midi++2/alsa_sequencer_midiport.cc
> libs/midi++2/alsa_sequencer_midiport.cc: In member function âint MIDI::ALSA_SequencerMidiPort::CreatePorts(MIDI::PortRequest&)â:
> libs/midi++2/alsa_sequencer_midiport.cc:175: error: âSND_SEQ_PORT_TYPE_SOFTWAREâ was not declared in this scope
> scons: *** [libs/midi++2/alsa_sequencer_midiport.os] Error 1
> scons: building terminated because of errors.
>
>
> Is there something else i need for compiling this? I compiled 2.0.3 with the same option (FFT_ANALYSIS=1) on this machine w/o any issues.

sorry about this. it uses some preprocessor symbols that are defined by
newer ALSA. to get it compiling, go to that line and make it look like
this:

        if (0 <= (err = snd_seq_create_simple_port (seq, req.tagname, caps, 
                                                    (SND_SEQ_PORT_TYPE_MIDI_GENERIC)))) {

then it will work without you having to upgrade ALSA. I will also remove
this stuff, because it really doesn't seem to do anything for us.