Skip to content
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

Add support for ARM systems #46

Merged
merged 3 commits into from Nov 11, 2015
Merged

Add support for ARM systems #46

merged 3 commits into from Nov 11, 2015

Conversation

gohai
Copy link
Contributor

@gohai gohai commented Nov 7, 2015

Currently untested.

This is libfreenect v0.5.3 compiled on Raspbian "Jesse".
I also had to change build.properties to point javac to a jna.jar & gluegen-rt.jar before I could compile the library by running "ant library.run" in OpenKinect-Processing/resources.
@gohai
Copy link
Contributor Author

gohai commented Nov 8, 2015

@shiffman @ThomasLengeling
I believe I got the native library side figured out, but the example sketches throw a NullPointerException in the Kinect constructor for me. Let me know if you have an idea, else I'll debug this some more some other day.

I'll put a zip of the status quo up at http://sukzessiv.net/~gohai/p5-arm

Best
Gottfried

@ThomasLengeling
Copy link
Collaborator

Great it works, thank you!

ThomasLengeling added a commit that referenced this pull request Nov 11, 2015
Add support for ARM systems
@ThomasLengeling ThomasLengeling merged commit 40f6814 into shiffman:master Nov 11, 2015
@gohai
Copy link
Contributor Author

gohai commented Nov 11, 2015

@ThomasLengeling Does it work? (I got this NullPointerException.)

@ThomasLengeling
Copy link
Collaborator

Just don't compile the lib with the test file sources (org.openkinect.test), I'll fix this though

@gohai
Copy link
Contributor Author

gohai commented Nov 11, 2015

@ThomasLengeling That's not the problem, the problem I have is in the Kinect constructor. In Freenect.java, method createContext ctxPtr.getValue() is NULL, which makes NativeContext crash.

@gohai
Copy link
Contributor Author

gohai commented Nov 11, 2015

@ThomasLengeling The odd thing is that the return value of freenect_init is zero, indicating success, which shouldn't happen when the pointer of the stucture is NULL. Thinking perhaps something with JNA is amiss..

@gohai
Copy link
Contributor Author

gohai commented Nov 11, 2015

@ThomasLengeling (Fixed it here)

@gohai gohai deleted the arm branch November 11, 2015 23:18
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

Successfully merging this pull request may close these issues.

None yet

2 participants