[gtkmm] Newbie question: compiling gtkmm fails; versions tried 2.1.0, 2.0.2, 2.0.0



Greetings, list members.

Could not find any reference to anything similar to my problem
at hand from the FAQ or the list archive, so I figure it's got
something to do with my [lack of] abilities. Here's the descrip-
tion anyway:

I am having trouble compiling gtkmm. Here is what I've got in
the system:

- i686-linux-2.5.0
- egcs-2.91.66
- glib 2.1.4
- gtk+ 2.1.4

First of all, is a more recent compiler required? C runtime
library?

I tried gtkmm versions 2.1.0, 2.0.2 and 2.0.0, but could not
compile any of them. After ./configure, running make ends
as follows:

--<<schnip>>--

make[5]: Entering directory `/mnt/data/root/sw/gtkmm-2.1.0/glib/glibmm'
source='convert.cc' object='convert.lo' libtool=yes \
depfile='.deps/convert.Plo' tmpdepfile='.deps/convert.TPlo' \
depmode=gcc /bin/sh ../../scripts/depcomp \
/bin/sh ../../libtool --mode=compile
g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"glibmm\" -Dglibmm_COMPILATION -DG_DISAB
LE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK
_DISABLE_DEPRECATED  -I../../glib -I../../glib -I../../pango -I../../pango -
I../../atk -I../../atk -I../../gdk -I../../gdk -I../../gtk -I../../gtk -I/us
r/local/lib/sigc++-1.2/include -I/usr/local/include/sigc++-1.2 -I/usr/local/
include/glib-2.0 -I/usr/local/lib/glib-2.0/include -pthread -I/usr/local/inc
lude/glib-2.0 -I/usr/local/lib/glib-2.0/include    -g -O2 -Wall -c -o
convert.lo `test -f 'convert.cc' || echo './'`convert.cc
g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"glibmm\" -Dglibmm_COMPILATION -DG_DISAB
LE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK
_DISABLE_DEPRECATED -I../../glib -I../../glib -I../../pango -I../../pango -I
../../atk -I../../atk -I../../gdk -I../../gdk -I../../gtk -I../../gtk -I/usr
/local/lib/sigc++-1.2/include -I/usr/local/include/sigc++-1.2 -I/usr/local/i
nclude/glib-2.0 -I/usr/local/lib/glib-2.0/include -pthread -I/usr/local/incl
ude/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -Wall -c
convert.cc -Wp,-MD,.deps/convert.TPlo  -fPIC -DPIC -o convert.lo
In file included from ../../glib/glibmm/exception.h:25,
                 from ../../glib/glibmm/error.h:28,
                 from ../../glib/glibmm/convert.h:29,
                 from convert.cc:3:
../../glib/glibmm/ustring.h:532: redefinition of default argument for `class
ValueType'
../../glib/glibmm/ustring.h:528:   original definition appeared here
../../glib/glibmm/ustring.h: In instantiation of
`::Glib::ustring::::Glib::ustring::SequenceToString<char
*,char>::SequenceToString<char *>(char *, char *)':
../../glib/glibmm/ustring.h:727:   instantiated from
`::Glib::ustring::ustring<char *>(char *, char *)'
convert.cc:180:   instantiated from here
../../glib/glibmm/ustring.h:706: new declaration `SequenceToString<char
*,char>::SequenceToString<>(char *, char *)'
../../glib/glibmm/ustring.h:706: ambiguates old declaration
`::Glib::ustring::::Glib::ustring::SequenceToString<char
*,char>::SequenceToString<char *>(char *, char *)'
../../glib/glibmm/ustring.h: In method
`::Glib::ustring::::Glib::ustring::SequenceToString<char
*,char>::SequenceToString<char *>(char *, char *)':
../../glib/glibmm/ustring.h:727:   instantiated from
`::Glib::ustring::ustring<char *>(char *, char *)'
convert.cc:180:   instantiated from here
../../glib/glibmm/ustring.h:706:
`basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>' is not an immediate base class of `SequenceToString<char *,char>'
make[5]: *** [convert.lo] Error 1
make[5]: Leaving directory `/mnt/data/root/sw/gtkmm-2.1.0/glib/glibmm'

--<<schnip>>--


	Jonk (a wannabe C++ coder ;)


---
Quite frankly, I probably _would_ accept it, if it's cleanly done. If only
because of the
fact that it's such a ridiculous thing to do, and thus gets high points on
my "surreality meter".
  -- Linus Torvalds (on Xiafs inclusion in 2.5)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]