3dtof / voxelsdk

VoxelSDK - an SDK supporting TI's 3D Time of Flight cameras
BSD 3-Clause "New" or "Revised" License
108 stars 71 forks source link

How to use voxelsdk for android platform #73

Open tryBetter opened 8 years ago

tryBetter commented 8 years ago

I'm trying to use 3dtof for my android TV application. What should I do? Thanks for your anwser.

hlprasu commented 8 years ago

It is not directly supported. However, there have been previous successful attempts.

One on issue tracker - https://github.com/3dtof/voxelsdk/issues/45

If you want to built for native Android:

  1. Get necessary dependencies ready for Android. If you need PCL, see https://github.com/PointCloudLibrary/pcl/wiki/Android. If PCL is not needed then you can comment out add_subdirectory(VoxelPCL) and add_subdirectory(Apps) in the main CMakeLists.txt. This would mean thst the Apps will not be built. But several simple programs in Tests/ will still be built.
  2. Second thing to do is to get cmake work with android NDK. See https://github.com/taka-no-me/android-cmake which could help in this context.
  3. Once your have libraries (.so) built for Android and you are able run simple Voxel SDK (non-GUI) programs to capture, etc. from adb shell, next step is to write a NDK native (Java) wrapper for your app which invokes SDK API.

This is unofficial and you may need to put some effort to get things in place.

On 28 April 2016 at 07:34, wu.liu notifications@github.com wrote:

I'm trying to use 3dtof for my android TV application. What should I do? Thanks for your anwser.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/3dtof/voxelsdk/issues/73

~ Prasad Bhat

tryBetter commented 8 years ago

Thanks for replying soon,I will try it.

tryBetter commented 8 years ago

help ! I got a problem .

if(!depthCamera->isInitialized())

{std::cerr << "Depth camera not initialized for device " << toConnect->id() << std::endl;

return env->NewStringUTF("Depth camera not initialized for device ");

}

I can not initialize Depth camera. Please give me some help., thank you.

tryBetter commented 8 years ago

My App was run on Android L.

AlexanderSilvaB commented 8 years ago

@tryBetter , I was having this error too, in my case it was the previleges to access the usb port, I solve it by modifying boot.img and giving root access to all users on USB port, then I flashed this new image and everything works like a charm. To edit boot.img I've used a tool called bootimg.exe, there are tutorials for doing this on internet. Almost forgot, it was needed to change libusb to a specific version and also in android L I need to set the Permissive mode using the setenforce command.

tryBetter commented 8 years ago

@AlexanderSilvaB , Thank you ! It workes for me . Change my usb dev permission to '0666' and setenforce .

flyflyfly001 commented 7 years ago

@tryBetter Hi,I'm trying to use voxelsdk on android platform, but don't kow how to get started. Could you give me some instructions or compiled voxelsdk for android? Thank you very much!

altheahsu commented 6 years ago

@tryBetter Hi, Hi,I'm trying to use voxelsdk on android platform, but don't kow how to get started. Could you give me some instructions or compiled voxelsdk for android? Thank you very much!