Skip to content

libfreenect fails to build after latest commit #680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Marwan-Refaat opened this issue Jan 5, 2024 · 1 comment
Closed

libfreenect fails to build after latest commit #680

Marwan-Refaat opened this issue Jan 5, 2024 · 1 comment

Comments

@Marwan-Refaat
Copy link

I am on Ubuntu 20.04 Cython3 (0.29.14) and Python3 (3.8.10)

When building libfreenect using:

cmake .. -L -DBUILD_PYTHON3=ON -DPython3_EXACTVERSION=3.8.10 -DCYTHON_EXECUTABLE=/usr/bin/cython3

I get the following error when generating freenect3.c:

[ 96%] Generating freenect3.c

Error compiling Cython file:
------------------------------------------------------------
...
    dev_out.ctx = ctx
    return dev_out

_depth_cb, _video_cb = None, None

cdef void depth_cb(freenect_device *dev, void *data, uint32_t timestamp) noexcept with gil:
                                                                        ^
/home/marwan/sandbox/libfreenect/wrappers/python/freenect.pyx:325:73: Syntax error in C variable declaration

I solved this by reverting to tag 0.7.0 and building again.

I believe this is due to the latest commit on 2 Jan 2024 (5341ff68aa946a11ac0df3b050f2524d7c51a825)

@piedar piedar closed this as completed in a9806d3 Jan 5, 2024
@piedar piedar changed the title ibfreenect fails to build after latest commit libfreenect fails to build after latest commit Jan 5, 2024
@piedar
Copy link
Contributor

piedar commented Jan 6, 2024

Sorry, a9806d3 broke it even worse because legacy_implicit_noexcept is not necessarily defined. With 09a1f09 it should finally be correct with a copy of the pyx file to keep cython 0.x and 3.x totally separate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants