Forums - SNPE 1.13.0 Examples Build Failure

3 posts / 0 new
Last post
SNPE 1.13.0 Examples Build Failure
Alex
Join Date: 20 Mar 18
Posts: 1
Posted: Thu, 2018-03-22 20:57

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

 

 

 

  • Up0
  • Down0
tanvia
Join Date: 8 Mar 19
Posts: 1
Posted: Fri, 2019-03-08 12:46

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.

src/CreateUserBuffer.cpp:75: error: undefined reference to 'zdl::DlSystem::TensorShape::TensorShape(std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >)'
src/CreateUserBuffer.cpp:159: error: undefined reference to 'zdl::DlSystem::TensorShape::TensorShape(std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >)'
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
15:19:21 ninja failed with: exit status 1
 
  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 184
Posted: Wed, 2019-05-15 00:18

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.

 

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.