[GtkGLExt] [mmagallo debian org: Re: Using gtkglextmm widgets and libglademm]
- From: Mitchell Laks <mlaks post harvard edu>
- To: gtkglext-list gnome org
- Subject: [GtkGLExt] [mmagallo debian org: Re: Using gtkglextmm widgets and libglademm]
- Date: Sun, 10 Feb 2008 15:58:34 -0500
Hi,
Is anyone able to get this example application working?
I have trouble figuring out how to get it to compile. I am not
too swift with C++ :).
There was an error message
make
gcc -g -Wall `pkg-config --cflags gtkmm-2.4 libglademm-2.4 gtkglextmm-1.2` -c simpleGLwithGlade.cpp
In file included from simpleGLwithGlade.cpp:11:
simpleGLscene.h:28: error: expected class-name before ‘{’ token
make: *** [simpleGLwithGlade.o] Error 1
So I edited the file and changed
the lines in the simpleGLscene.h file:
class SimpleGLScene : public Gtk::DrawingArea,
public Gtk::GL::Widget
to
class SimpleGLScene : public Gtk::DrawingArea,
public Gtk::GL::Widget<SimpleGLScene>
now I get the following errors
make
/bin/rm -f .depend
gcc -MM -g -Wall `pkg-config --cflags gtkmm-2.4 libglademm-2.4 gtkglextmm-1.2` simpleGLwithGlade.cpp simpleGLscene.cpp glConfigUtil.cpp > .depend
gcc -g -Wall `pkg-config --cflags gtkmm-2.4 libglademm-2.4 gtkglextmm-1.2` -c simpleGLwithGlade.cpp
gcc -g -Wall `pkg-config --cflags gtkmm-2.4 libglademm-2.4 gtkglextmm-1.2` -c simpleGLscene.cpp
simpleGLscene.cpp: In constructor ‘SimpleGLScene::SimpleGLScene(GtkDrawingArea*, const Glib::RefPtr<Gnome::Glade::Xml>&)’:
simpleGLscene.cpp:18: error: expected class-name before ‘(’ token
simpleGLscene.cpp:31: error: ‘class Glib::RefPtr<Gdk::GL::Config>’ has no member named ‘is_null’
simpleGLscene.cpp:39: error: ‘class Glib::RefPtr<Gdk::GL::Config>’ has no member named ‘is_null’
make: *** [simpleGLscene.o] Error 1
any idea what we need to do next?
Thank you,
Mitchell
************************
From: "Marcelo E. Magallon" <mmagallo debian org>
User-Agent: Mutt/1.5.6+20040907i
Date: Sat, 29 Jan 2005 08:15:39 -0600
To: gtkglext-list gnome org
Subject: Re: [GtkGLExt] Using gtkglextmm widgets and libglademm
On Sat, Jan 22, 2005 at 09:51:07PM +0100, Miguel Angel Polo wrote:
> I want to know the correct way to load a widget (derived from
> Gtk::GL::DrawingArea) from my .glade file
I'm attaching something a former colleague of mine sent me a few days
ago. I'll check it in in the next few days once I've gone thru it.
It's unreviewed at the moment.
Marcelo
----- End forwarded message -----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]