qmk / qmk_firmware

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

How to make. #101

Closed Woehler closed 8 years ago

Woehler commented 8 years ago

When trying to make my keymap I get the following error "make: *\ No targets specified and no makefile found. stop. " Do I only need the keymap.c file to compile to .hex or is there supposed to be other files such as a makefile? And where exactly am I supposed to put the files relative to the cmd directory?

ezuk commented 8 years ago

Hi there,

Which instructions are you following? What keyboard are you making for?

Woehler commented 8 years ago

It the new ergodox ez.

Woehler commented 8 years ago

pretty much just stuck at step 6. Compile your firmware by running make clean followed by make KEYMAP=your_name. For example, make KEYMAP=german. This will result in a hex file, which will always be called ergodox_ez.hex, regardless of your keymap name.

ezuk commented 8 years ago

Did you perform step 2 of the instructions - clone the repository? You should have the whole repo, not just the C file.

Can you paste a complete console log of what's happening, and your directory structure?

ezuk commented 8 years ago

Also, you need to run make clean and make KEYMAP=your_name from the keyboard/ergodox_ez directory, not from within your keymap subdirectory. Is that maybe the problem?

Woehler commented 8 years ago

Yeah. Followed the steps on how to make from the teensie website. Make sense now that I have to make it from that folder. However. Now I get an error make: Interrupt\Exception caught

Woehler commented 8 years ago

Thank you. Got it working now. Just had to change my directory for WinAVR to fix the last error. Can finally start making my own layout without using the massdrop configuration.