platformio-core: Compilation fails on Windows

Having trouble compiling on Windows. Installed python 2.8.3, ran getplatformio.py, then trying to compile project:

C:\arduino>platformio install atmelavr timsp430 titiva
Installing toolchain-atmelavr package:
Already installed
Installing tool-avrdude package:
Already installed
Installing framework-arduinoavr package:
Already installed
The platform 'atmelavr' has been successfully installed!
C:\arduino>platformio run
Processing myuno environment:
avr-g++ /Fo.pioenvs\myuno\src\sketch.obj /c .pioenvs\myuno\src\sketch.cpp -fno-exceptions -g -Os -ffunction-sections -fdata-sections -MMD -mmcu=atme
a328p /DF_CPU=16000000L /DARDUINO=157 /DARDUINO_AVR_UNO /I.pioenvs\myuno\core /I.pioenvs\myuno\variant
.pioenvs\myuno\src\sketch.cpp:1:21: warning: Arduino.h: No such file or directory
sketch.ino: In function 'void setup()':
sketch.ino:5: error: 'Serial' was not declared in this scope
sketch.ino: In function 'void loop()':
sketch.ino:17: error: 'delay' was not declared in this scope
avr-g++: /Fo.pioenvs\myuno\src\sketch.obj: No such file or directory
avr-g++: /c: No such file or directory
avr-g++: /DF_CPU=16000000L: No such file or directory
avr-g++: /DARDUINO=157: No such file or directory
avr-g++: /DARDUINO_AVR_UNO: No such file or directory
avr-g++: /I.pioenvs\myuno\core: No such file or directory
avr-g++: /I.pioenvs\myuno\variant: No such file or directory
scons: *** [.pioenvs\myuno\src\sketch.obj] Error 1

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 22 (11 by maintainers)

Commits related to this issue

Most upvoted comments

We are interrested!