Author Topic: Question about QMK...  (Read 1348 times)

0 Members and 1 Guest are viewing this topic.

Offline geauxflying

  • Thread Starter
  • Posts: 54
Question about QMK...
« on: Thu, 08 July 2021, 00:31:14 »
About to try out VIAL, but curious to learn what I'm doing wrong here.

I've tried a number of syntax variations. The keymap.c file is created from a JSON export from QMK configurator with encoder code pasted in to the keymap.c. To be sure it wasn't a problem caused by my copy/paste, I tried to compile it based on a direct export from QMK configurator and got the same error.

I ran QMK doctor, it says my setup is fine.

Offline blondie

  • Posts: 50
Re: Question about QMK...
« Reply #1 on: Thu, 08 July 2021, 14:42:57 »
I believe you want to provide the directory in which your keymap.c file resides as the option to -km, not the name of the file (which probably needs to be keymap.c).

For example, I have the Ploopy trackball, and I compile with this command:

Code: [Select]
qmk compile -kb ploopyco/trackball/rev1_005 -km ploopy
And the keymap is found here:

Code: [Select]
23> ls keyboards/ploopyco/trackball/keymaps/ploopy/
keymap.c  readme.md

Offline geauxflying

  • Thread Starter
  • Posts: 54
Re: Question about QMK...
« Reply #2 on: Thu, 08 July 2021, 15:39:45 »
Brilliant... I'll try that! Thank you. What is the significance of the "rev1_005" in your compile command?

Offline blondie

  • Posts: 50
Re: Question about QMK...
« Reply #3 on: Thu, 08 July 2021, 18:08:45 »
This particular product had different revisions. If you look under the keyboards directory, there are a lot of different keyboards. The value you provide to the -kb is the path within the keyboards directory to what you want to build. I see boston has no subdirectories under it except for the keymaps. But the Ploopy has a bunch of directories and subdirectories for different products and their revisions.