View Issue Details

IDProjectCategoryView StatusLast Update
0004506ardourbugspublic2015-09-18 15:14
Reportercolinf Assigned Tocth103  
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionfixed 
Summary0004506: Build fails with gtkmm older than 2.28
Descriptionr10788 uses an overloaded version of Glib::build_filename() that, according to http://developer.gnome.org/glibmm/unstable/group__MiscUtils.html, was only introduced in libglibmm 2.28.

I'm using Ubuntu 10.04, where the libglibmm version is still 2.24.2-0ubuntu1.
Additional InformationTrivial patch attached that I think does the equivalent thing for older glibmm versions.
TagsNo tags attached.

Activities

2011-11-23 10:50

 

older-glibmm.patch (510 bytes)   
Index: libs/ardour/lv2_plugin_lilv.cc
===================================================================
--- libs/ardour/lv2_plugin_lilv.cc	(revision 10790)
+++ libs/ardour/lv2_plugin_lilv.cc	(working copy)
@@ -581,8 +581,10 @@
 	}
 
 	const std::string abs_path = Glib::build_filename(
-		me->_session.plugins_dir(),
-		me->_insert_id.to_s(),
+		Glib::build_filename(
+			me->_session.plugins_dir(),
+			me->_insert_id.to_s()
+		),
 		path);
 
 	const std::string dirname = Glib::path_get_dirname(abs_path);
older-glibmm.patch (510 bytes)   

colinf

2011-11-23 10:52

updater   ~0012184

Incidentally, the build failure looks like:

../libs/ardour/lv2_plugin_lilv.cc: In static member function ‘static char* ARDOUR::LV2Plugin::lv2_state_make_path(void*, const char*)’:
../libs/ardour/lv2_plugin_lilv.cc:586:7: error: no matching function for call to ‘build_filename(std::string, std::string, const char*&)’
/usr/include/glibmm-2.4/glibmm/miscutils.h:244:13: note: candidates are: std::string Glib::build_filename(const Glib::ArrayHandle<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Glib::Container_Helpers::TypeTraits<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)
/usr/include/glibmm-2.4/glibmm/miscutils.h:253:13: note: std::string Glib::build_filename(const std::string&, const std::string&)

cth103

2011-11-23 13:27

administrator   ~0012186

Applied to SVN 10791. Thanks!

colinf

2015-09-18 15:14

updater   ~0017268

Closing old issues reported by me: these have long since been fixed.

Issue History

Date Modified Username Field Change
2011-11-23 10:50 colinf New Issue
2011-11-23 10:50 colinf File Added: older-glibmm.patch
2011-11-23 10:52 colinf Note Added: 0012184
2011-11-23 13:27 cth103 cost => 0.00
2011-11-23 13:27 cth103 Note Added: 0012186
2011-11-23 13:27 cth103 Status new => resolved
2011-11-23 13:27 cth103 Resolution open => fixed
2011-11-23 13:27 cth103 Assigned To => cth103
2015-09-18 15:14 colinf Note Added: 0017268
2015-09-18 15:14 colinf Status resolved => closed