~/ADT/android-sdk-linux/tools/android update project --target android-18 -p .Now you can build
ant debug/release -Dsdk.dir=/home/stevenchiu/ADT/android-sdk-linux/
Easy~
~/ADT/android-sdk-linux/tools/android update project --target android-18 -p .Now you can build
ant debug/release -Dsdk.dir=/home/stevenchiu/ADT/android-sdk-linux/
git clone git://github.com/OpenNI/OpenNI
git checkout -b 1.5.4.0 Unstable-1.5.4.0checkout to tag 1.5.4.0, only this tag works for me
cd Platform/Android/jni
${NDK_ROOT}/ndk-buildYou have to define your NDK_ROOT of course. I use NDK r7
export NDK_MODULE_PATH=/path/to/openni/Platform/Android/jni
git clone git://github.com/avin2/SensorKinect.git
git checkout -b unstable origin/unstable
cd Platform/Android/jni
${NDK_ROOT}/ndk-build
3. Upload your libraries and binary to Android
git clone git://github.com/OpenNI/OpenNI
git checkout -b 1.5.4.0 Unstable-1.5.4.0checkout to tag 1.5.4.0, only this tag works for me
cd Platform/Linux/CreateRedist
./RedistMaker
cd ../Redist/$(Openni Version)/In my case, it's OpenNI-Bin-Dev-Linux-x64-v1.5.4.0
sudo install.sh
git clone git://github.com/avin2/SensorKinect.git
git checkout -b unstable origin/unstable
cd Platform/Linux/CreateRedist
./RedistMaker
cd ../Redist/$(Sensor Kinect Version)/In my case, it's Sensor-Bin-Linux-x64-v5.1.2.1
sudo install.shIt's that simple.
manually add a gateway
route add default gw 192.168.1.1 dev eth0 => add default gateway
The following configuration in /etc/network/interfaces does all above:
#iface eth0 inet dhcp iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 dns-nameservers 192.168.1.1
Finally, add nameserver in /etc/resolf.conf
echo "nameserver 192.168.1.1" > /etc/resolv.conf
Restart network now: /etc/init.d/networking restart => restart network or
ifdown eth0; ifup eth0
toolchain for BBB is arm-linux-gnueabihf
Problem solved!
extract and cross compiled with CC=arm-linux-gnueabihf-gcc ./configue --target=arm-linux
sudo apt-get install libgtk2.0-devI only encounter this problem. please google the error message you see to get the corresponding solutions
git clone https://github.com/Itseez/opencv.git
cd opencv
git checkout 2.4.6.2 -b 2.4.6.2default is master branch and I manually checkout to 2.4.6.2 tag.
cd build
cmake-gui ..(to generate the configurations you want and generate make file. sudo apt-get install cmake-gui if you don't have it.)
make; sudo mak install