#include <ArduinoRobot.h> doesn't compile. mac, arduino robot.

Hi,

I just got an arduino Robot, talking to the "Arduino Robot Control" Board.
I'm following the setup steps here: https://www.arduino.cc/en/Guide/Robot#toc9

on the step of run the first sketch, it has one select the example - "Arduino Robot Motor" from the motor core options.

When I verify the example program, I get a compile error. When I use the bare minimun example and only include the "#include <ArduinoRobot.h>" include line, then the I get the same error and it doesn't compile.

I'm assuming for the robot I want to be able to include the this header file to access parts of it. Is there an update to make this header file work, or is this a known issue?

I'm using a mac on OS 10.11.6, and downloaded the Arduino IDE 1.8.1 (latest mar 2017).

this reference to /var/folder/11 - is that XQuartz/X11 reference?

(Similarly, and probably a separate issue, I tried uploading the example Blink to my robot since it compiles. But, i just got speaker clicks, uploading the LCD example, and I just get a high pitch long tone from the speaker. So I'm kind of stuck not knowing what this arduino robot is suppose to do when a sketch is uploaded, and how uploading any sketches work. Would love to figure out how to hard reset the board to get the high pitch sound to turn off.)

verbose log attched.

final error below:

Using previously compiled file: /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/core/core.a
Linking everything together...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc"  -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4  -o "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/MotorTest2.ino.elf" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/sketch/MotorTest2.ino.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/glcdfont.c.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/ArduinoRobot.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Arduino_LCD.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Compass.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/EEPROM_I2C.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/EasyTransfer2.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Fat16.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Melody.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Motors.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Multiplexer.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/RobotSdCard.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/SdCard.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Sensors.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Squawk.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/SquawkSD.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/communication.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/helper.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/information.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/keyboard.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/lcd.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/utility/Adafruit_GFX.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/utility/RobotTextManager.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/utility/VirtualKeyboard.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/SPI/SPI.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Wire/Wire.cpp.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Wire/utility/twi.c.o" "/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/core/core.a" "-L/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762" -lm
`osc' referenced in section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T//cc1FfhY9.ltrans3.ltrans.o: defined in discarded section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Squawk.cpp.o (symbol from plugin)
`osc' referenced in section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T//cc1FfhY9.ltrans3.ltrans.o: defined in discarded section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Squawk.cpp.o (symbol from plugin)
`osc' referenced in section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T//cc1FfhY9.ltrans3.ltrans.o: defined in discarded section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Squawk.cpp.o (symbol from plugin)
`osc' referenced in section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T//cc1FfhY9.ltrans3.ltrans.o: defined in discarded section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Squawk.cpp.o (symbol from plugin)
`osc' referenced in section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T//cc1FfhY9.ltrans3.ltrans.o: defined in discarded section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Squawk.cpp.o (symbol from plugin)
`osc' referenced in section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T//cc1FfhY9.ltrans3.ltrans.o: defined in discarded section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Squawk.cpp.o (symbol from plugin)
`osc' referenced in section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T//cc1FfhY9.ltrans3.ltrans.o: defined in discarded section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Squawk.cpp.o (symbol from plugin)
.......
/var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Melody.cpp.o (symbol from plugin)
`cia' referenced in section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T//cc1FfhY9.ltrans3.ltrans.o: defined in discarded section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Melody.cpp.o (symbol from plugin)
`cia_count' referenced in section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T//cc1FfhY9.ltrans3.ltrans.o: defined in discarded section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Melody.cpp.o (symbol from plugin)
`cia_count' referenced in section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T//cc1FfhY9.ltrans3.ltrans.o: defined in discarded section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Melody.cpp.o (symbol from plugin)
`squawk_playroutine' referenced in section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T//cc1FfhY9.ltrans3.ltrans.o: defined in discarded section `.text' of /var/folders/11/x_6psx591_qc415jtwnzw6_m0000gn/T/arduino_build_537762/libraries/Robot_Control/Squawk.cpp.o (symbol from plugin)
collect2: error: ld returned 1 exit status
Using library Robot_Control at version 1.0.2 in folder: /Applications/Arduino.app/Contents/Java/libraries/Robot_Control 
Using library SPI at version 1.0 in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI 
Using library Wire at version 1.0 in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire 
exit status 1
Error compiling for board Arduino Robot Control.

ArduinoRobot_header_error.txt (31.4 KB)

Please do this:

  • Sketch > Include Library > Manage libraries
  • Wait for download to finish
  • Type "Robot Control" in the "Filter your search..." box
  • Click on the "Robot Control" library result
  • Click the "Update" button
  • Wait for update to finish
  • Click the "Close button

Your sketch should now compile without errors.

Great. That was perfect. updated, and now the file compiles. Thank you.