victorprad / InfiniTAM

A Framework for the Volumetric Integration of Depth Images
http://www.infinitam.org
Other
930 stars 351 forks source link

Compiling InfiniTAM on Android #62

Open vividaner opened 7 years ago

vividaner commented 7 years ago

Hello,

I got a problem when I am trying to compile the Android source code. I follow the README in InfiniTAM/android and just skip the step of "Create a keystore". Then when I try to build the library based on Android.mk. I found an error as follows:

/usr/local/cuda-8.0/bin/nvcc -ccbin /home/dan/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/gen_standalone/bin/arm-linux-androideabi-g++ -target-cpu-arch=ARM -m32 -arch=sm_30 -O3 -Xptxas '-dlcm=ca' -target-os-variant=Android --use_fast_math -c -o "Engine/DeviceSpecific/CUDA/ITMColorTracker_CUDA.o" "Engine/DeviceSpecific/CUDA/ITMColorTracker_CUDA.cu" nvcc fatal : Unknown option 'target-cpu-arch' Android.mk:25: recipe for target 'Engine/DeviceSpecific/CUDA/ITMColorTracker_CUDA.o' failed make: *** [Engine/DeviceSpecific/CUDA/ITMColorTracker_CUDA.o] Error 1

I have successfully built the InfiniTAM in my laptop, but here I got an error as nvcc fatal : Unknown option 'target-cpu-arch'. Do you have any idea how to fix it?

Thanks a lot!

nonlinear1 commented 5 years ago

Do you have succeed in compiling the Infinitam of android version?