Forums - Program "g++" not found in PATH (win 7)

30 posts / 0 new
Last post
Program "g++" not found in PATH (win 7)
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Thu, 2017-12-28 07:20

I've set  Windows path variable to point to "C:\cygwin64\bin", but the following errors still occour.

Program "g++" not found in PATH

Program "gcc" not found in PATH

Is there any further settings?

thanks,

William

  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Thu, 2017-12-28 22:16

May I know how the project that you are building is created ? Which SDK are you using ? 

 

Regards, 

Chenna 

  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Thu, 2017-12-28 22:59

Hi chennak,

I import the example project (capi_v2_gain)

file-->import-->import hexagon project-->common library(.lib/.so)

There is same issue while creating a new hexagon project.

the SDK I use is " Hexagon_SDK <3.3.2"

thanks,

William

  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Fri, 2017-12-29 00:05

May I know the SDK document that you are following to build ? 

Did you give the path C:\Qualcomm\Hexagon_SDK\3.3.2\examples\audio\capi_v2_gain\eclipse\capi_v2_gain as project location while importing or just C:\Qualcomm\Hexagon_SDK\3.3.2\examples\audio\capi_v2_gain ? 

Regards, 

Chenna 

  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Fri, 2017-12-29 00:42

Hi Chenna,

I give the path as following 

C:\Qualcomm\Hexagon_SDK\3.3.2\self_test\capi_v2_gain\eclipse\capi_v2_gain

I'm not sure the meaning of "May I know the SDK document that you are following to build".

Do you mean like the file of "file:///C:/Qualcomm/Hexagon_SDK/3.3.0/docs/Environments_Hexagon%20IDE.html?q=sdk" ?

thanks,

William

  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Fri, 2017-12-29 08:42

yes, What is self_test\capi_v2_gain folder ? Is it same as examples/audio/capi_v2_gain ? 

  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Fri, 2017-12-29 20:53
yes, It's same as examples/audio/capi_v2_gain Thanks, William
  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Fri, 2017-12-29 20:53
yes, It's same as examples/audio/capi_v2_gain Thanks, William
  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Tue, 2018-01-02 01:18

you dont need to set "C:\cygwin64\bin" in PATH, you just need to launch eclipse using C:\Qualcomm\Hexagon_SDK\3.3.2\scripts\launch_hexagon_ide.cmd

  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Tue, 2018-01-02 02:34

Hi Chenna,

errors of "Program "g++" not found in PATH" & "Program "gcc" not found in PATH" are disappeared.

but threre are still the folloing errors.

Description Resource Path Location Type Type 'CAPI_V2_EBADPARAM' could not be resolved capi_v2_gain.c /capi_v2_gain/src

Description Resource Path Location Type Type 'CAPI_V2_EFAILED' could not be resolved capi_v2_gain.c /capi_v2_gain/src
Description Resource Path Location Type Type 'CAPI_V2_EUNSUPPORTED' could not be resolved capi_v2_gain.c /capi_v2_gain/src
Description Resource Path Location Type Type 'int16_t' could not be resolved capi_v2_gain.c /capi_v2_gain/src
Description Resource Path Location Type Type 'int8_t' could not be resolved capi_v2_gain.c /capi_v2_gain/src
Description Resource Path Location Type Type 'int32_t' could not be resolved capi_v2_gain.c /capi_v2_gain/src
 

thanks,

William

  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Tue, 2018-01-02 02:52
Hi Chenna,
 
errors of  "g++  not found in PATH" & "gcc not found in PATH" are disappeared.
 
but the following errors are still occour.
 
Description Resource Path Location Type Type 'CAPI_V2_EBADPARAM' could not be resolved capi_v2_gain.c /capi_v2_gain/src 
Description Resource Path Location Type Type 'CAPI_V2_EFAILED' could not be resolved capi_v2_gain.c /capi_v2_gain/src
Description Resource Path Location Type Type 'CAPI_V2_EUNSUPPORTED' could not be resolved capi_v2_gain.c /capi_v2_gain/src
Description Resource Path Location Type Type 'int16_t' could not be resolved capi_v2_gain.c /capi_v2_gain/src 
Description Resource Path Location Type Type 'int8_t' could not be resolved capi_v2_gain.c /capi_v2_gain/src 
Description Resource Path Location Type Type 'int32_t' could not be resolved capi_v2_gain.c /capi_v2_gain/src 
 
 
 
thanks,
 
William
  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Tue, 2018-01-02 04:35

