Point cloud 1.8.1 build for android error Error: r13 not allowed here -- `sub.w sp,r1,#112'

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Point cloud 1.8.1 build for android error Error: r13 not allowed here -- `sub.w sp,r1,#112'

nazib
This post has NOT been accepted by the mailing list yet.
I'm trying to build point cloud 1.8.1 with ndk r15b and corresponding android.cmake.toolchain from android studio. I've build pcl dependent library with pcl_superbuild. Everything works fine, but an error occurred while compiling organized.cpp from pcl search module as below:

Scanning dependencies of target pcl_search
[ 33%] Building CXX object search/CMakeFiles/pcl_search.dir/src/search.cpp.o
[ 34%] Building CXX object search/CMakeFiles/pcl_search.dir/src/kdtree.cpp.o
[ 34%] Building CXX object search/CMakeFiles/pcl_search.dir/src/brute_force.cpp.o
[ 35%] Building CXX object search/CMakeFiles/pcl_search.dir/src/organized.cpp.o
/tmp/organized-595f26.s: Assembler messages:
/tmp/organized-595f26.s:198144: Error: r13 not allowed here -- `sub.w sp,r1,#112'
clang++: error: assembler command failed with exit code 1 (use -v to see invocation)
search/CMakeFiles/pcl_search.dir/build.make:134: recipe for target 'search/CMakeFiles/pcl_search.dir/src/organized.cpp.o' failed
make[5]: *** [search/CMakeFiles/pcl_search.dir/src/organized.cpp.o] Error 1
CMakeFiles/Makefile2:379: recipe for target 'search/CMakeFiles/pcl_search.dir/all' failed
make[4]: *** [search/CMakeFiles/pcl_search.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/pcl-android.dir/build.make:116: recipe for target 'CMakeExternals/Stamp/pcl-android/pcl-android-build' failed
make[2]: *** [CMakeExternals/Stamp/pcl-android/pcl-android-build] Error 2
CMakeFiles/Makefile2:144: recipe for target 'CMakeFiles/pcl-android.dir/all' failed
make[1]: *** [CMakeFiles/pcl-android.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

everything works fine if I comment out
PCL_INSTANTIATE(OrganizedNeighbor, PCL_XYZ_POINT_TYPES)
from pcl/search/src/organized.cpp

can anyone please point out why this error occurred and how to solve it.

Thanks in advance
Nazib