WeatherDuino Forum

Full Version: Pro2_RX_ 2.0 b013 Compile issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone

I am having issues compiling the RX software, I've pasted the output from the IDE. I'm using version 1.7.10 of the IDE and copied all the libraries to /Users/christhomson/Documents/Arduino


==========================================

Arduino: 1.7.10 (Mac OS X), Board: "Arduino Nano, ATmega328"
Code:
Build options changed, rebuilding all
Using library SPI in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI
Using library Wire in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire
Using library VirtualWire in folder: /Users/christhomson/Documents/Arduino/libraries/VirtualWire (legacy)
Using library RTClib in folder: /Users/christhomson/Documents/Arduino/libraries/RTClib (legacy)
Using library DHTxx in folder: /Users/christhomson/Documents/Arduino/libraries/DHTxx (legacy)
Using library Adafruit_HTU21DF in folder: /Users/christhomson/Documents/Arduino/libraries/Adafruit_HTU21DF (legacy)
Using library BMP085 in folder: /Users/christhomson/Documents/Arduino/libraries/BMP085 (legacy)
Using library LiquidCrystal-I2C in folder: /Users/christhomson/Documents/Arduino/libraries/LiquidCrystal-I2C (legacy)
Using library EEPROM in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/EEPROM
Using library ClickButton in folder: /Users/christhomson/Documents/Arduino/libraries/ClickButton (legacy)
Using library SerialCommand in folder: /Users/christhomson/Documents/Arduino/libraries/SerialCommand (legacy)
Using library DataFlash in folder: /Users/christhomson/Documents/Arduino/libraries/DataFlash (legacy)

/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=107010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire -I/Users/christhomson/Documents/Arduino/libraries/VirtualWire -I/Users/christhomson/Documents/Arduino/libraries/RTClib -I/Users/christhomson/Documents/Arduino/libraries/DHTxx -I/Users/christhomson/Documents/Arduino/libraries/Adafruit_HTU21DF -I/Users/christhomson/Documents/Arduino/libraries/BMP085 -I/Users/christhomson/Documents/Arduino/libraries/LiquidCrystal-I2C -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/christhomson/Documents/Arduino/libraries/ClickButton -I/Users/christhomson/Documents/Arduino/libraries/SerialCommand -I/Users/christhomson/Documents/Arduino/libraries/DataFlash /var/folders/2q/n_b67f1d5jj_kzt09cvhjy080000gn/T/build3008765056714437974.tmp/WeatherDuino_Pro2_RX_v2.0_b013.cpp -o /var/folders/2q/n_b67f1d5jj_kzt09cvhjy080000gn/T/build3008765056714437974.tmp/WeatherDuino_Pro2_RX_v2.0_b013.cpp.o
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/SPI.h:17:0,
                 from WeatherDuino_Pro2_RX_v2.0_b013.ino:22:
Routines.ino: In function 'void SystemInit1()':
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:100:38: error: invalid operands of types 'double' and 'int' to binary 'operator&'
#define lowByte(w) ((uint8_t) ((w) & 0xff))
                                      ^
Routines.ino:9:30: note: in expansion of macro 'lowByte'
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:101:40: error: invalid operands of types 'double' and 'int' to binary 'operator>>'
#define highByte(w) ((uint8_t) ((w) >> 8))
                                        ^
Routines.ino:10:30: note: in expansion of macro 'highByte'
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:100:38: error: invalid operands of types 'double' and 'int' to binary 'operator&'
#define lowByte(w) ((uint8_t) ((w) & 0xff))
                                      ^
Routines.ino:11:30: note: in expansion of macro 'lowByte'
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:101:40: error: invalid operands of types 'double' and 'int' to binary 'operator>>'
#define highByte(w) ((uint8_t) ((w) >> 8))
                                        ^
Routines.ino:12:30: note: in expansion of macro 'highByte'
Error compiling.
======================================


Does anyone have any suggestions as to what I might be doing wrong? This is the first time I've worked with Arduino.

Any advice would be gratefully appreciated.

Chris
Hi Everyone

I've figured out what my issue is. I made an error in the latitude and longitude settings in the config file Confused

The software is now compiling fine Smile
(04-06-2016, 23:08)cjthomson Wrote: [ -> ]Hi Everyone

I've figured out what my issue is. I made an error in the latitude and longitude settings in the config file Confused

The software is now compiling fine Smile

Good to know! Smile