New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino lib no more resolved after update to v2 #216

Closed
ncolomer opened this Issue May 25, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@ncolomer

ncolomer commented May 25, 2015

Hi there!

I just updated platformio to the brand new v2 (thanks for this release!) and tried the cool init --ide eclipse feature.
But it appears that libs such as avr/io.h or stdlib.h (included in Arduino.h) are no more resovled by eclipse (even after clean / rebuild), resulting in build error in the IDE whereas CLI build is running well.

See following picture:
issue

I zipped the project if you want to test by yourself. Maybe I've done things the wrong way, please tell me.

Cheers,
Nicolas

@ivankravets ivankravets added the bug label May 25, 2015

@ivankravets ivankravets self-assigned this May 25, 2015

@ivankravets ivankravets added this to the 2.0.1 milestone May 25, 2015

@ivankravets

This comment has been minimized.

Member

ivankravets commented May 25, 2015

I know it, thanks. Please add __AVR_ATmega328__ symbol.
Eclipse+PlatformIO

More details here http://www.ikravets.com/computer-life/programming/2014/06/20/building-and-debugging-atmel-avr-arduino-based-project-using-eclipse-ideplatformio

P.S: I'll fix it tomorrow.

@ncolomer

This comment has been minimized.

ncolomer commented May 26, 2015

As usual, thanks for your quick answer @ivankravets :)

It seems this is not enough to fix the issue, even after clean/rebuild the project from ide and from CLI, plus restarted eclipse.

screenshot

I also re-checked your blog post and it seems a directory was also missing: ${HOME}/.platformio/packages/toolchain-atmelavr/avr/include. So I added it to all languages and, and it fixed the issue!

@ivankravets

This comment has been minimized.

Member

ivankravets commented May 26, 2015

As usual, thanks for your quick answer @ivankravets :)

Thank you too for the report and retweets!!! 👍

I also re-checked your blog post and it seems a directory was also missing: ${HOME}/.platformio/packages/toolchain-atmelavr/avr/include. So I added it to all languages and, and it fixed the issue!

This issue was fixed in #210

Please add AVR_ATmega328 symbol.

This symbol is required for Serial and etc lib. Basing on MCU framework detects how much UARTs device has. I'll fix it in 2.0.1 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment