qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
18.24k stars 39.3k forks source link

Lufa not compiling when tyring to build ergodox firmware #2086

Closed DwordPtr closed 6 years ago

DwordPtr commented 6 years ago

Hi I'm getting the following error message when I try to build the ergodox firmware for either hand. To recreate this issue:

  1. run make git-submodule
  2. copy-paste one of the ergodox docker commands in the main project folder.

btw I'm running the latest code from master.


QMK Firmware 0.5.179
Makefile:528: keyboards/ergodox/rules.mk: No such file or directory
Making ergodox with keymap narze and target clean

lib/lufa/LUFA/Build/LUFA/lufa-sources.mk:29: *** Makefile ARCH option cannot be blank.  Stop.
make: *** [clean] Error 1
Make finished with errors
Makefile:528: recipe for target 'clean' failed
QMK Firmware 0.5.179
Makefile:528: keyboards/ergodox/rules.mk: No such file or directory
Making ergodox with keymap narze and target ergodox:narze

lib/lufa/LUFA/Build/LUFA/lufa-sources.mk:29: *** Makefile ARCH option cannot be blank.  Stop.
make: *** [ergodox:narze] Error 1
Makefile:528: recipe for target 'ergodox:narze' failed
Make finished with errors
zsh: command not found: avr-objcopy
zsh: command not found: dfu-util
trunneml commented 6 years ago

What's the exact docker command you are running? I had to add the make command to the docker container like this:

docker run --rm -v ~/qmk_firmware:/qmk:rw -it edasque/qmk_firmware make ergodox_ez:default
DwordPtr commented 6 years ago

I have been running

docker run -e keymap=narze -e subproject=infinity -e keyboard=ergodox --rm -v $('pwd'):/qmk:rw edasque/qmk_firmware
avr-objcopy -Iihex -Obinary .build/ergodox_infinity_narze.hex .build/ergodox_infinity_narze_left.bin
dfu-util --device 1c11:b007 -D .build/ergodox_infinity_narze_left.bin

It tells me lib lufa can't compile because the ARCH options is blank? I'm new to this and I have no idea what it means.

DwordPtr commented 6 years ago

this worked for me by skipping docker. If anybody is having issues try sudo make:egrodox_infinity:<layout>:dfu-util I'll take a look and see if I can get the docker container working sometime eventually.

MarioAriasC commented 6 years ago

I still have the same problem and my only way to compile it is using docker.

Did you find an answer?

DwordPtr commented 6 years ago

Unfortunately no. I just built it from my local os.