Menu

#4 Can't build demos or examples in ubuntu

open
nobody
None
5
2011-03-14
2011-03-14
Josh
No

I can't seem to build the demos or the examples which I'm trying to use to figure out how the library works. It seems that gtkmm includes aren't being passed to the compiler. I get the following when building papyrus-demo (below, clipped). I tried by setting CFLAGS=`pkg-config --cflags gtkmm-2.4`, also for CXXFLAGS, and by passing CFLAGS and CXXFLAGS into make... none of which worked. I'm not too familiar with automake so I'm not sure if I can add something to one of the .am files and run ./autogen to fix this.

demowindow.cc:24:24: error: gtkmm/main.h: No such file or directory
demowindow.cc:25:36: error: gtkmm/cellrenderertext.h: No such file or directory
demowindow.cc:26:34: error: gtkmm/treeviewcolumn.h: No such file or directory
In file included from demowindow.cc:27:
demowindow.h:23:26: error: gtkmm/window.h: No such file or directory
demowindow.h:24:28: error: gtkmm/notebook.h: No such file or directory
demowindow.h:25:23: error: gtkmm/box.h: No such file or directory
demowindow.h:27:29: error: gtkmm/treestore.h: No such file or directory
demowindow.h:28:28: error: gtkmm/treeview.h: No such file or directory
In file included from demowindow.h:29,
from demowindow.cc:27:
textwidget.h:25:34: error: gtkmm/scrolledwindow.h: No such file or directory
textwidget.h:26:28: error: gtkmm/textview.h: No such file or directory
In file included from demowindow.h:29,
from demowindow.cc:27:
textwidget.h:29: error: ‘Gtk’ has not been declared

Discussion


Log in to post a comment.