CAPI_V2_EBADPARAM, CAPI_V2_EFAILED , CAPI_V2_EUNSUPPORTED are defined in 

C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio\Elite_CAPI_V2_types.h 

 

Do you have this PATH (C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio) under Includes in your project 

  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Tue, 2018-01-02 07:37
Hi Chenna,
 
I have this PATH (C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio) under Includes in my project .
After I add the path (C:\Qualcomm\Hexagon_SDK\3.3.2\tools\android-ndk-r14b\platforms\android-21\arch-x86_64\usr\include), the errors are gone.
 
but have the following warnning:
Description Resource Path Location Type
unknown attribute 'alloc_size' ignored [-Wunknown-attributes] capi_v2_gain line 30, external location: C:\Qualcomm\Hexagon_SDK\3.3.2\tools\android-ndk-r14b\platforms\android-21\arch-x86_64\usr\include\malloc.h C/C++ Problem
 
/system/bin/sh: /data/capi_v2_gain.so: not executable: 32-bit ELF file
 
thanks,
 
William
  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Tue, 2018-01-02 08:55

Do you have this path C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio already or you added now ? 

Actually you dont need to add any paths manually. If you just import C:\Qualcomm\Hexagon_SDK\3.3.2\examples\audio\capi_v2_gain\eclipse\capi_v2_gain as common library it should build without any errors. I am not sure why are you seeing these errors . 

  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Tue, 2018-01-02 08:55

Do you have this path C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio already or you added now ? 

Actually you dont need to add any paths manually. If you just import C:\Qualcomm\Hexagon_SDK\3.3.2\examples\audio\capi_v2_gain\eclipse\capi_v2_gain as common library it should build without any errors. I am not sure why are you seeing these errors . 

  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Tue, 2018-01-02 08:55

Do you have this path C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio already or you added now ? 

Actually you dont need to add any paths manually. If you just import C:\Qualcomm\Hexagon_SDK\3.3.2\examples\audio\capi_v2_gain\eclipse\capi_v2_gain as common library it should build without any errors. I am not sure why are you seeing these errors . 

  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Tue, 2018-01-02 08:55

Do you have this path C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio already or you added now ? 

Actually you dont need to add any paths manually. If you just import C:\Qualcomm\Hexagon_SDK\3.3.2\examples\audio\capi_v2_gain\eclipse\capi_v2_gain as common library it should build without any errors. I am not sure why are you seeing these errors . 

  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Tue, 2018-01-02 08:56

Do you have this path C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio already or you added now ? 

Actually you dont need to add any paths manually. If you just import C:\Qualcomm\Hexagon_SDK\3.3.2\examples\audio\capi_v2_gain\eclipse\capi_v2_gain as common library it should build without any errors. I am not sure why are you seeing these errors . 

  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Tue, 2018-01-02 16:20
Hi Chenna,

I have the path C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio already, I didn't add this path by myself.

If I'm not add the path (C:\Qualcomm\Hexagon_SDK\3.3.2\tools\android-ndk-r14b\platforms\android-21\arch-x86_64\usr\include),

there are the following errors.

Description Resource Path Location Type Type 'CAPI_V2_EBADPARAM' could not be resolvedcapi_v2_gain.c /capi_v2_gain/src

Description Resource Path Location Type Type 'CAPI_V2_EFAILED' could not be resolvedcapi_v2_gain.c /capi_v2_gain/src
Description Resource Path Location Type Type 'CAPI_V2_EUNSUPPORTED' could not be resolved capi_v2_gain.c /capi_v2_gain/src
Description Resource Path Location Type Type 'int16_t' could not be resolved capi_v2_gain.c/capi_v2_gain/src
Description Resource Path Location Type Type 'int8_t' could not be resolved capi_v2_gain.c/capi_v2_gain/src
Description Resource Path Location Type Type 'int32_t' could not be resolved capi_v2_gain.c/capi_v2_gain/src
 
and theso two headers show "unresolved inclusion"
#include <stdlib.h>
#include <string.h>
 
thanks,
 
William
  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Tue, 2018-01-02 16:26
Hi Chenna,
I have the path C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio already, I didn't add this path by myself.
 
If I'm not add the path (C:\Qualcomm\Hexagon_SDK\3.3.2\tools\android-ndk-r14b\platforms\android-21\arch-x86_64\usr\include),
 
there are the following errors.
 
Description Resource Path Location Type Type 'CAPI_V2_EBADPARAM' could not be resolvedcapi_v2_gain.c /capi_v2_gain/src
 
