Hi,
my problem is that executing the embedded python sample provided with
http://downloads.sourceforge.net/wxpython/wxPython-demo-2.8.10.1.tar.bz2
on winXP results in wxPyCoreAPI_IMPORT returning false. I know there
is a thread about the same problem from Mike Porter. But this solution
using prebuilded python/wxPython libraries is not an option for me.
First I should mention that I do not have any libraries installed
(python/wxPython). I builded the python2.6.5 library by myself in
debug and release. The reason is that I have a Visual Studio 2008 SP1.
The standard python-2.6 libraries are build with Visual Studio 2008
without SP1. Using standard python-2.6 interpreter in my application
would result in a version mismatch of Visual Studio DLLs (msvcm90.dll,
msvcp90.dll and msvcr90.dll).
Having compiled python2.6.5 I builded wxPython2.8.10.1 myself as it
was described here (http://www.wxpython.org/BUILD.html). I builded the
debug version with (no unicode):
'nmake -f makefile.vc OFFICIAL_BUILD=1 SHARED=1 MONOLITHIC=0
USE_OPENGL=1 USE_GDIPLUS=1 BUILD=debug'
I builded the release version with:
'nmake -f makefile.vc OFFICIAL_BUILD=1 SHARED=1 MONOLITHIC=0
USE_OPENGL=1 USE_GDIPLUS=1 DEBUG_FLAG=1 CXXFLAGS=/D__NO_VC_CRTDBG__
WXDEBUGFLAG=h BUILD=release'
Afterwards I used python to build python part of wxPython:
'python setup.py build_ext --inplace MONOLITHIC=0 UNICODE=0
BUILD_GLCANVAS=0 BUILD_STC=0 BUILD_GIZMOS=0
Then I builded the embedded sample from wxPython-demos. First I had to
change the python version from 2.5 to 2.6 in makefile.vc. Additionally
I needed to replace the monolithic wx library by multifile wx library
files in the LIBS section of makefile.vc. Afterwards the embedded
sample compiled. Note: this example uses the debug version of wxPython/
python.
Now I am stuck with wxPyCoreAPI_IMPORT in embedded.cpp (http://
downloads.sourceforge.net/wxpython/wxPython-demo-2.8.10.1.tar.bz2)
returning false.
Is there any way to get this example working in windows. In Ubuntu
10.04 running this example is no problem at all (debug and release). I
need to get this example running in windows because I want to
integrate this method in another wxWidgets windows application.
Hagen
···
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en