Can't build from command line

Hello. If I go to the Model01-Firmware directory and give the command make flash I get the error:

Makefile:55: /home/samjnaa/Arduino/hardware/keyboardio/avr/build-tools/makefiles//rules.mk: No such file or directory
make: *** No rule to make target '/home/samjnaa/Arduino/hardware/keyboardio/avr/build-tools/makefiles//rules.mk'.  Stop.

But I’m able to flash from the Arduino IDE.

Please help. Thank you.

I figured it out finally! You have to make sure that you have followed all of the instructions at https://github.com/keyboardio/Model01-Firmware

  1. Create the Arduino Sketchbook directory, and navigate to it. On my Mac:
    mkdir -p $HOME/Documents/Arduino
    cd $HOME/Documents/Arduino

  2. Download libraries:

mkdir -p hardware/keyboardio

git clone --recursive https://github.com/keyboardio/Arduino-Boards.git hardware/keyboardio/avr

  1. Download firmware:
    git clone https://github.com/keyboardio/Model01-Firmware.git

It sounds like you got this far, but look at the Model01-Firmware directory. For mine, it created a directory within the directory, so you have to navigate to the innermost directory where you find the Model01-Firmware.ino file. At that point, you probably want to replace this file with your edited version (assuming you aren’t just trying to install the default firmware). Then try running your command “make flash”. You either haven’t cloned what you needed to clone first, or you aren’t in the Model01-Firmware directory that has your firmware file.

1 Like

Thanks for this reply. Looks like the path /home/samjnaa/Arduino is hardcoded into the files somewhere, preferences or such? Creating a symlink to point to the actual directory was sufficient.