sudar / Arduino-Makefile

Makefile for Arduino sketches. It defines the workflows for compiling code, flashing it to Arduino and even communicating through Serial.
http://hardwarefun.com/tutorials/compiling-arduino-sketches-using-makefile
GNU Lesser General Public License v2.1
2.02k stars 448 forks source link

Makefile not working with Arduino-1.8.5 #568

Closed freiser77 closed 6 years ago

freiser77 commented 6 years ago

I try to make an OttoDIY project with the Makefile. As ARDUINO_LIBS I've set Servo.

When trying to build it I get the following error message:

/home/pi/arduino-mk/Arduino.mk:1001: *** The following libraries specified in ARDUINO_LIBS could not be found (searched USER_LIB_PATH, ARDUINO_LIB_PATH and ARDUINO_PLATFORM_LIB_PATH): Servo. Stop.

I've set the ARDUINO_DIR in .zshrc. The board used is a Arduino Nano w/ 328P.

What can I do to get it running?

sej7278 commented 6 years ago

it does work with 1.8.5 so might be worth changing your title to refer to servo/ottodiy.

you shouldn't have to specify ARDUINO_LIBS at all, show us your Makefile and ardunio-mk output so we can see platform, paths etc.

this should be all you need:

ARDUINO_DIR = /where/you/installed/arduino-1.8.5
BOARD_TAG = nano
BOARD_SUB = atmega328
include /home/pi/arduino-mk/Arduino.mk
freiser77 commented 6 years ago

I found it! There was no set encoding=utf-8 in .vimrc. This led to some cumbersome chars in the Makefile. Now everything is working.