Forums - Building C++ Application ubuntu16.04

2 posts / 0 new
Last post
Building C++ Application ubuntu16.04
frank.huang_1
Join Date: 22 Jul 20
Posts: 7
Posted: Fri, 2020-10-23 02:40

Hi, I want to build c++ example on this website.

https://developer.qualcomm.com/docs/snpe/cplus_plus_tutorial.html#cpp_tu...

I follow the tutorial set  

1. export CXX=aarch-64-linux-gnu-g++

2.make -f Makefile.x86_64-linux-clang

 

But the error show that "/usr/bin/ld: cannot find -lSNPE"

 
Is anyone know how to solve this problem?
Any suggestion is appreciated, thanks.
  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 184
Posted: Mon, 2020-11-09 04:45

Hi,

Please set CXX value according to your platform architecture and then use corresponding makefile.

                TARGET                                                     CXX   Value                                                   Makefile

  1.      aarch64-linux (gcc 4.9)             aarch64-linux-gnu-g++               Makefile.aarch64-linux-gcc4.9 
  2.      x86_64-linux                                 g++                                                     Makefile.x86_64-linux-clang                                                 

Assuming your Target Platform as x86_64 architecture corresponding CXX value should be g++ and makefile to be used is Makefile.x86_64-linux-clang. Instead you choosed conflicting CXX value of aarch64-linux target and makefile of x86_64 linux.
Also make sure $(SNPE_ROOT) is set properly.

For CXX value and corresponding Makefile of other target architecures please refer table from Building and Running on x86 Linux and Embedded Linux section.

 

 

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