Closed marmik18 closed 3 years ago
I have a similar error tring to compile this program for the arduino mega 2560. Its made for the teensy but i hope its possible to modify it for the mega2560.
anybody have a clue if its doable ? What should be modified or what direction to look to get it compiling?
i already tried manually insert the servo.h and other missing libraries but it only makes it worse?
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html
PLATFORM: Atmel AVR > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)
HARDWARE: ATMEGA2560 16MHz 8KB RAM (248KB Flash)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 92 compatible libraries
Scanning dependencies...
Dependency Graph
|--
compilation terminated. In file included from src\RobotController.h:21:0, from src\MRILParser.h:6, from src\MRCPParser.h:6, from src\MRCPParser.cpp:1: src\VarSpeedServo.h:9:19: fatal error: Servo.h: No such file or directory
compilation terminated. src\EEPromStorage.cpp: In member function 'void EEPromStorage::appendMessage(char, char)': src\EEPromStorage.cpp:14:12: error: 'EEPROM' was not declared in this scope while (EEPROM.read(pointer) != 0) { ^ src\EEPromStorage.cpp:23:5: error: 'EEPROM' was not declared in this scope EEPROM.write(pointer, length); ^ src\EEPromStorage.cpp:27:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t i = 0; i < length; i++) { ^ src\EEPromStorage.cpp:34:19: warning: array subscript has type 'char' [-Wchar-subscripts] message[length] = 0; ^ src\EEPromStorage.cpp: In member function 'char EEPromStorage::getMessage(unsigned int, char)': src\EEPromStorage.cpp:42:13: error: 'EEPROM' was not declared in this scope if (EEPROM.read(pointer) == 0) { // last message ^ src\EEPromStorage.cpp:45:20: error: 'EEPROM' was not declared in this scope pointer += EEPROM.read(pointer) + 1; ^ src\EEPromStorage.cpp:48:26: error: 'EEPROM' was not declared in this scope char messageLength = EEPROM.read(pointer); ^ src\EEPromStorage.cpp:54:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t i = 0; i < messageLength; i++) { ^ src\EEPromStorage.cpp: In member function 'char EEPromStorage::getByte(int)': src\EEPromStorage.cpp:66:12: error: 'EEPROM' was not declared in this scope return EEPROM.read(address); ^ src\EEPromStorage.cpp: In member function 'int EEPromStorage::getNumberOfMessages()': src\EEPromStorage.cpp:73:12: error: 'EEPROM' was not declared in this scope while (EEPROM.read(pointer) != 0) { ^ src\EEPromStorage.cpp: In member function 'void EEPromStorage::clear()': src\EEPromStorage.cpp:93:5: error: 'EEPROM' was not declared in this scope EEPROM.write(0, 0); ^ src\IOLogic.cpp: In member function 'void IOLogic::addCondition(unsigned int, unsigned int)': src\IOLogic.cpp:17:22: error: 'INPUT_PULLDOWN' was not declared in this scope pinMode(pin, INPUT_PULLDOWN); ^ src\IOLogic.cpp: In member function 'void IOLogic::setOutput(unsigned int, unsigned int)': src\IOLogic.cpp:32:20: warning: invalid conversion from 'unsigned int' to 'const char' [-fpermissive] logger.info(pin); ^ In file included from src\IOLogic.cpp:4:0: src\Logger.h:30:10: note: initializing argument 1 of 'void Logger::info(const char, bool)' void info(const char text, ^ src\IOLogic.cpp:34:22: warning: invalid conversion from 'unsigned int' to 'const char' [-fpermissive] logger.info(state); ^ In file included from src\IOLogic.cpp:4:0: src\Logger.h:30:10: note: initializing argument 1 of 'void Logger::info(const char, bool)' void info(const char text, ^ [.pioenvs\megaatmega2560\src\IOLogic.cpp.o] Error 1 [.pioenvs\megaatmega2560\src\EEPromStorage.cpp.o] Error 1 *** [.pioenvs\megaatmega2560\src\MRILParser.cpp.o] Error 1 In file included from src\RobotController.h:21:0, from src\RobotController.cpp:2: src\VarSpeedServo.h:9:19: fatal error: Servo.h: No such file or directory
compilation terminated. [.pioenvs\megaatmega2560\src\RobotController.cpp.o] Error 1 [.pioenvs\megaatmega2560\src\MRCPParser.cpp.o] Error 1 In file included from src\VarSpeedServo.cpp:1:0: src\VarSpeedServo.h:9:19: fatal error: Servo.h: No such file or directory
compilation terminated. *** [.pioenvs\megaatmega2560\src\VarSpeedServo.cpp.o] Error 1 In file included from src\main.cpp:12:0: src\VarSpeedServo.h:9:19: fatal error: Servo.h: No such file or directory
compilation terminated. *** [.pioenvs\megaatmega2560\src\main.cpp.o] Error 1 =============================================================================================== [ERROR] Took 7.85 seconds ===============================================================================================
======================================================================================================= [SUMMARY] ======================================================================================================= Environment megaatmega2560 [ERROR] Environment teensy31 [SKIP] Environment teensy35 [SKIP]`
Sorry i am new to platformio could you please help me out