Casten wrote:
> Hi folks,
>
> I'm trying to build x64 wxPython. I downloaded the source for
> 2.8.10.1 and am trying to build with Visual Studio 2008 (VC9).
>
> I haven't had much luck. Based on the build steps detailed at:
> "http://www.wxpython.org/builddoc.php" I've created the following
> batch file for use with the Windows Command Shell.
>
> IF defined VCINSTALLDIR (
> @echo vcvars already run
> ) ELSE (
> call "%VS90COMNTOOLS%\..\..\VC\vcvarsall" x86_amd64
> )
> set wxwin=C:\Users\criepling\Desktop\testbuild\wxPython-src-2.8.10.1
> set wxdir=%wxwin%
> cd %WXDIR%\include\wx\msw
> copy setup0.h setup.h
Some of the settings in setup.h need to be changed or you may get some
errors or missing functionality.
> cd %WXDIR%\build\msw
> nmake -f makefile.vc OFFICIAL_BUILD=1 SHARED=0; MONOLITHIC=0
Use SHARED=1, otherwise you won't get DLLs and each extension module
will essentially have it's own copy of wx instead of sharing a single
instance of it.
> USE_OPENGL=1 USE_GDIPLUS=1 CXXFLAGS=/D__NO_VC_CRTDBG__ BUILD=release
> UNICODE=1 MSLU=1
It probably doesn't hurt anything to leave it turned on, but the MSLU
hack does not apply on 64-bit systems.
> cd %WXDIR%\wxPython
> %WXDIR%\..\Python-2.6.2\PCbuild\amd64\python setup.py build_ext --
> inplace MONOLITHIC=0 FINAL=1 HYBRID=1 UNICODE=1
Use either FINAL=1 or HYBRID=1, but not both.
>
>
> I am getting lots of unresolved externals when linking the _core_
> extension.
I'm guessing it is related to the SHARED=0 in your build. Either it is
trying to use an old set of DLL import libraries when linking, or it is
using the static libs but failing because the imported symbols are not
marked as exported.
--
Robin Dunn
Software Craftsman
http://wxPython.org