You are not logged in.

#1 2013-05-15 03:15:18

kenny3794
Member
Registered: 2013-05-04
Posts: 20

[SOLVED] Unable to build Grub-customizer

Seems to be a problem with gtkmm... anyone else seen this problem and have a solution?   pacaur output follows...

[ 40%] Building CXX object CMakeFiles/grub-customizer.dir/src/Controller/GLib/ThreadController.cpp.o
In file included from /usr/include/gtkmm-2.4/gtkmm/main.h:33:0,
                 from /tmp/pacaurtmp-kjernigan/grub-customizer/src/grub-customizer-3.0.4/src/Controller/GLib/ThreadController.h:24,
                 from /tmp/pacaurtmp-kjernigan/grub-customizer/src/grub-customizer-3.0.4/src/Controller/GLib/ThreadController.cpp:19:
/usr/include/gdkmm-2.4/gdkmm/types.h:92:7: error: ‘Value’ is not a class template
 class Value<Gdk::ByteOrder> : public Glib::Value_Enum<Gdk::ByteOrder>
       ^
/usr/include/gdkmm-2.4/gdkmm/types.h:92:54: error: expected template-name before ‘<’ token
 class Value<Gdk::ByteOrder> : public Glib::Value_Enum<Gdk::ByteOrder>
                                                      ^
/usr/include/gdkmm-2.4/gdkmm/types.h:92:54: error: expected ‘{’ before ‘<’ token
/usr/include/gdkmm-2.4/gdkmm/types.h:92:54: error: expected unqualified-id before ‘<’ token
/usr/include/gdkmm-2.4/gdkmm/types.h:174:7: error: ‘Value’ is not a class template
 class Value<Gdk::ModifierType> : public Glib::Value_Flags<Gdk::ModifierType>
       ^
/usr/include/gdkmm-2.4/gdkmm/types.h:174:30: error: ‘Glib::Value’ is not a template type
 class Value<Gdk::ModifierType> : public Glib::Value_Flags<Gdk::ModifierType>
                              ^
/usr/include/gdkmm-2.4/gdkmm/types.h:174:58: error: expected template-name before ‘<’ token
 class Value<Gdk::ModifierType> : public Glib::Value_Flags<Gdk::ModifierType>
                                                          ^
/usr/include/gdkmm-2.4/gdkmm/types.h:207:7: error: ‘Value’ is not a class template
 class Value<Gdk::Status> : public Glib::Value_Enum<Gdk::Status>
       ^
/usr/include/gdkmm-2.4/gdkmm/types.h:207:24: error: ‘Glib::Value’ is not a template type
 class Value<Gdk::Status> : public Glib::Value_Enum<Gdk::Status>
                        ^
/usr/include/gdkmm-2.4/gdkmm/types.h:207:51: error: expected template-name before ‘<’ token
 class Value<Gdk::Status> : public Glib::Value_Enum<Gdk::Status>
                                                   ^
/usr/include/gdkmm-2.4/gdkmm/types.h:274:7: error: ‘Value’ is not a class template
 class Value<Gdk::InputCondition> : public Glib::Value_Flags<Gdk::InputCondition>
       ^
/usr/include/gdkmm-2.4/gdkmm/types.h:274:32: error: ‘Glib::Value’ is not a template type
 class Value<Gdk::InputCondition> : public Glib::Value_Flags<Gdk::InputCondition>
                                ^
/usr/include/gdkmm-2.4/gdkmm/types.h:274:60: error: expected template-name before ‘<’ token
 class Value<Gdk::InputCondition> : public Glib::Value_Flags<Gdk::InputCondition>
                                                            ^
/usr/include/gdkmm-2.4/gdkmm/types.h:357:9: error: ‘ArrayHandle’ in namespace ‘Glib’ does not name a type
 typedef Glib::ArrayHandle<std::string,AtomStringTraits> ArrayHandle_AtomString;
         ^
/usr/include/gdkmm-2.4/gdkmm/types.h:358:9: error: ‘ListHandle’ in namespace ‘Glib’ does not name a type
 typedef Glib::ListHandle<std::string,AtomStringTraits> ListHandle_AtomString;
         ^
In file included from /tmp/pacaurtmp-kjernigan/grub-customizer/src/grub-customizer-3.0.4/src/Controller/GLib/ThreadController.h:24:0,
                 from /tmp/pacaurtmp-kjernigan/grub-customizer/src/grub-customizer-3.0.4/src/Controller/GLib/ThreadController.cpp:19:
/usr/include/gtkmm-2.4/gtkmm/main.h:151:39: error: ‘Glib::OptionContext’ has not been declared
   Main(int& argc, char**& argv, Glib::OptionContext& option_context);
                                       ^
/usr/include/gtkmm-2.4/gtkmm/main.h:204:42: error: ‘Glib::OptionContext’ has not been declared
   static void add_gtk_option_group(Glib::OptionContext& option_context, bool open_default_display = true);
                                          ^
make[2]: *** [CMakeFiles/grub-customizer.dir/src/Controller/GLib/ThreadController.cpp.o] Error 1
make[1]: *** [CMakeFiles/grub-customizer.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

According to the AUR repository, I have all dependecies installed.  Any thoughts?


***********************************************
Update: 

Fixed this by downgrading gtkmm from version 2.24.3-1 to version 2.24.2-2.  From there, the build worked.

Last edited by kenny3794 (2013-05-18 03:46:02)

Offline

#2 2013-05-21 03:09:46

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 3,437
Website

Re: [SOLVED] Unable to build Grub-customizer

For the record, "downgrading" is the actual fix to this problem. Apparently, gtkmm-2.24.3 is broken upstream: https://bugzilla.gnome.org/show_bug.cgi?id=697835

Offline

Board footer

Powered by FluxBB