reduz / zytrax

Easy to use, tracker-inspired music sequencer
MIT License
221 stars 14 forks source link

build fails #7

Closed trebmuh closed 5 years ago

trebmuh commented 5 years ago

Trying to build on a Debian Linux Stretch, it fails with:

g++ -o gui/key_bindings.o -c -g3 -DRTAUDIO_ENABLED -DRTMIDI_ENABLED -DFREEDESKTOP_ENABLED -DVST2_ENABLED -D__LINUX_PULSE__ -D__LINUX_ALSA__ -pthread -D_REENTRANT -Iglobals -Igui -I. -I/usr/include/gtkmm-3.0 -I/usr/lib/x86_64-linux-gnu/gtkmm-3.0/include -I/usr/include/atkmm-1.6 -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/giomm-2.4 -I/usr/lib/x86_64-linux-gnu/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib/x86_64-linux-gnu/pangomm-1.4/include -I/usr/include/cairomm-1.0 -I/usr/lib/x86_64-linux-gnu/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gtk-3.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0/unix-print -I/usr/include/gdkmm-3.0 -I/usr/lib/x86_64-linux-gnu/gdkmm-3.0/include -I/usr/include/alsa gui/key_bindings.cpp
gui/key_bindings.cpp: In member function ‘void KeyBindings::set_action_checked(KeyBindings::KeyBind, bool)’:
gui/key_bindings.cpp:273:67: error: ‘void Gio::SimpleAction::set_state(const Glib::VariantBase&)’ is protected within this context
  actions[p_bind]->set_state(Glib::Variant<bool>::create(p_checked));
                                                                   ^
In file included from /usr/include/giomm-2.4/giomm/actionmap.h:27:0,
                 from /usr/include/giomm-2.4/giomm.h:27,
                 from /usr/include/gtkmm-3.0/gtkmm.h:88,
                 from gui/key_bindings.h:5,
                 from gui/key_bindings.cpp:1:
/usr/include/giomm-2.4/giomm/simpleaction.h:424:8: note: declared protected here
   void set_state(const Glib::VariantBase& value);
        ^~~~~~~~~
gui/key_bindings.cpp: In member function ‘void KeyBindings::set_action_state(KeyBindings::KeyBind, const String&)’:
gui/key_bindings.cpp:284:90: error: ‘void Gio::SimpleAction::set_state(const Glib::VariantBase&)’ is protected within this context
 ]->set_state(Glib::Variant<Glib::ustring>::create(p_state.ascii().get_data()));
                                                                              ^
In file included from /usr/include/giomm-2.4/giomm/actionmap.h:27:0,
                 from /usr/include/giomm-2.4/giomm.h:27,
                 from /usr/include/gtkmm-3.0/gtkmm.h:88,
                 from gui/key_bindings.h:5,
                 from gui/key_bindings.cpp:1:
/usr/include/giomm-2.4/giomm/simpleaction.h:424:8: note: declared protected here
   void set_state(const Glib::VariantBase& value);
        ^~~~~~~~~
scons: *** [gui/key_bindings.o] Error 1
scons: building terminated because of errors.

Any idea welcome.

trebmuh commented 5 years ago

Fixed by @jpcima's #8 patch. Closing here now.