Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Issue With Arduino CDT & ESP8266 Program
Issue With Arduino CDT & ESP8266 Program [message #1794972] Tue, 11 September 2018 23:05 Go to next message
The sed is currently offline The sedFriend
Messages: 1
Registered: September 2018
Junior Member
Hello all,

I am trying to compile a Generic ESP8266 Module program using the Arduino CDT plugin. I installed a fresh instance of Eclipse Photon, downloaded the esp8266 board using the Arduino Downloads manager, and tried to compile a basic program and receive this error:

c:/users/kmahajan/.arduinocdt/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: cannot open linker script file ../ld/eagle.app.v6.common.ld: No such file or directory
collect2.exe: error: ld returned 1 exit status
make: *** [Tesst.elf] Error 1
makefile:101: recipe for target 'Tesst.elf' failed


This program does compile in the Arduino IDE, but when I bring it over to Eclipse, it does not compile. Does anyone have any suggestion on how I can get any program to compile for the ESP8266 module? Any good documentation for setting up the esp8266 in Arduino correctly? Thanks guys.
Re: Issue With Arduino CDT & ESP8266 Program [message #1795280 is a reply to message #1794972] Wed, 19 September 2018 18:37 Go to previous message
Paolo Borsi is currently offline Paolo BorsiFriend
Messages: 1
Registered: September 2018
Junior Member
Hi,
I had the same problem and then I've found a solution.

Following advices from here:
https://github.com/Sloeber/arduino-eclipse-plugin/issues/984

I modified the file

~/.arduinocdt/packages/esp8266/hardware/esp8266/2.4.2/platform.txt

at line 98 and added ( in bold )

recipe.c.combine.pattern={recipe.hooks.linking.prelink.1.pattern};"{compiler.path}{compiler.c.elf.cmd}" -Wl,-Map "-Wl,{build.path}/{build.project_name}.map" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" -Wl,--start-group {object_files} "{build.path}/arduino.ar" {compiler.c.elf.libs} -Wl,--end-group "-L{build.path}"

Hope it helps
Previous Topic:Project from local git repo not indexing
Next Topic:C++ Template Find References
Goto Forum:
  


Current Time: Tue Sep 25 09:49:46 GMT 2018

Powered by FUDForum. Page generated in 0.01663 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top