Forums - SampleCode: link issue for arm64-v8a

2 posts / 0 new
Last post
SampleCode: link issue for arm64-v8a
ndiremdjian
Join Date: 9 Oct 18
Posts: 3
Posted: Wed, 2019-07-10 05:49

Hello,

Trying to build SampleCode (C++tutorial) for Android on ubuntu 14.04 as specified in SNPE setup part of the documentation.

The provided makefile when executing "ndk-build NDK_TOOLCHAIN_VERSION=clang APP_STL=c++_shared"

builds armeabi-v7a and arm64-v8a version. While v7a seems to build correctly, v8a fails on link stage with following error:

[arm64-v8a] Executable     : snpe-sample

./obj/local/arm64-v8a/libSNPE.so: undefined reference to `__cxa_thread_atexit'

clang++: error: linker command failed with exit code 1 (use -v to see invocation)
/ndk/build/core/build-binary.mk:715: recipe for target 'obj/local/arm64-v8a/snpe-sample' failed
make: *** [obj/local/arm64-v8a/snpe-sample] Error 1
 
Any idea how to fix that ?
Thx for the help
 
Nicolas
  • Up0
  • Down0
ndiremdjian
Join Date: 9 Oct 18
Posts: 3
Posted: Thu, 2019-07-11 00:36

Ok found,  works with NDK r17c but not with r13b neither with r20

  • 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.