GNOME Bugzilla – Bug 612659
Can't compile GParted: 'class GParted::Win_GParted' has no member named 'set_default_icon_name'
Last modified: 2010-04-23 21:53:25 UTC
Created attachment 155920 [details] Compilation log I can't compile GParted. I have all deps. Distro: openSuSE 10.2, Linux Kernel 2.6.28.2,0 parted version 1.7.1, logs in attachment. ... Win_GParted.cc:74: error: 'class GParted::Win_GParted' has no member named 'set_default_icon_name' ... gcc version: gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. gtk2 version: 2.10.6
GParted version 0.4.0 is quite old. I suggest you try the latest (currently 0.5.2) and then see how that goes.
Created attachment 156029 [details] Same error with 0.5.2 source code I think, Win_GParted.cc has one or two strings of code that GCC 4.1.2 is not understand.
The method "set_default_icon_name()" comes from the gtkmm library. http://library.gnome.org/devel/gtkmm/stable/classGtk_1_1Window.html#a533d03e9b92d8ccd142ab3a44005cae4 According to the documentation, this method has been available since gtkmm version 2.6. Which gtkmm version are you using? Do you have the libgtkmm development libraries installed? As a different approach to this problem, you might consider that we recommend using GParted from live media. This has the advantage that all of the features of GParted will be available, and none of the file systems will be mounted when booting from GParted Live.
gtkmm-2.4 - you can see it in my attachment. How much money I need to donate to add support of gtkmm-2.4 in GParted? If configure is done without errors, I want see compiled program or why it can't be compiled
The version numbering for gtkmm is a bit different than one would expect. After version 2.4, I believe the application programming interface was kept the same but an additional version number was added. Here is what the version for gtkmm-2.4 is on my system: $ dpkg -l | grep gtkmm ii libgtkmm-2.4-1c2a 1:2.12.5-2 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtkmm-2.4-dev 1:2.12.5-2 C++ wrappers for GTK+ 2.4 (development files The version number is read as gtkmm version 2.14-5.2. It is these last few numbers that are important since all of these version conform to the gtkmm 2.4 API. So, what is the version of gtkmm that you are using?
Closing this bug as INCOMPLETE. If you are able to answer the question in comment #5, then please feel free to re-open this bug and provide additional information.