Forums - Error building calculator example on Open Q 820 Snapdragon 820 Hexagon 3.2

2 posts / 0 new
Last post
Error building calculator example on Open Q 820 Snapdragon 820 Hexagon 3.2
miguimag94
Join Date: 23 May 17
Posts: 3
Posted: Wed, 2017-05-31 04:16

Hey,

I am trying to run the calculator example for Hexagon DSP SDK following the instructions in file:///C:/Qualcomm/Hexagon_SDK/3.2/docs/calculator_android.html

In the command line I have setup the sdk in the following way:

setup_sdk_env.cmd

I have cleaned and build the android module succesfully

make tree V=android_Debug [CDSP_FLAG = 1]

But I have an error when trying to do it for the hexagon module.

make tree V=hexagon_Debug_dynamic [CDSP_FLAG = 1]

This is what I get:

C:\Qualcomm\Hexagon_SDK\3.2\examples\common\calculator>make tree V=hexagon_Debug_dynamic CDSP=1
making C:\Qualcomm\Hexagon_SDK\3.2/test/common/test_util
El sistema no puede encontrar la ruta especificada.
make[1]: *** [hexagon_Debug_dynamic/test_utils.o] Error 1
ERROR making C:\Qualcomm\Hexagon_SDK\3.2/test/common/test_util
make[1]: Entering directory `C:/Qualcomm/Hexagon_SDK/3.2/test/common/test_util'
"C:/Qualcomm/Hexagon_SDK/3.2/Tools/bin/hexagon-clang"  -mv60 -c -v -G0 -g -O0  -Wall -Werror -Wno-cast-align -Wpointer-arith -Wno-missing-braces -Wno-strict-aliasing  -fno-exceptions -fno-strict-aliasing -fno-zero-initialized-in-bss -fdata-sections -mllvm -disable-hsdr -fpic -D__V_DYNAMIC__ -Wstrict-prototypes -Wnested-externs      -D__FILENAME__=\"test_utils.c\" -D_DEBUG  -Iinc -Isrc -IC:\Qualcomm\Hexagon_SDK\3.2/incs -IC:\Qualcomm\Hexagon_SDK\3.2/incs/stddef -Ihexagon_Debug_dynamic  -o hexagon_Debug_dynamic/test_utils.o src/test_utils.c
make[1]: Leaving directory `C:/Qualcomm/Hexagon_SDK/3.2/test/common/test_util'
make: *** [MAKE_D_7_LIBDIR] Error 1
 
Note my computer is spanish, "El sistema no puede encontrar la ruta especificada." means that the system was not able to find the specified path.
 
I also tried running the calculator_walktrough.py
C:\Qualcomm\Hexagon_SDK\3.2\examples\common\calculator>calculator_walkthrough.py
and this is what I get
 
---- Build calculator example for both Android and Hexagon ----
make -C C:\Qualcomm\Hexagon_SDK\3.2/examples/common/calculator tree_clean V=android_Debug  || exit /b
make: Entering directory `C:/Qualcomm/Hexagon_SDK/3.2/examples/common/calculator'
C:\Qualcomm\Hexagon_SDK\3.2/build/make.d.ext/android/defines_android_Debug.min:20: "Using default tools location: ANDROID_TOOLS_DIR=C:/Qualcomm/Hexagon_SDK/3.2/tools/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64"
C:\Qualcomm\Hexagon_SDK\3.2/build/make.d.ext/android/defines_android_Debug.min:28: "Using default platform location: ANDROID_PLATFORM_DIR=C:/Qualcomm/Hexagon_SDK/3.2/tools/android-ndk-r10d/platforms/android-21/arch-arm"
************  LIB=libadsprpc ************
cleaning C:\Qualcomm\Hexagon_SDK\3.2/test/common/test_util
cleaning C:\Qualcomm\Hexagon_SDK\3.2/libs/common/atomic
cleaning C:\Qualcomm\Hexagon_SDK\3.2/libs/common/rpcmem
cleaning .
make: Leaving directory `C:/Qualcomm/Hexagon_SDK/3.2/examples/common/calculator'
make -C C:\Qualcomm\Hexagon_SDK\3.2/examples/common/calculator tree V=android_Debug   || exit /b
make: Entering directory `C:/Qualcomm/Hexagon_SDK/3.2/examples/common/calculator'
C:\Qualcomm\Hexagon_SDK\3.2/build/make.d.ext/android/defines_android_Debug.min:20: "Using default tools location: ANDROID_TOOLS_DIR=C:/Qualcomm/Hexagon_SDK/3.2/tools/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64"
C:\Qualcomm\Hexagon_SDK\3.2/build/make.d.ext/android/defines_android_Debug.min:28: "Using default platform location: ANDROID_PLATFORM_DIR=C:/Qualcomm/Hexagon_SDK/3.2/tools/android-ndk-r10d/platforms/android-21/arch-arm"
************  LIB=libadsprpc ************
making C:\Qualcomm\Hexagon_SDK\3.2/test/common/test_util
making C:\Qualcomm\Hexagon_SDK\3.2/libs/common/atomic
making C:\Qualcomm\Hexagon_SDK\3.2/libs/common/rpcmem
making .
                                                                           make: Leaving directory `C:/Qualcomm/Hexagon_SDK/3.2/examples/common/calculator'
