On Tue, Aug 24, 2021 at 7:20 AM Mamoru TASAKA <[email protected]>
wrote:
> Richard Shaw wrote on 2021/08/24 20:59:
> > Figured out that was a missing include, ImfFrameBuffer.h, now on to the
> > next issue:
> >
> >
> /builddir/build/BUILD/blender-2.93.3/source/blender/python/mathutils/mathutils.c:
> > In function 'mathutils_array_hash':
> >
> /builddir/build/BUILD/blender-2.93.3/source/blender/python/mathutils/mathutils.c:98:24:
> > error: incompatible type for argument 1 of '_Py_HashDouble'
> > 98 | y = _Py_HashDouble((double)(array[i++]));
> > | ^~~~~~~~~~~~~~~~~~~~
> > | |
> > | double
> > In file included from /usr/include/python3.10/Python.h:90,
> > from
> >
> /builddir/build/BUILD/blender-2.93.3/source/blender/python/mathutils/mathutils.c:21:
> > /usr/include/python3.10/pyhash.h:10:38: note: expected 'PyObject *' {aka
> > 'struct _object *'} but argument is of type 'double'
> > 10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
> > | ^~~~~~~~~~
> >
> /builddir/build/BUILD/blender-2.93.3/source/blender/python/mathutils/mathutils.c:98:9:
> > error: too few arguments to function '_Py_HashDouble'
> > 98 | y = _Py_HashDouble((double)(array[i++]));
> > | ^~~~~~~~~~~~~~
> > In file included from /usr/include/python3.10/Python.h:90,
> > from
> >
> /builddir/build/BUILD/blender-2.93.3/source/blender/python/mathutils/mathutils.c:21:
> > /usr/include/python3.10/pyhash.h:10:23: note: declared here
> > 10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
> > | ^~~~~~~~~~~~~~
> >
> > Ideas?
> >
>
> https://developer.blender.org/T89931
> https://developer.blender.org/rB6fe00939b0a471cc149ea5b3c63ca57b049b4a37
Thanks, looks like they're just passing a NULL to "make it work". I was
trying to do it right by passing a PyObject but this seems the simpler
route for now.
Richard
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure