[Thuban-list] Compile into oblivion

Adrian Custer acuster at nature.berkeley.edu
Fri Oct 10 21:14:47 CEST 2003


Sorry to keep after you, I've fallen into mandrake library hell.

After much installing and re-installing, when I now run:

python setup.py install_local

I get:

...
libraries/thuban/wxproj.cpp: In function `wxPoint* project_points(int,
int, double*, double*, int*, PJ*, PJ*, double, double, double, double)':
libraries/thuban/wxproj.cpp:186: error: invalid application of `sizeof'
to an incomplete type
libraries/thuban/wxproj.cpp:200: error: invalid use of undefined type
`struct wxPoint'
...

wxPoint seems to be fundamental to wx* stuff but I can't figure out
which library is not being found or how I might go about pointing things
to the right location.

The wx stuff I have is:
[root at tsetse site-packages]# rpm -q -a | grep wx
libwxPythonGTK2.4-devel-2.4.1.2-3mdk
wxGTK-2.4.2-1mdk
libwxPythonGTK2.4-2.4.1.2-3mdk
libwx_base2.4_0-2.4.1-1mdk
libwxgtkgl2.4-2.4.2-1mdk
libwxgtk2.4-2.4.2-1mdk
wxPythonGTK-2.4.1.2-3mdk
libwx_base2.4_0-devel-2.4.1-1mdk
[root at tsetse site-packages]# 



any more ideas?

--adrian

On Fri, 2003-10-10 at 02:00, Bernhard Herzog wrote:
> Adrian Custer <acuster at nature.berkeley.edu> writes:
> 
> > libraries/pyprojection/Projection_wrap.c: In function
> > `_wrap_new_Projection':
> > libraries/pyprojection/Projection_wrap.c:1283: error: invalid type
> > argument of `unary *'
> > libraries/pyprojection/Projection_wrap.c:1291: error: invalid type
> > argument of `unary *'
> > error: command 'gcc' failed with exit status 1
> 
> Which version of the proj library do you compile it with?
> 
> The problem seems to be the pj_get_errno_ref function which returns a
> pointer to int and the code in question dereferences the return value.
> This can lead to the above errors when e.g. the compiler didn't see the
> prototype and assumes it returns int.
> 
> According to proj's ChangeLog this means Thuban needs at least version
> 4.4.4.
> 
>    Bernhard




More information about the Thuban-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)