Description Resource Path Location Type Type 'CAPI_V2_EFAILED' could not be resolvedcapi_v2_gain.c /capi_v2_gain/src
Description Resource Path Location Type Type 'CAPI_V2_EUNSUPPORTED' could not be resolved capi_v2_gain.c /capi_v2_gain/src
Description Resource Path Location Type Type 'int16_t' could not be resolved capi_v2_gain.c/capi_v2_gain/src
Description Resource Path Location Type Type 'int8_t' could not be resolved capi_v2_gain.c/capi_v2_gain/src
Description Resource Path Location Type Type 'int32_t' could not be resolved capi_v2_gain.c/capi_v2_gain/src
 
and theso two headers show "unresolved inclusion"
#include <stdlib.h>
#include <string.h>
 
thanks,
 
William
  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Tue, 2018-01-02 23:29

if you have this C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio  already , you should not see below errors 

 

Type 'CAPI_V2_EBADPARAM' could not be resolvedcapi_v2_gain.c /capi_v2_gain/src
 
Type 'CAPI_V2_EFAILED' could not be resolvedcapi_v2_gain.c /capi_v2_gain/src
Type Type 'CAPI_V2_EUNSUPPORTED' could not be resolved capi_v2_gain.c /capi_v2_gain/src
 
As these are defined in C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio\Elite_CAPI_V2_types.h
  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Wed, 2018-01-03 00:48
Hi Chenna,
I have the path C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio already, and have the Elite_CAPI_V2_types.h file at C:\Qualcomm\Hexagon_SDK\3.3.2\incs\audio folder.
 
I'm not sure if these two issues cause the errors.
#include <stdlib.h> --> "unresolved inclusion"
#include <string.h> --> "unresolved inclusion"
 

thanks,

William

  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Wed, 2018-01-03 01:38

Can you please share the build log in the console window. 

This is my build log. 

 

15:03:14 **** Rebuild of configuration LLVM_Static-Debug for project capi_v2_gain1 ****
Info: Internal Builder is used for build
hexagon-clang -mv60 -D__FILENAME__=__FILE__ -D_DEBUG -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/audio -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/stddef -IC:/Qualcomm/Hexagon_SDK/3.3.2/examples/audio/capi_v2_gain/inc -IC:/Qualcomm/Hexagon_SDK/3.3.2/libs/audio/capi_v2_utils_props/inc -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/a1std -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\capi_v2_gain.o" "..\\..\\..\\src\\capi_v2_gain.c" 
hexagon-clang -mv60 -D__FILENAME__=__FILE__ -D_DEBUG -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/audio -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/stddef -IC:/Qualcomm/Hexagon_SDK/3.3.2/examples/audio/capi_v2_gain/inc -IC:/Qualcomm/Hexagon_SDK/3.3.2/libs/audio/capi_v2_utils_props/inc -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/a1std -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\capi_v2_utils_props.o" "..\\..\\..\\..\\..\\..\\libs\\audio\\capi_v2_utils_props\\src\\capi_v2_utils_props.c" 
hexagon-ar -r capi_v2_gain1.lib "src\\capi_v2_utils_props.o" "src\\capi_v2_gain.o" 
C:\Qualcomm\Hexagon_SDK\3.3.2\tools\HEXAGON_Tools\8.1.05\Tools\bin\hexagon-ar.exe: creating capi_v2_gain1.lib
 
15:03:18 Build Finished (took 3s.406ms)
 
  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Wed, 2018-01-03 17:48
Hi Chenna,
 
update my build log
 
09:42:10 **** Incremental Build of configuration LLVM_Shared-Debug for project capi_v2_gain ****
Info: Internal Builder is used for build
hexagon-clang -mv60 -D__FILENAME__=__FILE__ -D_DEBUG -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/audio -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/stddef -IC:/Qualcomm/Hexagon_SDK/3.3.2/examples/audio/capi_v2_gain/inc -IC:/Qualcomm/Hexagon_SDK/3.3.2/libs/audio/capi_v2_utils_props/inc -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/a1std -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -o "src\\capi_v2_utils_props.o" "..\\..\\..\\..\\..\\..\\libs\\audio\\capi_v2_utils_props\\src\\capi_v2_utils_props.c" 
hexagon-clang -mv60 -D__FILENAME__=__FILE__ -D_DEBUG -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/audio -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/stddef -IC:/Qualcomm/Hexagon_SDK/3.3.2/examples/audio/capi_v2_gain/inc -IC:/Qualcomm/Hexagon_SDK/3.3.2/libs/audio/capi_v2_utils_props/inc -IC:/Qualcomm/Hexagon_SDK/3.3.2/incs/a1std -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -o "src\\capi_v2_gain.o" "..\\..\\..\\src\\capi_v2_gain.c" 
hexagon-clang++ "src\\capi_v2_utils_props.o" "src\\capi_v2_gain.o" -mv60 -nostartfiles -nodefaultlibs -nostdlib -shared -G0 -fPIC -ocapi_v2_gain.so 
 
