Problems during make unable to build src/midi

Help
2008-12-16
2013-04-24
  • Simon Koelsch
    Simon Koelsch
    2008-12-16

    Hi there,

    I have some problems building wired 0.6 from source.

    First of all I had problems building libportaudio, but getting the latest version of the source helped, like in https://sourceforge.net/forum/forum.php?thread_id=1917952&forum_id=409329 mentioned.
    Maybe it would be possible to include the actual version of libportaudio?

    Second Problem appears during the make of src/midi/ with MidiFile.cpp:

    ####
    ake[3]: Leaving directory `/home/echox/wired-0.6/src/midi/portmidi'
    make[3]: Entering directory `/home/echox/wired-0.6/src/midi'
    g++ -DHAVE_CONFIG_H -I. -I../../src/include   -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_
    LARGE_FILES -D__WXGTK__ -pthread -I../gui -I../plugins -I../fileloader -I../sequencer -I../redist -I../engine -I../mixer -I../audio -I../midi
    /portmidi/pm_common -I../midi/portmidi/porttime -I../editmidi -I../undo -I../libs/WiredWidgets/src -I../save -I../midi -I../midi/portmidi/pm_
    common -I../midi/portmidi/porttime   -Os -MT MidiFile.o -MD -MP -MF .deps/MidiFile.Tpo -c -o MidiFile.o MidiFile.cpp
    MidiFile.cpp: In member function ‘size_t MidiTrack::WriteChunk(wxFile&)’:
    MidiFile.cpp:262: error: ‘stable_sort’ was not declared in this scope
    MidiFile.cpp: In member function ‘std::vector<MidiFileEvent*, std::allocator<MidiFileEvent*> > MidiTrack::GetMidiEvents()’:
    MidiFile.cpp:391: error: ‘stable_sort’ was not declared in this scope
    make[3]: *** [MidiFile.o] Error 1
    make[3]: Leaving directory `/home/echox/wired-0.6/src/midi'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/echox/wired-0.6/src/midi'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/echox/wired-0.6/src'
    make: *** [all-recursive] Error 1
    ####

    Here is the output of configure:
    -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-

      Configuration summary :

        Version : ..................... 0.6
        Enable debugging : ............ No
        Enable optimizations : ........ Yes

       Tools :

         Compiler is GCC : ............. yes
         GCC major version : ........... 4

       Portaudio options :

        Jack : ........................ yes
        OSS : ......................... yes
        ALSA : ........................ yes

    WARNING: If you already have Portaudio in your System, it may be replaced by this one !

      Extra tools required :

        wxWidgets : ................... 2.8.9
        libsamplerate : ............... 0.1.4
        libsndfile : .................. 1.0.17

      Installation directories :
        Wired plugins directory: .............. /usr/local/lib/wired
        Wired binary directory : .............. /usr/local/bin
        Wired data directory   : .............. /usr/local/share
        Wired conf directory   : .............. /usr/local/etc/wired

    Any suggestions?
    Do you need more information?

     
    • Doomsday
      Doomsday
      2009-01-17

      Hello Simon,

      Can you add the following line on the top:

      #include <algorithm>

      And recompile the sources with "make"...

      Thanks for the feedback

       
    • Doomsday
      Doomsday
      2009-01-17

      Hmm i'm thinking..

      Which distro are you using ?

      You need STL flags or STL libraries. Maybe you're missing a stl-related package.

       
    • Doomsday
      Doomsday
      2009-02-17

      It was a problem with GCC 4.3.

      You can successfully compile Wired with new changes (revision > 1519)