Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
3 years, 5 months ago.
Eclipse Make Compile Fail When using mbed-cli gnuarmeclipse Exporter
I've spent a few hours trying to get my program to compile for the LPC1768 target using mbed-cli, Eclipse IDE (with GNU ARM Eclipse plug-in) and the GCC ARM toolchain to no avail:
I keep getting the following linker error:
arm-none-eabi-g++: error: ./mbed-os/features/FEATURE_LWIP/lwi-interface/lwip/src/netif/lwip_lowpan6.o: No such file or directory
It's as if it hasn't compiled the lwip_lowpan6.c file...
I checked the targets.json file in mbed-os for the LPC1768 target and LWIP is included as a supported feature, so it should be being compiled?
I'm using Windows 10 x64 and the GnuWin32 tools for make.
My process so far has been:
- Import project using mbed-cli
- Export project using mbed-cli (mbed export -m LPC1768 -i gnuarmeclipse) to set it up for Eclipse
- Run a "Build all" in Eclipse for the Release build configuration (as set up by the mbed-cli gnuarmeclipse exporter)
I seem to be able to get it to build successfully if I bypass make and just force the build configuration to directly call the mbed-cli "mbed compile", but then any compile errors don't get automatically flagged up in the source code viewer of the IDE.
3 years, 4 months ago.
I'm sorry to hear that. According to https://mcuoneclipse.com/2015/03/29/solving-the-8192-character-command-line-limit-on-windows/:
The solution is available from the version v2.6.1 or later of the GNU ARM Eclipse Plugins build tools
Let me know if upgrading helps!