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
But I have an error when trying to do it for the hexagon module.
C:\Qualcomm\Hexagon_SDK\3.2\examples\common\calculator>make tree V=hexagon_Debug_dynamic CDSP=1
El sistema no puede encontrar la ruta especificada.
"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
---- 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'
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