Originally Posted by
samjh
Have you got the right compiler flags? (Assuming that the make file is yours.)
What does this command show?
Code:
pkg-config --cflags --libs gtkmm-2.4
Because those are the flags you need to compile gtkmm programs.
As for your include headers, #include <gtkmm.h> is the correct one if you're using the right compiler flags. It looks like you mightn't have read the documentation
here.
Actually, the package is not mine.. I think the guy who made this package was a newbie like me. I've read so much documentation over the past few weeks it's making my head ache.. Like I said, I'm just starting think to know what I'm doing, so this make me really dangerous.
Your right that I don't have the correct compiler flags...
I fixed the problem and I'm moving on to the next...
I'm having a similar issue with gtkglmm.h
The thing that's different is I need add multiple sources to the CXXFLAGS in the src/Makefile.am file. I found some info on how to do that.
Actually, I think I just had a lightbulb go on has far as far whats going on with PKG_CHECK_MODULES in the configure.ac file.
Code:
jonas@Ubuntu4:~/gtkmmocascade$ locate gtkglmm.h
/usr/include/gtkglextmm-1.2/gtkglmm.h
revised configure.ac
Code:
AC_INIT([gtkmmopencascade],[1.0],[blah@blahblah.com])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CXX
AC_CONFIG_HEADERS([config.h])
PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 >= 2.4.0])
PKG_CHECK_MODULES([JTTESTTHEORY], [gtkglextmm-1.2 >= 1.2.0])
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT
revised src/Makefile.am
Code:
bin_PROGRAMS = gtkmmocascade
gtkmmocascade_SOURCES = gtmmocascade.h main.cpp gtmmocascade.cpp MakeBottle.cpp
gtkmmocascade_CXXFLAGS = $(GTKMM_CFLAGS) $(JTTESTTHEORY_CFLAGS)
gtkmmocascade_LDADD = $(GTKMM_LIBS) $(JTTESTTHEORY_LIBS)
I think what I did worked(I think?) but I'm still getting errors....
I need to digest the latest (unless someone sees something obvious)
Code:
jonas@Ubuntu4:~/gtkmmocascade$ make
make all-recursive
make[1]: Entering directory `/home/jonas/gtkmmocascade'
Making all in src
make[2]: Entering directory `/home/jonas/gtkmmocascade/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/atk-1.0 -I/usr/include/gtkglextmm-1.2 -I/usr/lib/gtkglextmm-1.2/include -I/usr/include/gtkglext-1.0 -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/lib/gtkglext-1.0/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/cairomm-1.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/atk-1.0 -I/usr/include/atkmm-1.6 -g -O2 -MT gtkmmocascade-main.o -MD -MP -MF ".deps/gtkmmocascade-main.Tpo" -c -o gtkmmocascade-main.o `test -f 'main.cpp' || echo './'`main.cpp; \
then mv -f ".deps/gtkmmocascade-main.Tpo" ".deps/gtkmmocascade-main.Po"; else rm -f ".deps/gtkmmocascade-main.Tpo"; exit 1; fi
In file included from main.cpp:2:
./gtkmmocascade.h:12:38: error: AIS_InteractiveContext.hxx: No such file or directory
./gtkmmocascade.h:14:24: error: V3d_View.hxx: No such file or directory
./gtkmmocascade.h:15:26: error: V3d_Viewer.hxx: No such file or directory
./gtkmmocascade.h:17:35: error: Geom_BSplineSurface.hxx: No such file or directory
./gtkmmocascade.h:19:37: error: AIS_InteractiveObject.hxx: No such file or directory
./gtkmmocascade.h:20:40: error: Graphic3d_NameOfMaterial.hxx: No such file or directory
./gtkmmocascade.h:22:28: error: TopoDS_Shape.hxx: No such file or directory
./gtkmmocascade.h:23:25: error: AIS_Shape.hxx: No such file or directory
./gtkmmocascade.h:25:43: error: Handle_V3d_OrthographicView.hxx: No such file or directory
Actually same kind of problem
Code:
jonas@Ubuntu4:~/gtkmmocascade$ locate AIS_InteractiveContext.hxx
/usr/include/opencascade/AIS_InteractiveContext.hxx
[Similar but different]. I can't use PKG_CHECK_MODULES for opencascade since there is no ".pc" file for this package(as far as I'm aware).....
Bookmarks