OpenKinect / libfreenect

Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X
http://openkinect.org
3.55k stars 1.15k forks source link

Use the recommended way to integrate Cython and NumPy #679

Closed fweimer-rh closed 6 months ago

fweimer-rh commented 6 months ago

This follows the example code in https://cython.readthedocs.io/en/latest/src/tutorial/numpy.html#adding-types.

The previous version results in an int-conversion error with current compilers:

…-build/wrappers/python/freenect3.c:16598:3: error: returning ‘void *’ from a function with return type ‘int’ makes integer from pointer without a cast
16598 |   import_array();
      |   ^~~~~~~~~~~~

Related to: