[PyQt] Concatenate single-file: need /bigobj

Phil Thompson phil at riverbankcomputing.com
Tue Jun 8 17:54:22 BST 2010


On Tue, 08 Jun 2010 18:43:40 +0200, Giovanni Bajo <rasky at develer.com>
wrote:
> Hi Phil,
> 
> while compiling PyQt for Qt 4.6 in concatanate mode on Windows, a hard 
> limit of the obj file format is hit by QtGui (number of sections). 
> Visual Studio itself suggests compilation with the command line option 
> /bigobj, which fixes it, but it is available only on msvc2005 and newer.
> 
> If you look at the documentation of MSVC, the only reason why NOT to use 
> /bigobj is to produce obj files that can be linked with a pre-2005 
> linker. So I think it would be safe to always enable it for PyQt 
> compilation when using a newer-enough Visual Studio version.
> 
> What is the correct place to do this modification?

Something like...

python configure.py ... CXXFLAGS+=/bigobj

Phil


More information about the PyQt mailing list