[Qgis-developer] PyQt compile problem

Martin Dobias wonder.sk at gmail.com
Wed Nov 12 09:40:42 EST 2008


Hi William,

looking at SIP 4.7.8 there are some changes regarding typedefs that
probably cause different behaviour. Now in qgsgeometry.sip there's a
typedef for size_t inside QgsGeometry class. I guess that new SIP now
explicitly tries to use QgsGeometry::size_t and that's not correct.

Please try to edit python/core/qgsgeometry.sip file and move "typedef
unsigned int size_t;" before definition of the class QgsGeometry. If
that helps I'll commit the fix to SVN.

Regards
Martin


On Wed, Nov 12, 2008 at 3:27 PM, William Kyngesburye
<woklist at kyngchaos.com> wrote:
> Has anyone tried using the latest SIP 4.7.8/PyQt 4.4.4?  I get an error:
>
> [ 61%] Generating core/core.so
> sipcoreQgsGeometry.cpp: In function 'PyObject*
> meth_QgsGeometry_fromWkb(PyObject*, PyObject*)':
> sipcoreQgsGeometry.cpp:328: error: 'size_t' is not a member of 'QgsGeometry'
> sipcoreQgsGeometry.cpp:328: error: expected `;' before 'a1'
> sipcoreQgsGeometry.cpp:331: error: 'a1' was not declared in this scope
> /Users/Shared/src/qgis/svn/qgis-1.0.0p2/python/core/qgsgeometry.sip:67:
> error: no matching function for call to 'QgsGeometry::fromWkb(unsigned
> char*&, <type error>)'
> /Users/Shared/src/qgis/svn/qgis-1.0.0p2/src/core/qgsgeometry.h:108: note:
> candidates are: void QgsGeometry::fromWkb(unsigned char*, size_t)
> sipcoreQgsGeometry.cpp: In function 'PyObject*
> meth_QgsGeometry_wkbSize(PyObject*, PyObject*)':
> sipcoreQgsGeometry.cpp:389: error: 'size_t' is not a member of 'QgsGeometry'
> sipcoreQgsGeometry.cpp:389: error: expected `;' before 'sipRes'
> sipcoreQgsGeometry.cpp:392: error: 'sipRes' was not declared in this scope
> sipcoreQgsGeometry.cpp:395: error: 'sipRes' was not declared in this scope
> sipcoreQgsGeometry.cpp: In function 'PyObject*
> meth_QgsGeometry_fromWkb(PyObject*, PyObject*)':
> sipcoreQgsGeometry.cpp:328: error: 'size_t' is not a member of 'QgsGeometry'
> sipcoreQgsGeometry.cpp:328: error: expected `;' before 'a1'
> sipcoreQgsGeometry.cpp:331: error: 'a1' was not declared in this scope
> /Users/Shared/src/qgis/svn/qgis-1.0.0p2/python/core/qgsgeometry.sip:67:
> error: no matching function for call to 'QgsGeometry::fromWkb(unsigned
> char*&, <type error>)'
>
> I compiles when I revert to the previous SIP 4.7.7/PyQt 4.4.3.
>
> All using Qt 4.4.2.
>
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> "Those people who most want to rule people are, ipso-facto, those least
> suited to do it."
>
> - A rule of the universe, from the HitchHiker's Guide to the Galaxy
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>


More information about the Qgis-developer mailing list