[solved] wxproj.cpp and wx2.5

Jonathan Coles jonathan at jpcoles.com
Wed Feb 16 14:28:58 CET 2005


Am Dienstag, den 15.02.2005, 02:43 -0500 schrieb Daniel Calvelo Aros:
> I attach the patch that finally allows thuban to show the Iceland examples
> without segfaulting.

fantastic! thank you.

> But (and it's a big one) it needs a set of headers that are included in the
> source tarball of wxPython but e.g. not in the debian packages. I'll fill a
> reportbug on the matter, but I'm afraid the situation might be the same for
> other platforms and distributions. It's the include/wx/wxPython/wxPython.h
> file and all its dependencies, for the record.

> I'm not sure what should be done about it. Include the corresponding files in
> thuban's tarball? Lobby wxPython packagers to include it? Extract the strictly
> needed definitions and prototypes?

i've hacked up a solution just to get things working. i created a new
header file called swigConvertPtrHack.h which has the necessary macros
as well as including wxPython_int.h, which i copied over from the wx2.5
source. these two files need to be in the same place as wxproj.cpp. a
patch against cvs for wxproj.cpp is also attached.

this at least allows thuban to compile and run successfully. NOTE: i've
only done this with wx2.5 installed. i don't know what happens if wx2.4
is installed.

now that i have this working, there is a little problem with the raster
code that i can now fix. this is not fatal, the mask is just applied
incorrectly.

--jonathan

-- 
=====================================================================
 Jonathan Coles                               http://www.jpcoles.com
 jonathan at jpcoles.com                    GnuPG Key: /gpg_pub_key.asc
=====================================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swigPtrConvertHack.h
Type: text/x-chdr
Size: 740 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050216/5dfd05b6/swigPtrConvertHack.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxproj.cpp.wx2.5-jpc.patch
Type: text/x-patch
Size: 4799 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050216/5dfd05b6/wxproj.cpp.wx2.5-jpc.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxPython_int.h
Type: text/x-chdr
Size: 140889 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050216/5dfd05b6/wxPython_int.h


More information about the Thuban-devel mailing list

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