09:42:10 Build Finished (took 535ms)
 
thanks,
William
 
  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Wed, 2018-01-03 22:31

From the build log i see that you are able to build successfully, when are you seeing above mentioned errors ? 

  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Wed, 2018-01-03 23:43

Hi Chennak,

I see these errors at "problems" panel no matter before or after building the project.

Is that mean I can ignore these errors because of building sucessfully?

thanks,

William

 

  • Up0
  • Down0
chennak
Join Date: 22 Sep 16
Posts: 78
Posted: Thu, 2018-01-04 00:08

yes you can ignore errors in Problems  Panel as long as your project buids successfully. 

  • Up0
  • Down0
william2_wu
Join Date: 28 Dec 17
Posts: 22
Posted: Thu, 2018-01-04 03:27

Hi Chennak,

Thanks a lot.

William

 

  • Up0
  • Down0
DavidZ
Join Date: 9 Aug 16
Posts: 6
Posted: Mon, 2018-02-05 17:37

I have exactly same issues on this SDK v3.3.2. Building and runinng are OK. But the errors in Problem panel just make users uncomfortable. Is it a bug in the tools or some configuration related??

Thanks.

 

  • Up0
  • Down0
DavidZ
Join Date: 9 Aug 16
Posts: 6
Posted: Tue, 2018-02-13 13:38

Hi Guys,

Do you have any findings on the errors mentioned before?

Working on the similiar project as "capi_v2_gain", I have some issues on testing "test_capi_v2_dummy_ecns" based on "capi_v2_dummy_ecns". "Run" is OK, but "Debug" is always hangup in the middle and I have to close the workspace to cancel the tasks!.

Then I tried to compare it with "capi_v2_gain" project you guys discussed, but found out building "test_capi_v2_gain" project always have a link error.

 13:13:07 **** Incremental Build of configuration LLVM_Debug for project test_capi_v2_gain ****

Info: Internal Builder is used for build
hexagon-clang++ "src\\test_utils.o" "src\\test_profile_sim.o" "src\\test_profile.o" "src\\test_main.o" "src\\test_capi_v2.o" "src\\capi_v2_utils_props.o" "src\\capi_v2_test.o" "src\\capi_v2_gain_test.o" "src\\cae.o" "src\\atomic.o" "..\\..\\capi_v2_gain\\LLVM_Static-Debug\\capi_v2_gain.lib" "..\\..\\..\\..\\..\\..\\libs\\common\\rtld\\ship\\hexagon_Debug_dynamic_toolv72_v60\\rtld.a" "..\\..\\..\\..\\..\\..\\libs\\common\\a1std\\ship\\hexagon_Debug_dynamic_toolv72_v60\\a1std.a" "..\\..\\..\\..\\..\\..\\libs\\audio\\voice_imc_utils\\ship\\hexagon_Debug_dynamic_toolv72_v60\\voice_imc_utils.a" -lgcc -lstdc++ -mv60 -Wl,--start-group -Wl,--whole-archive C:/Qualcomm/Hexagon_SDK/3.3.2/tools/HEXAGON_Tools/8.1.05/Tools/target/hexagon/lib/v60/G0/libhexagon.a -Wl,--no-whole-archive -Wl,--end-group -Wl,--dynamic-linker= -Wl,-E -Wl,--force-dynamic -otest_capi_v2_gain 
Error: ..\..\..\..\..\..\libs\audio\voice_imc_utils\ship\hexagon_Debug_dynamic_toolv72_v60\voice_imc_utils.a(.text+0x818): undefined reference to `std_memscpy'
Fatal: Linking had errors.
hexagon-clang++.exe: error: hexagon-link command failed with exit code 1 (use -v to see invocation)
 
13:13:07 Build Finished (took 395ms)
 
All the mentioned projects are original ones which come with SDK3.3.2 window version (win7) package.
 
Do you have any hints?
 
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.