Wednesday, 15 August 2012

Why is Eclipse ignoring my Cross GCC tool prefix? -



Why is Eclipse ignoring my Cross GCC tool prefix? -

i attempting build sample project using arm embedded gcc toolchain; this, using eclipse's internal builder.

in settings, project properties -> c/c++ build -> settings -> tool settings -> cross settings, prefix set arm-none-eabi- , path set path of arm toolchain (c:\program files (x86)\gnu tools arm embedded\4.7 2012q4\bin).

when effort build project, looks this:

17:58:13 **** incremental build of configuration debug project template_test **** info: internal builder used build gcc -ic:/foo/libraries/stm32f0xx_stdperiph_driver/inc -ic:/foo/libraries/cmsis/device/st/stm32f0xx/include -ic:/foo/libraries/cmsis/include -o0 -g3 -wall -c -fmessage-length=0 -o "libraries\\stm32f0xx_stdperiph_driver\\src\\stm32f0xx_adc.o" "..\\libraries\\stm32f0xx_stdperiph_driver\\src\\stm32f0xx_adc.c" cannot run programme "gcc": launching failed

... , error how gcc not found in path. which, of course, not. there in path, however, arm-none-eabi-gcc.exe, reason, eclipse not inclined run one.

why not?

i have discovered if alter "command" "cross gcc compiler" (project properties -> c/c++ build -> settings -> tool settings -> cross gcc compiler -> command) "gc" (from "gcc") eclipse attempts run "arm-none-eabi-gc" instead of "gc". sense that's of import clue, don't understand it.

i had similar problem. added path prefix , seemed work. seek using short windows file path: c:/progra~2/ ...

eclipse gcc arm cross-compiling

No comments:

Post a Comment