GEIGEIGEIST / KLOR

KLOR is 36-42 keys column-staggered split keyboard. It supports a per key RGB matrix, encoders, OLED displays, haptic feedback, audio, a Pixart Paw3204 trackball and four different layouts, through brake off parts.
GNU General Public License v3.0
688 stars 48 forks source link

Compile fails. #28

Open pokeygithub opened 4 weeks ago

pokeygithub commented 4 weeks ago

☒ Not including data from file: keyboards/klor/info.json ☒ layouts.LAYOUT_yubitsume.layout.20.x: -0.5 is less than the minimum of 0 ☒ klor/2040: RGB_DI_PIN in config.h is no longer a valid option and should be replaced with WS2812_DI_PIN or APA102_DI_PIN ☒ Invalid API data: klor/2040: haptic.driver: 'DRV2605L' is not one of ['drv2605l', 'solenoid']

builddefs/converters.mk:22: *** Converting to 'promicro_rp2040' not possible!. Stop.

Manamonk commented 2 weeks ago

I've got the same errors did you find the answer?

pokeygithub commented 2 weeks ago

What I had to do was abandon the 2040 (folder) command and do qmk make -kb klor -km default -e CONVERT_TO=promicro. You might need edit the config.h in that folder find and replace RGB_DI_PIN with WS2812_DI_PIN and DRV2607L with drv2605l it hates all caps for some reason! You will need to edit the kyboard layout if you are trying to use Colmak layout and if you edit the adjust layer command you can run the make command above with a simple key combination to make and then to reset for flashing. Please let me know if that works for you!

Manamonk commented 2 weeks ago

Hi, Thanks for trying to assist. I tried the make command but it didn't seem to do much other than give me a QMK.exe: error. I tried the same thing with the Compile command while fixing the edits you suggested but seemed to get the below error now in both the default and Vial keymaps

================================= [darkm@Monks_XX vial-qmk]$ qmk compile -kb klor -km default -e CONVERT_TO=promicro Ψ Compiling keymap with make -r -R -f builddefs/build_keyboard.mk -s KEYBOARD=klor KEYMAP=default KEYBOARD_FILESAFE=klor TARGET=klor_default INTERMEDIATE_OUTPUT=.build/obj_klor_default VERBOSE=false COLOR=true SILENT=false QMK_BIN="qmk" CONVERT_TO=promicro

☒ Not including data from file: keyboards/klor/info.json ☒ layouts.LAYOUT_konrad.layout.20.x: -0.5 is less than the minimum of 0 ⚠ klor: Build marker "keyboard.json" not found. ☒ klor: No LAYOUTs defined! Need at least one layout defined in info.json. ☒ klor: LAYOUT_polydactyl: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_konrad: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_yubitsume: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_saegewerk: Layout macro should not be defined within ".h" files.

builddefs/converters.mk:28: *** Converting from 'promicro' to 'promicro' not possible!. Stop.

My end goal is to try and get a compiled Vial version for a Sea Picro RP2040 Controller, if you have any more thoughts or can point me to a working version of the files needed that would be helpful

pokeygithub commented 2 weeks ago

klor2.zip

If you extract it as klor2 it won't screw up any of your original files. Maybe this will help you. If you use the "pokey" it will get colmak working for you as well.

Manamonk commented 1 week ago

Hi pokey - I tried running the pokey keymap and got the following :(

[dm@hhhhh QMK_files]$ qmk compile -kb klor -km pokey Ψ Compiling keymap with make -r -R -f builddefs/build_keyboard.mk -s KEYBOARD=klor KEYMAP=pokey KEYBOARD_FILESAFE=klor TARGET=klor_pokey INTERMEDIATE_OUTPUT=.build/obj_klor_pokey VERBOSE=false COLOR=true SILENT=false QMK_BIN="qmk"

☒ Not including data from file: keyboards/klor/info.json ☒ layouts.LAYOUT_yubitsume.layout.20.x: -0.5 is less than the minimum of 0 ⚠ klor: Build marker "keyboard.json" not found. ☒ klor: No LAYOUTs defined! Need at least one layout defined in info.json. ☒ klor: LAYOUT_polydactyl: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_konrad: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_yubitsume: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_saegewerk: Layout macro should not be defined within ".h" files. Generating: .build/obj_klor_pokey/src/info_deps.d [OK] ☒ Not including data from file: keyboards/klor/info.json ☒ layouts.LAYOUT_yubitsume.layout.20.x: -0.5 is less than the minimum of 0 ⚠ klor: Build marker "keyboard.json" not found. ☒ klor: No LAYOUTs defined! Need at least one layout defined in info.json. ☒ klor: LAYOUT_polydactyl: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_konrad: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_yubitsume: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_saegewerk: Layout macro should not be defined within ".h" files. avr-gcc.exe (GCC) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Generating: .build/obj_klor_pokey/src/info_config.h [WARNINGS] ☒ Not including data from file: keyboards/klor/info.json ☒ layouts.LAYOUT_polydactyl.layout.20.x: -0.5 is less than the minimum of 0 ⚠ klor: Build marker "keyboard.json" not found. ☒ klor: No LAYOUTs defined! Need at least one layout defined in info.json. ☒ klor: LAYOUT_polydactyl: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_konrad: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_yubitsume: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_saegewerk: Layout macro should not be defined within ".h" files.
Generating: .build/obj_klor_pokey/src/default_keyboard.c [WARNINGS] ☒ Not including data from file: keyboards/klor/info.json ☒ layouts.LAYOUT_saegewerk.layout.20.x: -0.5 is less than the minimum of 0 ⚠ klor: Build marker "keyboard.json" not found. ☒ klor: No LAYOUTs defined! Need at least one layout defined in info.json. ☒ klor: LAYOUT_polydactyl: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_konrad: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_yubitsume: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_saegewerk: Layout macro should not be defined within ".h" files.
Generating: .build/obj_klor_pokey/src/default_keyboard.h [WARNINGS] ☒ Not including data from file: keyboards/klor/info.json ☒ layouts.LAYOUT_saegewerk.layout.20.x: -0.5 is less than the minimum of 0 ⚠ klor: Build marker "keyboard.json" not found. ☒ klor: No LAYOUTs defined! Need at least one layout defined in info.json. ☒ klor: LAYOUT_polydactyl: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_konrad: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_yubitsume: Layout macro should not be defined within ".h" files. ☒ klor: LAYOUT_saegewerk: Layout macro should not be defined within ".h" files.
Compiling: keyboards/klor/klor.c [OK] Compiling: .build/obj_klor_pokey/src/default_keyboard.c [OK] Compiling: quantum/keymap_introspection.c [OK] Compiling: quantum/quantum.c [OK] Compiling: quantum/bitwise.c [OK] Compiling: quantum/led.c [OK] Compiling: quantum/action.c [OK] Compiling: quantum/action_layer.c [OK] Compiling: quantum/action_tapping.c [OK] Compiling: quantum/action_util.c [OK] Compiling: quantum/eeconfig.c [OK] Compiling: quantum/keyboard.c [OK] Compiling: quantum/keymap_common.c [OK] Compiling: quantum/keycode_config.c [OK] Compiling: quantum/sync_timer.c [OK] Compiling: quantum/logging/debug.c [OK] Compiling: quantum/logging/sendchar.c [OK] Compiling: quantum/matrix_common.c [OK] Compiling: quantum/matrix.c [OK] Compiling: quantum/debounce/sym_defer_g.c [OK] Compiling: quantum/split_common/split_util.c [OK] Compiling: quantum/split_common/transport.c [OK] Compiling: quantum/split_common/transactions.c [OK] Compiling: quantum/main.c [OK] Assembling: platforms/avr/xprintf.S [OK] Compiling: platforms/avr/printf.c [OK] Compiling: drivers/oled/oled_driver.c [OK] Compiling: quantum/encoder.c [OK] Compiling: drivers/encoder/encoder_quadrature.c [OK] Compiling: quantum/crc.c [OK] Compiling: quantum/send_string/send_string.c [OK] Compiling: tmk_core/protocol/host.c [OK] Compiling: tmk_core/protocol/report.c [OK] Compiling: tmk_core/protocol/usb_device_state.c [OK] Compiling: tmk_core/protocol/usb_util.c [OK] Compiling: platforms/suspend.c [OK] Compiling: platforms/synchronization_util.c [OK] Compiling: platforms/timer.c [OK] Compiling: platforms/avr/hardware_id.c [OK] Compiling: platforms/avr/platform.c [OK] Compiling: platforms/avr/suspend.c [OK] Compiling: platforms/avr/timer.c [OK] Compiling: platforms/avr/bootloaders/dfu.c [OK] Compiling: platforms/avr/drivers/i2c_master.c [OK] Archiving: .build/obj_klor_pokey/i2c_master.o [OK] Compiling: platforms/avr/drivers/i2c_slave.c [OK] Archiving: .build/obj_klor_pokey/i2c_slave.o [OK] Compiling: platforms/avr/drivers/serial.c [OK] Archiving: .build/obj_klor_pokey/serial.o [OK] Compiling: tmk_core/protocol/lufa/lufa.c [OK] Compiling: tmk_core/protocol/usb_descriptor.c tmk_core/protocol/usb_descriptor.c:449:35: error: 'VENDOR_ID' undeclared here (not in a function) 449 .VendorID = VENDOR_ID, ^~~~~ tmk_core/protocol/usb_descriptor.c:450:35: error: 'PRODUCT_ID' undeclared here (not in a function); did you mean 'PRODUCT'? 450 .ProductID = PRODUCT_ID, ^~~~~~ PRODUCT tmk_core/protocol/usb_descriptor.c:451:35: error: 'DEVICE_VER' undeclared here (not in a function) 451 .ReleaseNumber = DEVICE_VER, ^~~~~~ In file included from tmk_core/protocol/usb_descriptor.c:42: tmk_core/protocol/usb_descriptor_common.h:21:29: error: 'LMANUFACTURER' undeclared here (not in a function) 21 #define USBSTR(s) USBCONCAT(L, s) ^ tmk_core/protocol/usb_descriptor_common.h:20:25: note: in definition of macro 'USBCONCAT' 20 #define USBCONCAT(a, b) a##b ^ tmk_core/protocol/usb_descriptor.c:1050:42: note: in expansion of macro 'USBSTR' 1050 .Size = sizeof(USBSTR(MANUFACTURER)), ^~ [ERRORS]

make: *** [builddefs/common_rules.mk:373: .build/obj_klor_pokey/usb_descriptor.o] Error 1

pokeygithub commented 5 days ago

Hmmm. Maybe it I forgot that I modified the json? info.json

Are you running everything as an administrator? Pretty much have to do the entire process from installing QMK to running the keyboard make commands.