Compiling wxPython in debug for windows x64

Chris Helvig <[email protected]> Tue, 27 Feb 2018 13:27:44 -0800 (PST)
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
We are trying to upgrade from 4.0.0a3 to 4.0.1, and now I am unable to 
build wxPython in debug, due to a compile failure in wxIFFHandler. 

Here's what it looks like when I run the command that fails:


D:\projects\ctg\main\ctg\src\vendor\PythonExtensions\wxPython>D:\projects\ctg\main\ctg\src\vendor\PythonExtensions\wxPython\..\..\python\PCBuild\amd64\python.exe 
.\build.py --nodoc --debug build_py
Will build using: 
"D:\projects\ctg\main\ctg\src\vendor\python\PCBuild\amd64\python.exe"
3.5.2 (default, Dec  1 2016, 18:54:08) [MSC v.1900 64 bit (AMD64)]
Python's architecture is 64bit
cfg.VERSION: 4.0.1

Running command: build_py
Checking for 
D:\projects\ctg\main\ctg\src\vendor\PythonExtensions\wxPython\bin\waf-1.7.15-p1...
MSVC: C:\Program Files (x86)\Microsoft Visual Studio 
14.0\VC\BIN\amd64\cl.exe
"D:\projects\ctg\main\ctg\src\vendor\python\PCBuild\amd64\python.exe" 
D:\projects\ctg\main\ctg\src\vendor\PythonExtensions\wxPython\bin\waf-1.7.15-p1 
--debug --msvc_arch=x64 
--python="D:\projects\ctg\main\ctg\src\vendor\python\PCBuild\amd64\python.exe" 
--out=build/waf/3.5/x64/debug configure build


And it compiles some stuff, and eventually, I get down to this:


[202/885] cxx: sip\cpp\sip_corewxIdManager.cpp -> 
build\waf\3.5\x64\debug\sip\cpp\sip_corewxIdManager.cpp.3.o
sip_corewxIFFHandler.cpp
d:\projects\ctg\main\ctg\src\vendor\pythonextensions\wxpython\sip\cpp\sip_corewxiffhandler.cpp(22): 
error C2039: 'wxIFFHandler': is not a member of '`global namespace''
d:\projects\ctg\main\ctg\src\vendor\pythonextensions\wxpython\sip\cpp\sip_corewxiffhandler.cpp(22): 
error C2504: 'wxIFFHandler': base class undefined
d:\projects\ctg\main\ctg\src\vendor\pythonextensions\wxpython\sip\cpp\sip_corewxiffhandler.cpp(55): 
error C2039: 'wxIFFHandler': is not a member of '`global namespace''
d:\projects\ctg\main\ctg\src\vendor\pythonextensions\wxpython\sip\cpp\sip_corewxiffhandler.cpp(56): 
error C2614: 'sipwxIFFHandler': illegal member initialization: 
'wxIFFHandler' is not a base or member
d:\projects\ctg\main\ctg\src\vendor\pythonextensions\wxpython\sip\cpp\sip_corewxiffhandler.cpp(73): 
error C3083: 'wxIFFHandler': the symbol to the left of a '::' must be a type


Plus a bunch more errors, but the problem is obviously that 
sip_corewxIFFHandler.cpp doesn't see wxIFFHandler. But only for debug. 
Release builds fine, apparently.

I tried to find a way to compile out support for IFF format, but I can't 
understand the build system well enough to figure out how to do that. Every 
file I've tried to modify seems like it's actually built from code that 
exists somewhere else.

Any ideas?


-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.