Am Donnerstag 31 Dezember 2009 schrieb Doug: > Here it's also defined in /usr/include/wx-2.8/wx/glcanvas.h > but this doesn't seem to be picked up by cmake and make. > > I tried going into ccmake and setting OPENGL_INCLUDE_DIR as > /usr/include:/usr/include/wx-2.8/wx. > Makes no difference. >
Ok, maybe we can trace it down.
Try to make a preprocessed file. Here I get the file ",i" with:
cd /usr/BUILD/BuildHugin/src/hugin1/hugin && /usr/bin/c++
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -O2 -g
-I/usr/BUILD/BuildHugin/src -I/usr/src/hugin/hugin/src/hugin_base -
I/usr/src/hugin/hugin/src/foreign -I/usr/src/hugin/hugin/src/foreign/vigra
-I/usr/src/hugin/hugin/src/celeste -I/usr/include/OpenEXR -I/usr/local/include
-isystem /usr/lib/wx/include/gtk2-unicode-
release-2.8 -isystem /usr/include/wx-2.8 -I/usr/src/hugin/hugin/src/hugin1
/usr/src/hugin/hugin/src/hugin1/hugin/GLPreviewFrame.cpp -E -g3 > ,i
(This command is derived directly from make output, "-g3" is there to be able
to see the defines.)
Here I can deduce:
1.) /usr/include/wx-2.8/wx/glcanvas.h is included from
/usr/src/hugin/hugin/src/hugin1/hugin/GLViewer.h:27
2.) /usr/src/hugin/hugin/src/hugin1/hugin/GLViewer.h is included from
/usr/src/hugin/hugin/src/hugin1/hugin/GLPreviewFrame.cpp:47
The macro wxUSE_GLCANVAS should be now defined: If so, then the enum value
WX_GL_RGBA is defined too.
Macro wxUSE_GLCANVAS will be defined in
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h:447
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h is included from
/usr/include/wx-2.8/wx/platform.h:196
/usr/include/wx-2.8/wx/platform.h is included from
/usr/include/wx-2.8/wx/defs.h:21
/usr/include/wx-2.8/wx/defs.h is included from
/usr/include/wx-2.8/wx/wxprec.h:13
/usr/include/wx-2.8/wx/wxprec.h is included from
/usr/src/hugin/hugin/src/hugin1/panoinc_WX.h:33
/usr/src/hugin/hugin/src/hugin1/panoinc_WX.h is included from
/usr/src/hugin/hugin/src/hugin1/hugin/GLPreviewFrame.cpp:37
You may want to try to track it down on your system.
Kornel
--
Kornel Benko
[email protected]
signature.asc
Description: This is a digitally signed message part.
