Menu

#5 swig compil: Nothing known about namespace 'Geometry'

v1.0.1
open
swig (1)
5
2006-09-03
2006-09-03
No

I've been trying to build freestyle and the SWIG
interface dies every
time on both systems (one Mac OS X, one Windows, and on
windows I've
tried the VC projects and cygwin). I get errors like
the following:

swig -c++ -python -o ModuleWrapper.cpp Freestyle.i
../system/Id.h:73: Warning(362): operator= ignored
../geometry/VecMat.h:100: Warning(389): operator[]
ignored (consider
using %extend)
../geometry/VecMat.h:104: Warning(389): operator[]
ignored (consider
using %extend)
../geometry/VecMat.h:175: Warning(362): operator= ignored
../geometry/VecMat.h:643: Warning(362): operator= ignored
../geometry/Noise.h:40: Error: Nothing known about
namespace 'Geometry'

(These errors are ignored by make, and a C++ file is
generated.)

g++ -w -I../geometry -I../image -I../scene_graph
-I../stroke -I../
system -I../view_map -I../winged_edge
-I/usr/include/python2.4 -I/sw/
include//python2.4 -c ModuleWrapper.cpp -o ModuleWrapper.o
ModuleWrapper.cpp: In function `PyObject*

_wrap_ViewVertexOrientedViewEdgeIterator_first_set(PyObject*,
PyObject*)':
ModuleWrapper.cpp:59288: error: parse error before
numeric constant
ModuleWrapper.cpp:59310: error: parse error before
numeric constant

The errors go on for a while. When I check the code, I
see that the
following has been generated by Swig:

ViewEdge 0. arg2 ;

Yes, the 0. is in there, many times. Now, since I've
never used swig
before and since people are getting the standard
tarball to compile,
I assume that this is something that's come up in the
past and is a
newbie problem (or a problem for people playing with
code above their
level). Now, I've gone back and rechecked the paths,
but this seems
less like a path issue and more like a malformed swig
output issue.

Discussion


Log in to post a comment.