emonGLCD compile problem

Was trying to upload to my new emonGLCD, but got this problem. (emonGLCD_solarPV_AutoTime_TempLog)

Looks like a problem with the dallas-temperature-control lib.

Any help ?

____________________________________________________________________________________________ 

 

 OneWire\OneWire.cpp.o: In function `OneWire::depower()':

D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:269: multiple definition of `OneWire::depower()'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:269: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::reset_search()':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:282: multiple definition of `OneWire::reset_search()'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:282: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::crc8(unsigned char*, unsigned char)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:464: multiple definition of `OneWire::crc8(unsigned char*, unsigned char)'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:464: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::crc16(unsigned char*, unsigned int)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:502: multiple definition of `OneWire::crc16(unsigned char*, unsigned int)'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:502: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::check_crc16(unsigned char*, unsigned int, unsigned char*)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:496: multiple definition of `OneWire::check_crc16(unsigned char*, unsigned int, unsigned char*)'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:496: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::read_bit()':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:181: multiple definition of `OneWire::read_bit()'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:181: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::read()':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:234: multiple definition of `OneWire::read()'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:234: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::read_bytes(unsigned char*, unsigned int)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:244: multiple definition of `OneWire::read_bytes(unsigned char*, unsigned int)'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:244: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::write_bit(unsigned char)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:153: multiple definition of `OneWire::write_bit(unsigned char)'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:153: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::write(unsigned char, unsigned char)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:206: multiple definition of `OneWire::write(unsigned char, unsigned char)'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:206: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::skip()':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:266: multiple definition of `OneWire::skip()'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:266: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::select(unsigned char*)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:252: multiple definition of `OneWire::select(unsigned char*)'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:252: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::write_bytes(unsigned char const*, unsigned int, bool)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:220: multiple definition of `OneWire::write_bytes(unsigned char const*, unsigned int, bool)'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:220: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::reset()':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:119: multiple definition of `OneWire::reset()'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:119: first defined here
OneWire\OneWire.cpp.o: In function `OneWire::search(unsigned char*)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:311: multiple definition of `OneWire::search(unsigned char*)'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:311: first defined here
OneWire\OneWire.cpp.o: In function `OneWire':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:102: multiple definition of `OneWire::OneWire(unsigned char)'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:102: first defined here
OneWire\OneWire.cpp.o: In function `OneWire':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire/OneWire.cpp:102: multiple definition of `OneWire::OneWire(unsigned char)'
OneWire.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/OneWire.cpp:102: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `DateTime':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:41: multiple definition of `DateTime::DateTime(long)'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:41: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `DateTime':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:41: multiple definition of `DateTime::DateTime(long)'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:41: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `DateTime':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:66: multiple definition of `DateTime::DateTime(unsigned int, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:66: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `DateTime':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:66: multiple definition of `DateTime::DateTime(unsigned int, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:66: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `DateTime':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:87: multiple definition of `DateTime::DateTime(char const*, char const*)'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:87: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `DateTime':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:87: multiple definition of `DateTime::DateTime(char const*, char const*)'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:87: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `DateTime::get() const':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:112: multiple definition of `DateTime::get() const'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:112: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `DateTime::dayOfWeek() const':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:108: multiple definition of `DateTime::dayOfWeek() const'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:108: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `RTC_Millis::now()':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:202: multiple definition of `RTC_Millis::now()'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:202: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `DateTime':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:41: multiple definition of `RTC_Millis::offset'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:41: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `RTC_Millis::adjust(DateTime const&)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:198: multiple definition of `RTC_Millis::adjust(DateTime const&)'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:198: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `RTC_PCF8563::adjust(DateTime const&)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:155: multiple definition of `RTC_PCF8563::adjust(DateTime const&)'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:155: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `RTC_DS1307::adjust(DateTime const&)':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:120: multiple definition of `RTC_DS1307::adjust(DateTime const&)'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:120: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `RTC_PCF8563::now()':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:176: multiple definition of `RTC_PCF8563::now()'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:176: first defined here
jcw_rtclib_033ae7c\RTClib.cpp.o: In function `RTC_DS1307::now()':
D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\jcw_rtclib_033ae7c/RTClib.cpp:134: multiple definition of `RTC_DS1307::now()'
RTClib.cpp.o:C:\Users\lj\AppData\Local\Temp\build5246121009313586279.tmp/RTClib.cpp:134: first defined here
 
glyn.hudson's picture

Re: emonGLCD compile problem

Are you using version 372 of the Dallas temperature controll library? http://download.milesburton.com/Arduino/MaximTemperature/

You also need to have to oneWire library in the Arduino librarys folder. Remember to restart Arduino after adding a new lib: http://www.pjrc.com/teensy/td_libs_OneWire.html

 

Larsjo's picture

Re: emonGLCD compile problem

 Can see i have some work to do:

Any instance of "WConstants.h" or "wiring.h" needs to be replaced with "Arduino.h"

______________________________________________________________________-

If i use the onewire from Dallas:

 

 

 

 

 

 

 

 

 

 

 

In file included from D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:191,

                 from D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire\OneWire.cpp:85:

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:116: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const char*)' conflicts with

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:115: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)' here

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:117: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, char)' conflicts with

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:116: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const char*)' here

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:118: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' conflicts with

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:117: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, char)' here

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:119: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, int)' conflicts with

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:118: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned char)' here

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:120: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' conflicts with

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:119: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, int)' here

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:121: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long int)' conflicts with

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:120: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, unsigned int)' here

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:122: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, long unsigned int)' conflicts with

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/WString.h:121: error: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, long int)' here

In file included from D:\arduino\arduino-1.0-windows\arduino-1.0\libraries\OneWire\OneWire.cpp:85:

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:195: error: declaration of C function 'uint16_t makeWord(byte, byte)' conflicts with

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:194: error: previous declaration 'uint16_t makeWord(uint16_t)' here

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:205: error: declaration of C function 'long int random(long int)' conflicts with

d:/arduino/arduino-1.0-windows/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:504: error: previous declaration 'long int random()' here

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:206: error: declaration of C function 'long int random(long int, long int)' conflicts with

D:\arduino\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Arduino.h:205: error: previous declaration 'long int random(long int)' here

 

Larsjo's picture

Re: emonGLCD compile problem

 Ok, looks like its a onewire lib problem.

anybody got this to work with arduino 1

glyn.hudson's picture

Re: emonGLCD compile problem

 Worked fine for me with Arduino 1.0 without any library modifications. Make sure you are using the latest librarys as mentioned above. Maybe worth deleting the librarys you have and downloading and installing them again just to makre sure. 

Larsjo's picture

Re: emonGLCD compile problem

 Solved. cleared all libs. And did a fresh install.

think the problem was the Dallas lib, did not try the beta ver before now. (was thinking that it was beta, and went for the stable..)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.