[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Re: [gtkmm] Re: Is Gtkmm stable and mature on Win32?
From:       "Murray Cumming" <murrayc () murrayc ! com>
Date:       2004-09-30 7:25:45
Message-ID: 58870.217.10.50.85.1096529145.spork () webmail ! murrayc ! com
[Download RAW message or body]

> The final step was trying to build a simple GUI using Glade. I did so
> and, at first, tried exporting it to C++ code

I advise you not to waste your time with generated code. If you want to do
that, please take it to the glademm list. Please note that glademm is not
libglademm - see the gtkmm manual for more help with libglademm.

[snip]
> g++ -o teste teste.cpp `pkg-config gtkmm-2.4 --cflags --libs`
>
> This gave me the error message: "can't find the 'libglademm.h' include
> file". By invoking pkg-config directly, I could see that there actually
> was no '-I' option for libglademm's include directory. Why is that?

Because libglademm is not part of gtkmm. Try adding libglademm-2.4 to your
pkg-config command. Try looking at other configure.in or configure.ac
files, or reading:
http://www.openismus.com/documents/linux/using_libraries/using_libraries.shtml

[snip]
> However, upon the first
> execution attempt, I got an error saying that I needed to call
> g_type_init() before the call in my main(). I did so, but then I was
> bombarded with tons of CRITICAL errors.

You need a Gtk::Main object. Please read the gtkmm book:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/index.html
and/or look at the libglademm examples (in the libglademm tarball),
instead of blindly trying to throw some code together.

Murray Cumming
murrayc@murrayc.com
www.murrayc.com
www.openismus.com
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic