[2.0.4] build failed on midi

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

Oops, I am on Ubuntu Dapper + jack 0.103.

Same error with 2.0.5.

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.