DevHeads.net

Reply to comment

Need help: SWIG related build error for python-pivy?

I'm working on packaging Coin4 for Fedora as it is needed for FreeCAD.

I have both SoQt and SIMVoleon buliding with it but I'm getting an error
with Pivy:

+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
running build
BUILDSTDERR: Deprecated command line option: -modern. This option is now
always on.
BUILDSTDERR: Inventor/SbDict.h:53: Error: Unable to find 'cstddef'
BUILDSTDERR: Inventor/SbString.h:40: Error: Unable to find 'cstdarg'
BUILDSTDERR: Inventor/lists/SbPList.h:41: Error: Unable to find 'cassert'
BUILDSTDERR: Inventor/lists/SbPList.h:42: Error: Unable to find 'cstddef'
BUILDSTDERR: /usr/include/Coin4/Inventor/lists/SbList.h:36: Error: Unable
to find 'cassert'
BUILDSTDERR: /usr/include/Coin4/Inventor/lists/SbList.h:37: Error: Unable
to find 'cstddef'
BUILDSTDERR: /usr/include/Coin4/Inventor/elements/SoSubElement.h:51: Error:
Unable to find 'cassert'
BUILDSTDERR: /usr/include/Coin4/Inventor/misc/SoState.h:38: Error: Unable
to find 'cassert'
BUILDSTDERR: /usr/include/Coin4/Inventor/fields/SoSubField.h:39: Error:
Unable to find 'cassert'
BUILDSTDERR: /usr/include/Coin4/Inventor/SbBSPTree.h:36: Error: Unable to
find 'cstddef'
BUILDSTDERR: /usr/include/Coin4/Inventor/elements/SoNormalElement.h:38:
Error: Unable to find 'cassert'
BUILDSTDERR: /usr/include/Coin4/Inventor/caches/SoCache.h:41: Error: Unable
to find 'cstddef'
BUILDSTDERR: /usr/include/Coin4/Inventor/details/SoSubDetail.h:40: Error:
Unable to find 'cassert'
BUILDSTDERR:
/usr/include/Coin4/Inventor/elements/SoProfileCoordinateElement.h:39:
Error: Unable to find 'cassert'
BUILDSTDERR: /usr/include/Coin4/Inventor/engines/SoSubEngine.h:36: Error:
Unable to find 'cassert'
BUILDSTDERR: /usr/include/Coin4/Inventor/misc/SoGLImage.h:47: Error: Unable
to find 'cstddef'
BUILDSTDERR: /usr/include/Coin4/Inventor/nodes/SoExtSelection.h:39: Error:
Unable to find 'cstddef'
BUILDSTDERR: /usr/include/Coin4/Inventor/SbClip.h:38: Error: Unable to find
'cstddef'
BUILDSTDERR: /usr/include/Coin4/Inventor/SbHeap.h:38: Error: Unable to find
'cstddef'
BUILDSTDERR: Inventor/SbImage.h:43: Error: Unable to find 'cstddef'
BUILDSTDERR: /usr/include/Coin4/Inventor/SbTesselator.h:39: Error: Unable
to find 'cstddef'

...

=== Generating pivy/coin_wrap.cpp for coin ===
swig -w302,306,307,312,314,325,361,362,467,389,503,509,510 -py3 -c++
-python -includeall -modern -D__PIVY__ -I. -Ifake_headers
-I"/usr/include/Coin4" -Iinterfaces -o pivy/coin_wrap.cpp interfaces/coin.i
SWIG did not generate wrappers successfully! ** Aborting **

All of these are "released" by the same upstream but Pivy has not had a
release for a while so I'm using the latest checkout which includes fixes
for Python 3 and Freecad.

<a href="https://bitbucket.org/%7B33c4279a-271f-4864-88ce-03ec8eb2cafc%7D/" title="https://bitbucket.org/%7B33c4279a-271f-4864-88ce-03ec8eb2cafc%7D/">https://bitbucket.org/%7B33c4279a-271f-4864-88ce-03ec8eb2cafc%7D/</a>

I just did a local mock build of the current python-pivy with Coin3 to make
sure the problem didn't lie elsewhere...

Any help/tips would be appreciated.

Thanks,
Richard

Reply