Submitted by moptop on Thu, 09/08/2011 - 02:48
Posted in
Hi, I got the arduino uno so I can start my project but I get an error when I try to upload minie to the the arduino.
miniE.cpp:24:77: error: RTClib.h: No such file or directory
miniE:194: error: 'DateTime' does not name a type
miniE:416: error: 'RTC_DS1307' does not name a type
miniE:418: error: 'DateTime' does not name a type
miniE.cpp: In function 'void setup()':
miniE:529: error: 'RTC' was not declared in this scope
miniE.cpp: In function 'void loop()':
miniE:735: error: 'time' was not declared in this scope
miniE:735: error: 'RTC' was not declared in this scope
miniE.cpp: In function 'void write_cfg()':
mE_eeprom:254: error: 'program_datetime' was not declared in this scope
miniE.cpp: In function 'void restore_cfg()':
mE_eeprom:349: error: 'program_datetime' was not declared in this scope
miniE.cpp: In function 'void add_newProgram()':
mE_program:46: error: 'program_datetime' was not declared in this scope
mE_program:46: error: 'RTC' was not declared in this scope
miniE.cpp: In function 'void delete_program()':
mE_program:85: error: 'program_datetime' was not declared in this scope
miniE.cpp: In function 'void check_programs()':
mE_program:141: error: 'time' was not declared in this scope
mE_program:153: error: 'time' was not declared in this scope
mE_program:153: error: 'program_datetime' was not declared in this scope
mE_program:166: error: 'time' was not declared in this scope
mE_program:166: error: 'program_datetime' was not declared in this scope
miniE.cpp: In function 'void do_screen()':
mE_ui:206: error: 'time' was not declared in this scope
miniE.cpp: In function 'void paint_status_screen()':
mE_ui_content:156: error: 'time' was not declared in this scope
miniE.cpp: In function 'void fill_screen_array()':
mE_ui_content:339: error: 'program_datetime' was not declared in this scope
mE_ui_content:349: error: 'program_datetime' was not declared in this scope
miniE.cpp: In function 'void paint_status_time()':
mE_ui_content:1352: error: 'time' was not declared in this scope
miniE.cpp: In function 'void paint_status_program_time()':
mE_ui_content:1423: error: 'program_datetime' was not declared in this scope
miniE:194: error: 'DateTime' does not name a type
miniE:416: error: 'RTC_DS1307' does not name a type
miniE:418: error: 'DateTime' does not name a type
miniE.cpp: In function 'void setup()':
miniE:529: error: 'RTC' was not declared in this scope
miniE.cpp: In function 'void loop()':
miniE:735: error: 'time' was not declared in this scope
miniE:735: error: 'RTC' was not declared in this scope
miniE.cpp: In function 'void write_cfg()':
mE_eeprom:254: error: 'program_datetime' was not declared in this scope
miniE.cpp: In function 'void restore_cfg()':
mE_eeprom:349: error: 'program_datetime' was not declared in this scope
miniE.cpp: In function 'void add_newProgram()':
mE_program:46: error: 'program_datetime' was not declared in this scope
mE_program:46: error: 'RTC' was not declared in this scope
miniE.cpp: In function 'void delete_program()':
mE_program:85: error: 'program_datetime' was not declared in this scope
miniE.cpp: In function 'void check_programs()':
mE_program:141: error: 'time' was not declared in this scope
mE_program:153: error: 'time' was not declared in this scope
mE_program:153: error: 'program_datetime' was not declared in this scope
mE_program:166: error: 'time' was not declared in this scope
mE_program:166: error: 'program_datetime' was not declared in this scope
miniE.cpp: In function 'void do_screen()':
mE_ui:206: error: 'time' was not declared in this scope
miniE.cpp: In function 'void paint_status_screen()':
mE_ui_content:156: error: 'time' was not declared in this scope
miniE.cpp: In function 'void fill_screen_array()':
mE_ui_content:339: error: 'program_datetime' was not declared in this scope
mE_ui_content:349: error: 'program_datetime' was not declared in this scope
miniE.cpp: In function 'void paint_status_time()':
mE_ui_content:1352: error: 'time' was not declared in this scope
miniE.cpp: In function 'void paint_status_program_time()':
mE_ui_content:1423: error: 'program_datetime' was not declared in this scope
'
Thats the error I got. I looked around for a fix but cant find one.

Maybe take this over to the
Maybe take this over to the miniEngine page.
http://openmoco.org/node/364
I had pretty similar errors, wht I found is to update the Arduino IDE, 0.22 is most recent I think, to the most recent version and get this RTC library
http://jeelabs.net/projects/cafe/wiki/RTClib
It looks like you may not have opened the miniE in Arduino properly. You need to download the tarball version which has everything in it, miniE is modular so there are 7 files or so. Decompress, put the miniE folder in folder that holds the sketchs then start Arduino and open from the sketch pulldown and all files will open in the Arduino window. Compile and see what errors you get. You may only need to get the RTC library. In miniE.pde there sill be a list of other software the sketch needs to operate and you may already have a lot of it from the Arduino install. I think I actually have 3 or 4 versions installed in my sketch folder at the moment. I have a folder called miniE v0.7 and miniE (just this) as a subfolder. If you open in the Arduino window there will be a list of all the stuff in the sketch folder so it's pretty easy.
I hope that's not too confusing. CM checks in over at the miniE page here so that's a better place for questions.
Cheers
Hey RCFisher. Thank you for
Hey RCFisher. Thank you for the reply. I did end up finding my mistake this morning. I had RTClib installed in a wrong location. I did a drag and drop into the wrong folder.
Thanks for the help and the tip. Ill post over there if I have questions.