make -C C:\Qualcomm\Hexagon_SDK\3.2/examples/common/calculator tree_clean V=hexagon_Debug_dynamic_toolv80_v60 || exit /b
make: Entering directory `C:/Qualcomm/Hexagon_SDK/3.2/examples/common/calculator'
cleaning C:\Qualcomm\Hexagon_SDK\3.2/test/common/test_util
cleaning C:\Qualcomm\Hexagon_SDK\3.2/libs/common/atomic
cleaning C:\Qualcomm\Hexagon_SDK\3.2/libs/common/rpcmem
cleaning C:\Qualcomm\Hexagon_SDK\3.2/test/common/test_main
cleaning .
make: Leaving directory `C:/Qualcomm/Hexagon_SDK/3.2/examples/common/calculator'
make -C C:\Qualcomm\Hexagon_SDK\3.2/examples/common/calculator tree V=hexagon_Debug_dynamic_toolv80_v60 || exit /b
make: Entering directory `C:/Qualcomm/Hexagon_SDK/3.2/examples/common/calculator'
making C:\Qualcomm\Hexagon_SDK\3.2/test/common/test_util
El sistema no puede encontrar la ruta especificada.
make[1]: *** [hexagon_Debug_dynamic_toolv80_v60/test_utils.o] Error 1
ERROR making C:\Qualcomm\Hexagon_SDK\3.2/test/common/test_util
make[1]: Entering directory `C:/Qualcomm/Hexagon_SDK/3.2/test/common/test_util'
"C:/Qualcomm/Hexagon_SDK/3.2/Tools/bin/hexagon-clang"  -mv60 -c -v -G0 -g -O0  -Wall -Werror -Wno-cast-align -Wpointer-arith -Wno-missing-braces -Wno-strict-aliasing  -fno-exceptions -fno-strict-aliasing -fno-zero-initialized-in-bss -fdata-sections -mllvm -disable-hsdr -fpic -D__V_DYNAMIC__ -Wstrict-prototypes -Wnested-externs      -D__FILENAME__=\"test_utils.c\" -D_DEBUG  -Iinc -Isrc -IC:\Qualcomm\Hexagon_SDK\3.2/incs -IC:\Qualcomm\Hexagon_SDK\3.2/incs/stddef -Ihexagon_Debug_dynamic_toolv80_v60  -o hexagon_Debug_dynamic_toolv80_v60/test_utils.o src/test_utils.c
make[1]: Leaving directory `C:/Qualcomm/Hexagon_SDK/3.2/test/common/test_util'
make: *** [MAKE_D_7_LIBDIR] Error 1
make: Leaving directory `C:/Qualcomm/Hexagon_SDK/3.2/examples/common/calculator'
 
Thank you.

 

 

  • Up0
  • Down0
Helu
Join Date: 3 Feb 17
Posts: 8
Posted: Wed, 2017-05-31 06:15

That's one of the good old errors in the tool set. You need to add the PATHs for hexagon tools yourself to the setup_sdk_env.cmd file.

​It should be something like:

set PATH=%HEXAGON_SDK_ROOT%\tools\utils\gow-0.8.0\bin;%PATH%
set PATH=%HEXAGON_SDK_ROOT%\tools\debug\devcon\i386;%PATH%
set PATH=C:\Python27;%PATH%

​Br,
Henrik

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