Skip to content

Add support for ARM systems - #46

Merged
ThomasLengeling merged 3 commits into
shiffman:masterfrom
gohai:arm
Nov 11, 2015
Merged

ThomasLengeling merged 3 commits into
shiffman:masterfrom
gohai:arm

Conversation

@gohai

@gohai gohai commented Nov 7, 2015

Copy link
Copy Markdown
Contributor

Currently untested.

gohai added 3 commits November 8, 2015 18:34
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

gohai commented Nov 8, 2015

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown
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

gohai commented Nov 11, 2015

Copy link
Copy Markdown
Contributor Author

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

@ThomasLengeling

Copy link
Copy Markdown
Collaborator

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

@gohai

gohai commented Nov 11, 2015

Copy link
Copy Markdown
Contributor Author

@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

gohai commented Nov 11, 2015

Copy link
Copy Markdown
Contributor Author

@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

gohai commented Nov 11, 2015

Copy link
Copy Markdown
Contributor Author

@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.

2 participants