← Back to team overview

dolfin team mailing list archive

Re: No test for Python.h

 



Garth N. Wells wrote:
When compiling with the package python-dev, I get the below error.

I meant to say 'When compiling without installing the package python-dev'

Garth

After
installing python-dev, things go OK. I guess we need another test.

Garth


dolfin/swig/dolfin_wrap.cc:140:20: error: Python.h: No such file or directory dolfin/swig/dolfin_wrap.cc:3215:4: error: #error "This python version requires swig to be run with the '-classic' option" In file included from /usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14, from dolfin/swig/dolfin_wrap.cc:3298: /usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:92:2: error: #error Must use Python with unicode enabled. dolfin/swig/dolfin_wrap.cc:745: error: expected initializer before '*' token dolfin/swig/dolfin_wrap.cc:800: error: expected initializer before '*' token dolfin/swig/dolfin_wrap.cc:821: error: expected initializer before '*' token In file included from /usr/include/c++/4.2/i486-linux-gnu/bits/c++io.h:43,
                 from /usr/include/c++/4.2/iosfwd:46,
                 from /usr/include/c++/4.2/bits/stl_algobase.h:70,
                 from /usr/include/c++/4.2/bits/char_traits.h:46,
                 from /usr/include/c++/4.2/string:47,
from dolfin/swig/dolfin_wrap.cc:2496: /usr/include/c++/4.2/i486-linux-gnu/bits/gthr.h:33: error: expected declaration before end of line scons: *** [dolfin/swig/dolfin_wrap.os] Error 1 scons: building terminated because of errors.

_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev



References