Forums - SDK 3.2

7 posts / 0 new
Last post
SDK 3.2
harhoang
Join Date: 20 Jul 17
Posts: 14
Posted: Thu, 2017-07-20 17:42

Having problems compile. 

After installing SDK 3.2 /w default options selected.  Fired up Eclipse (Hexagon IDE) and was unable to compile any of the first project samples.

After correcting the Hexagon tools from eclipse properties (qdsp++  compiler, linker, assembler --> hexagon-link, hexagon-clang++, ...)  

At the linker seeing these issues, anyone seeing the same? or know the fix?

 

17:41:19 **** Build of configuration Debug for project factorial ****
make all 
'Building file: ../factorial.cpp'
'Invoking: Hexagon C++ Compiler'
hexagon-clang++ -mv5 -D__FILENAME__=__FILE__ -O0 -g3 -Wall -c -fmessage-length=0 -o "factorial.o" "../factorial.cpp"
'Finished building: ../factorial.cpp'
' '
'Building target: factorial'
'Invoking: Hexagon C++ Linker'
hexagon-link  ./factorial.o    -mv5 -nodefaultlibs -o"factorial"
Warning: Warning: Unrecognized option `-nodefaultlibs'
Error: ./factorial.o(.text+0xb0): undefined reference to `printf'
Error: ./factorial.o(.text+0xc4): undefined reference to `printf'
Error: ./factorial.o(.text+0xf0): undefined reference to `printf'
Error: ./factorial.o(.text+0x12c): undefined reference to `printf'
Error: ./factorial.o(.text.atoi+0x20): undefined reference to `_Stoul'
Fatal: Linking had errors.
make: *** [factorial] Error 1
 
17:41:22 Build Finished (took 2s.429ms)
  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Mon, 2017-08-07 00:07

Ma I know how the project is created ? 

make sure that you created with project type as executable and selected llvm toolchain. 

  • Up0
  • Down0
harhoang
Join Date: 20 Jul 17
Posts: 14
Posted: Thu, 2017-10-12 08:50

I'm following the go/hexagonsdk instructions to create a sample project

  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Fri, 2017-10-13 03:09

Can you please follow the following page to create first eclipse project

https://github.qualcomm.com/pages/jmay/hexagonsdk/3.3/eclipse_first_proj...

  • Up0
  • Down0
harhoang
Join Date: 20 Jul 17
Posts: 14
Posted: Mon, 2017-11-20 15:21

Link doesn't exist, got another one?

  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Mon, 2017-11-20 22:19

you can refer the same document in your installed SDK <SDK_ROOT_DIR>/docs/eclipse_first_project.html 

file:///C:/Qualcomm/Hexagon_SDK/3.3.1/docs/eclipse_first_project.html 

  • Up0
  • Down0
harhoang
Join Date: 20 Jul 17
Posts: 14
Posted: Fri, 2018-01-12 16:48

Ok figured it out - I have to run as Administrator, and its all working (right click the Hexagon IDE link and run as Admin)

Thanks!

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