Re: Compiling wxPython in debug for windows x64
Robin Dunn <[email protected]> Sat, 3 Mar 2018 19:31:12 -0800 (PST)
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday, February 27, 2018 at 3:54:19 PM UTC-8, Chris Helvig wrote: > > 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? > > The only way that the wxIFFHandler could be absent is if wxUSE_IFF is set to 0 in wxWidgets/include/wx/msw/setup.h, but wxPython's build explicitly sets it to 1 so I'm not sure what could have happened. But this will give you a direction to look for the solution, hopefully it will help. -- Robin Dunn Software Craftsman http://wxPython.org <http://wxpython.org/> -- 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.