python-meep team mailing list archive
-
python-meep team
-
Mailing list archive
-
Message #00023
Re: Latest Release Build Problems
Paul
So now it finds the files, but gives compilation errors, if I understand
well. Can you send us the output that it generates, so that we can have
a look at the error messages.
wbr
Emmanuel
On Mon, 2010-06-21 at 15:02 -0500, Paul Robinson wrote:
> Hello, Emmanuel.
>
> Such quick responses! Many thanks.
>
> I've installed all the appropriate packages; the only errors I'm
> getting now are from npy_common.h (/usr/include/numpy/npy_common.h)
> and ndarrayobject.h (also in /usr/include/numpy). The error messages
> concern npy_cdouble, npy_cfloat, and npy_clongdouble (lines 120, 127,
> 134 of npy_common.h); and "conflicting declaration 'typedef struct
> [same data types] ...' "(lines 131, 132, 124, 133 of ndarrayobject.h).
>
> I feel I'm getting close...
>
> Again, many thanks!
>
> Cheers,
> Paul Robinson
>
> On Mon, Jun 21, 2010 at 2:46 PM, <emmanuel.lambert@xxxxxxxx> wrote:
> Hello Paul
>
> -Can you check one by one the packages mentioned in the README
> file attached?
> Have you installed all of these with "sudo apt-get install" ?
> If you still experience this problem after that, then locate
> the file npy_common.h on your PC and let me know the path.
>
> -We have not tested with SWIG 2.0, but the error message you
> mention doesn't have to do with that. However, I think it is
> safer to use SWIG 1.3.39 for now.
>
> Let us know how it is going.
>
> regards
> Emmanuel
>
>
>
>
>
>
> Quoting "Nizamov Shawkat" <nizamov.shawkat@xxxxxxxxx>:
>
>
>
> meep_wrap.cpp:150:20: error: Python.h: No such
> file or directory
> Most probably, you simply do not have python-dev
> packages installed.
>
> custom.hpp:39:30: error: numpy/npy_common.h:
> No such file or directory
> Looks like you should also install numpy development
> packages
>
> With respect
> Shawkat Nizamov
>
> 2010/6/21, Paul Robinson <prarobinson@xxxxxxxxx>:
> Hello!
>
> I am very excited to try using MEEP within
> python (especially for use with
> 3D geometry files), but have not had much
> success building
> python-meep.1.3.2. I suspect this has more to
> do with how my system is set
> up than with the package itself, but perhaps
> one of you can see where I've
> gone wrong. I'm using Ubuntu 9.04 with
> python2.6.5, libmeep - Meep version
> 1.1.1, and swig 2.0.0. The output of
> sudo ./make appears below:
>
>
> robinson@robinson-laptop:~/Shellscripts/Py_Scripts/python-meep-launchpad-LATEST_RELEASE$
> sudo ./make
> [sudo] password for robinson:
> Directories for SWIG -I option :
> ['/usr/include']
> Directories for -L option : ['/usr/lib']
> running clean
> 'build/lib.linux-i686-2.6' does not exist --
> can't clean it
> 'build/bdist.linux-i686' does not exist --
> can't clean it
> 'build/scripts-2.6' does not exist -- can't
> clean it
> Directories for SWIG -I option :
> ['/usr/include']
> Directories for -L option : ['/usr/lib']
> running build_ext
> building '_meep' extension
> swigging meep.i to meep_wrap.cpp
> swig -python -c++
> -w503,389,302,362,314,509,451 -I/usr/include
> -o
> meep_wrap.cpp meep.i
> creating build
> creating build/temp.linux-i686-2.6
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g
> -fwrapv -O2 -Wall
> -Wstrict-prototypes -fPIC -I/usr/include
> -I/usr/include/python2.6 -c
> meep_wrap.cpp -o
> build/temp.linux-i686-2.6/meep_wrap.o
> cc1plus: warning: command line option
> "-Wstrict-prototypes" is valid for
> Ada/C/ObjC but not for C++
> meep_wrap.cpp:150:20: error: Python.h: No such
> file or directory
> meep_wrap.cpp:3254:4: error: #error "This
> python version requires swig to be
> run with the '-classic' option"
> In file included from meep_wrap.cpp:3675:
> custom.hpp:39:30: error: numpy/npy_common.h:
> No such file or directory
> In file included
> from /usr/include/python2.6/numpy/arrayobject.h:14,
> from custom.hpp:40,
> from meep_wrap.cpp:3675:
> /usr/include/python2.6/numpy/ndarrayobject.h:114:2: error: #error Must use
> Python with unicode enabled.
> meep_wrap.cpp:781: error: ‘PyObject’ was not
> declared in this scope
> meep_wrap.cpp:781: error: ‘str’ was not
> declared in this scope
> meep_wrap.cpp:782: error: expected ‘,’ or ‘;’
> before ‘{’ token
> meep_wrap.cpp:805: error: expected initializer
> before ‘*’ token
> meep_wrap.cpp:831: error: expected initializer
> before ‘*’ token
> meep_wrap.cpp:885: error: expected initializer
> before ‘*’ token
> meep_wrap.cpp:906: error: expected initializer
> before ‘*’ token
> In file included from /usr/include/c
> ++/4.3/new:45,
> from /usr/include/c
> ++/4.3/ext/new_allocator.h:37,
> from
> /usr/include/c++/4.3/i486-linux-gnu/bits/c
> ++allocator.h:39,
> from /usr/include/c
> ++/4.3/bits/allocator.h:53,
> from /usr/include/c
> ++/4.3/string:48,
> from meep_wrap.cpp:2692:
> /usr/include/c++/4.3/exception:40: error:
> expected declaration before end of
> line
> error: command 'gcc' failed with exit status 1
> Directories for SWIG -I option :
> ['/usr/include']
> Directories for -L option : ['/usr/lib']
> running install
> running build
> running build_py
> creating build/lib.linux-i686-2.6
> copying meep.py -> build/lib.linux-i686-2.6
> running build_ext
> building '_meep' extension
> swigging meep.i to meep_wrap.cpp
> swig -python -c++
> -w503,389,302,362,314,509,451 -I/usr/include
> -o
> meep_wrap.cpp meep.i
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g
> -fwrapv -O2 -Wall
> -Wstrict-prototypes -fPIC -I/usr/include
> -I/usr/include/python2.6 -c
> meep_wrap.cpp -o
> build/temp.linux-i686-2.6/meep_wrap.o
> cc1plus: warning: command line option
> "-Wstrict-prototypes" is valid for
> Ada/C/ObjC but not for C++
> meep_wrap.cpp:150:20: error: Python.h: No such
> file or directory
> meep_wrap.cpp:3254:4: error: #error "This
> python version requires swig to be
> run with the '-classic' option"
> In file included from meep_wrap.cpp:3675:
> custom.hpp:39:30: error: numpy/npy_common.h:
> No such file or directory
> In file included
> from /usr/include/python2.6/numpy/arrayobject.h:14,
> from custom.hpp:40,
> from meep_wrap.cpp:3675:
> /usr/include/python2.6/numpy/ndarrayobject.h:114:2: error: #error Must use
> Python with unicode enabled.
> meep_wrap.cpp:781: error: ‘PyObject’ was not
> declared in this scope
> meep_wrap.cpp:781: error: ‘str’ was not
> declared in this scope
> meep_wrap.cpp:782: error: expected ‘,’ or ‘;’
> before ‘{’ token
> meep_wrap.cpp:805: error: expected initializer
> before ‘*’ token
> meep_wrap.cpp:831: error: expected initializer
> before ‘*’ token
> meep_wrap.cpp:885: error: expected initializer
> before ‘*’ token
> meep_wrap.cpp:906: error: expected initializer
> before ‘*’ token
> In file included from /usr/include/c
> ++/4.3/new:45,
> from /usr/include/c
> ++/4.3/ext/new_allocator.h:37,
> from
> /usr/include/c++/4.3/i486-linux-gnu/bits/c
> ++allocator.h:39,
> from /usr/include/c
> ++/4.3/bits/allocator.h:53,
> from /usr/include/c
> ++/4.3/string:48,
> from meep_wrap.cpp:2692:
> /usr/include/c++/4.3/exception:40: error:
> expected declaration before end of
> line
> error: command 'gcc' failed with exit status 1
> Directories for SWIG -I option :
> ['/usr/include']
> Directories for -L option : ['/usr/lib']
> running bdist
> running bdist_dumb
> running build
> running build_py
> copying meep.py -> build/lib.linux-i686-2.6
> running build_ext
> building '_meep' extension
> swigging meep.i to meep_wrap.cpp
> swig -python -c++
> -w503,389,302,362,314,509,451 -I/usr/include
> -o
> meep_wrap.cpp meep.i
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g
> -fwrapv -O2 -Wall
> -Wstrict-prototypes -fPIC -I/usr/include
> -I/usr/include/python2.6 -c
> meep_wrap.cpp -o
> build/temp.linux-i686-2.6/meep_wrap.o
> cc1plus: warning: command line option
> "-Wstrict-prototypes" is valid for
> Ada/C/ObjC but not for C++
> meep_wrap.cpp:150:20: error: Python.h: No such
> file or directory
> meep_wrap.cpp:3254:4: error: #error "This
> python version requires swig to be
> run with the '-classic' option"
> In file included from meep_wrap.cpp:3675:
> custom.hpp:39:30: error: numpy/npy_common.h:
> No such file or directory
> In file included
> from /usr/include/python2.6/numpy/arrayobject.h:14,
> from custom.hpp:40,
> from meep_wrap.cpp:3675:
> /usr/include/python2.6/numpy/ndarrayobject.h:114:2: error: #error Must use
> Python with unicode enabled.
> meep_wrap.cpp:781: error: ‘PyObject’ was not
> declared in this scope
> meep_wrap.cpp:781: error: ‘str’ was not
> declared in this scope
> meep_wrap.cpp:782: error: expected ‘,’ or ‘;’
> before ‘{’ token
> meep_wrap.cpp:805: error: expected initializer
> before ‘*’ token
> meep_wrap.cpp:831: error: expected initializer
> before ‘*’ token
> meep_wrap.cpp:885: error: expected initializer
> before ‘*’ token
> meep_wrap.cpp:906: error: expected initializer
> before ‘*’ token
> In file included from /usr/include/c
> ++/4.3/new:45,
> from /usr/include/c
> ++/4.3/ext/new_allocator.h:37,
> from
> /usr/include/c++/4.3/i486-linux-gnu/bits/c
> ++allocator.h:39,
> from /usr/include/c
> ++/4.3/bits/allocator.h:53,
> from /usr/include/c
> ++/4.3/string:48,
> from meep_wrap.cpp:2692:
> /usr/include/c++/4.3/exception:40: error:
> expected declaration before end of
> line
> error: command 'gcc' failed with exit status 1
>
>
> I see no Python.h file is found, and also what
> appear to be unicode issues
> with python. Is this the source of all my
> woes? If so, how do I fix it?
> Anything else I need to fix/change? Any
> pointers or advice would be most
> appreciated.
>
> Thanks,
> Paul Robinson
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~python-meep
> Post to : python-meep@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~python-meep
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
References