[PySide] build pyside with stackless includes
Joel B. Mohler
jmohler at gamry.com
Fri Apr 27 16:04:54 CEST 2012
Hi,
I'm attempting to build the version 1.1.1 of PySide on windows with
stackless python. I'm working from the instructions at
http://qt-project.org/wiki/Building_PySide_on_Windows . I've run into
two problems: The first is that c:\Python27\include\Stackless was not
included on the include path by the build script from the build scripts
repository. After including that path (using the INCLUDE environment
variable), I get a more ominous error:
2012-04-27 08:45:23,171 - setuptools - INFO - [ 64%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/basewrapper.cpp.obj
2012-04-27 08:45:23,173 - setuptools - INFO - basewrapper.cpp
2012-04-27 08:45:23,673 - setuptools - INFO -
C:\work\packaging\setuptools\modules\shiboken\libshiboken\basewrapper.cpp(156)
: error C2078: too many initializers
2012-04-27 08:45:23,674 - setuptools - INFO -
C:\work\packaging\setuptools\modules\shiboken\libshiboken\basewrapper.cpp(698)
: error C2039: 'ht_type' : is not a member of '_typeobject'
2012-04-27 08:45:23,676 - setuptools - INFO -
c:\python27\include\object.h(328) : see declaration of '_typeobject'
2012-04-27 08:45:23,677 - setuptools - INFO -
C:\work\packaging\setuptools\modules\shiboken\libshiboken\basewrapper.cpp(698)
: error C2228: left of '.tp_base' must have class/struct/union
2012-04-27 08:45:23,678 - setuptools - INFO -
C:\work\packaging\setuptools\modules\shiboken\libshiboken\basewrapper.cpp(702)
: error C2039: 'ht_type' : is not a member of '_typeobject'
2012-04-27 08:45:23,680 - setuptools - INFO -
c:\python27\include\object.h(328) : see declaration of '_typeobject'
2012-04-27 08:45:23,680 - setuptools - INFO -
C:\work\packaging\setuptools\modules\shiboken\libshiboken\basewrapper.cpp(702)
: error C2228: left of '.tp_bases' must have class/struct/union
2012-04-27 08:45:23,683 - setuptools - INFO - NMAKE : fatal error U1077:
'c:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe' : return code '0x2'
2012-04-27 08:45:23,684 - setuptools - INFO - Stop.
A search indicates (e.g.
http://www.stackless.com/pipermail/stackless/2008-October/003732.html)
that this is because I'm building against the stackless python
includes. This thread
http://www.mail-archive.com/stackless@stackless.com/msg01733.html
appears to produce a remedy, but I'm reluctant to study it in detail
since it is 5 years old.
I have been running the pre-built pyside 1.1.0 with both vanilla cpython
and stackless so they certainly appear to be binary compatible, but I
wanted the latest pyside 1.1.1 and there are no pre-built binaries for
download.
Is there a known fix for so I can build PySide against a Stackless
python install on windows? Are there fixes for this case which should
be in some upstream repo -- PySide? Stackless? or PySide packaging repo?
Joel
More information about the PySide
mailing list