alansrobotlab / mikethetrike

Instructions and Sample Code for the "Mike the Trike" robot kit
7 stars 1 forks source link

Arduino IDE 1.8.x : Warning: platform.txt from core 'Arduino AVR Boards' contains deprecated ... #1

Open ericvb opened 5 years ago

ericvb commented 5 years ago

To avoid this warning:

Warning: platform.txt from core 'Arduino AVR Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.

Replace in the two platform.txt files (WAV folder and WAV8F folder) following code:

## Create archives
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}"

by

## Create archives
# archive_file_path is needed for backwards compatibility with IDE 1.6.5 or older, IDE 1.6.6 or newer overrides this value
archive_file_path={build.path}/{archive_file}
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
ericvb commented 5 years ago

After posting the item above, I found more information on: http://forum.arduino.cc/index.php?topic=560692.0

I uploaded an adapted version: https://github.com/ericvb/Arduino-WavGat-Drivers of the drivers working under Arduino IDE 1.8.x