ndk-build NDK_TOOLCHAIN_VERSION=clang APP_STL=c++_shared
[armeabi-v7a] Install : libSNPE.so => libs/armeabi-v7a/libSNPE.so
[armeabi-v7a] Install : libsymphony-cpu.so => libs/armeabi-v7a/libsymphony-cpu.so
[armeabi-v7a] Install : libsymphonypower.so => libs/armeabi-v7a/libsymphonypower.so
[armeabi-v7a] Executable : snpe-sample
/snpe-1.13.0/examples/NativeCpp/SampleCode/jni/CreateUserBuffer.cpp:82: error: undefined reference to 'zdl::DlSystem::TensorShape::TensorShape(std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/snpe-1.13.0/examples/NativeCpp/SampleCode/obj/local/armeabi-v7a/snpe-sample] Error 1
Hi Alex
were you able to find a asolution to this ?
i am facing similar error when i am using SNPE1.22
here i am trying to build the snpe example code in Linux Android Build environment and trying to link my executable to the altready prebuilt SNPE .so's
linking to libSNPE.so solved most of the issues but im still getting 2 errors same as above.
Hi Alex,
We tried to build the application using the instructions provided in SNPE docs for SNPE version 1.22 on Ubuntu 16.04
and the application build is successful.
On facing any gcc or library errors, please use GCC v4.8 and follow the instruction from this link.