wxproj compilation problems
Bernhard Herzog
bh at intevation.de
Mon Apr 11 11:45:36 CEST 2005
Jan-Oliver Wagner <jan at intevation.de> writes:
> | libraries/thuban/wxproj.cpp:66: error: `wxPyCoreAPI_IMPORT'
> | undeclared (first
> | use this function)
> | libraries/thuban/wxproj.cpp:68: error: `SWIG_GetPtrObj'
> | undeclared (first use
> | this function)
> | error: command 'gcc' failed with exit status 1
>
> I am on Debian sarge with wx 2.4.
>
> Any ideas?
Logic error on my part. Is the following patch better?
*** wxproj.cpp 07 Apr 2005 17:10:42 +0200 1.7
--- wxproj.cpp 11 Apr 2005 11:42:00 +0200
***************
*** 38,46 ****
*/
#ifndef USE_WX_PYTHON_SWIG_HACK
#include <wx/wxPython/wxPython.h>
- #else
- #include "swigPtrConvertHack.h"
- #endif
/* Compatibility code to cope with wxPython.h from wxPython 2.4.
*
--- 38,43 ----
***************
*** 69,76 ****
}
#undef wxT
#define wxT(a) ("_" a "_p")
! #endif
/* pyshapelib api pointer */
static PyShapeLibAPI * pyshapelib_api;
--- 66,76 ----
}
#undef wxT
#define wxT(a) ("_" a "_p")
! #endif /* not wxPyConvertSwigPtr */
+ #else /* USE_WX_PYTHON_SWIG_HACK */
+ #include "swigPtrConvertHack.h"
+ #endif /* USE_WX_PYTHON_SWIG_HACK */
/* pyshapelib api pointer */
static PyShapeLibAPI * pyshapelib_api;
Bernhard
--
Intevation GmbH http://intevation.de/
Skencil http://skencil.org/
Thuban http://thuban.intevation.org/
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)