The Inkscape-trunk PPA package fails to build with glib-2.31 in Ubuntu Precise. It seems that the G_DIR_SEPARATOR and g_get_current_dir symbols were removed from glib in this version. I haven't yet found any documentation for the change.
dir-util.cpp: In function 'std::string sp_relative_path_from_path(const string&, const string&)':
dir-util.cpp:21:42: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:27:36: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp: In function 'const char* sp_extension_from_path(const char*)':
dir-util.cpp:54:31: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp: At global scope:
dir-util.cpp:63:39: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp: In function 'char* inkscape_rel2abs(const char*, const char*, char*, size_t)':
dir-util.cpp:74:16: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:95:18: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:100:22: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:111:20: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:119:33: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:129:33: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:141:27: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp: In function 'char* inkscape_abs2rel(const char*, const char*, char*, size_t)':
dir-util.cpp:160:18: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:177:20: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:179:33: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:191:32: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:196:20: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp: In function 'gchar* prepend_current_dir_if_relative(const gchar*)':
dir-util.cpp:230:33: error: 'g_get_current_dir' was not declared in this scope
The Inkscape-trunk PPA package fails to build with glib-2.31 in Ubuntu Precise. It seems that the G_DIR_SEPARATOR and g_get_current_dir symbols were removed from glib in this version. I haven't yet found any documentation for the change.
dir-util.cpp: In function 'std::string sp_relative_ path_from_ path(const string&, const string&)': from_path( const char*)': rel2abs( const char*, const char*, char*, size_t)': cpp:100: 22: error: 'G_DIR_SEPARATOR' was not declared in this scope cpp:111: 20: error: 'G_DIR_SEPARATOR' was not declared in this scope cpp:119: 33: error: 'G_DIR_SEPARATOR' was not declared in this scope cpp:129: 33: error: 'G_DIR_SEPARATOR' was not declared in this scope cpp:141: 27: error: 'G_DIR_SEPARATOR' was not declared in this scope abs2rel( const char*, const char*, char*, size_t)': cpp:160: 18: error: 'G_DIR_SEPARATOR' was not declared in this scope cpp:177: 20: error: 'G_DIR_SEPARATOR' was not declared in this scope cpp:179: 33: error: 'G_DIR_SEPARATOR' was not declared in this scope cpp:191: 32: error: 'G_DIR_SEPARATOR' was not declared in this scope cpp:196: 20: error: 'G_DIR_SEPARATOR' was not declared in this scope current_ dir_if_ relative( const gchar*)': cpp:230: 33: error: 'g_get_current_dir' was not declared in this scope
dir-util.cpp:21:42: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:27:36: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp: In function 'const char* sp_extension_
dir-util.cpp:54:31: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp: At global scope:
dir-util.cpp:63:39: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp: In function 'char* inkscape_
dir-util.cpp:74:16: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.cpp:95:18: error: 'G_DIR_SEPARATOR' was not declared in this scope
dir-util.
dir-util.
dir-util.
dir-util.
dir-util.
dir-util.cpp: In function 'char* inkscape_
dir-util.
dir-util.
dir-util.
dir-util.
dir-util.
dir-util.cpp: In function 'gchar* prepend_
dir-util.