Cross-compile with beagleboard
-
Hi,
I am trying to cross compile the OpenNI sample program (I am using Asus Xtion Live camera) with beagleboard. I followed this tutorial:
http://janaxelson.com/eclipse1.htm
and when i compile i get those errors:
"cannot find -lOpenNI"
"skipping incompatible /usr/lib//libOpenNI.so when searching for -lOpenNI"My host computer is 32 bit Ubuntu 13.04, OpenNI is 32 bit too.
I don't have an idea why compiler complains? When I run the same programe without cross compilation it works ok! Please help me! -
Hi and welcome to devnet,
Since you are cross-compiling you need to provide the OpenNI library of the right architecture to the cross compiler. i.e. You can use a x86 library to build an ARM software
-
Hi SGaist,
thank you for reply!
Yes, I am using x86 OpenNI. The error is the same for any library i link there (lGL, -glut)... :( -
That's normal, like I wrote before, you need to provide the libraries for the correct architecture when cross-compiling.
Since it seams that you are using the angstrom distribution look at their documentation to see how you can install and use them
-
I think I got you. Thank you :)
-
You're welcome !
If you're now able to cross-compile properly, please update the thread title prepending [solved] so other forum users may know a solution has been found :)