Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qmk_firmwareのビルドが、RGBLIGHT_LED_COUNTという変数に関するエラーで成功しない #726

Open
taichi-k opened this issue Jan 2, 2025 · 1 comment

Comments

@taichi-k
Copy link

taichi-k commented Jan 2, 2025

(注:私は、自作キーボード・qmk_firmwareに関して、全くの素人です。的外れな起票をしていたら申し訳ございません。)

https://note.com/yinouet1001/n/n856b45220ad4
に従い、mac環境にて、qmkを利用したkeyballのfirmwareのビルドを試みたのですが、以下のエラーがでて.hexファイルの生成ができませんでした。

QMK Firmware 0.27.4
⚠ keyball/keyball39: Build marker "keyboard.json" not found.
☒ keyball/keyball39: LAYOUT_right_ball: Layout macro should not be defined within ".h" files.
☒ keyball/keyball39: LAYOUT_left_ball: Layout macro should not be defined within ".h" files.
☒ keyball/keyball39: LAYOUT_dual_ball: Layout macro should not be defined within ".h" files.
☒ keyball/keyball39: LAYOUT_no_ball: Layout macro should not be defined within ".h" files.
Making keyball/keyball39 with keymap default

⚠ keyball/keyball39: Build marker "keyboard.json" not found.
☒ keyball/keyball39: LAYOUT_right_ball: Layout macro should not be defined within ".h" files.
☒ keyball/keyball39: LAYOUT_left_ball: Layout macro should not be defined within ".h" files.
☒ keyball/keyball39: LAYOUT_dual_ball: Layout macro should not be defined within ".h" files.
☒ keyball/keyball39: LAYOUT_no_ball: Layout macro should not be defined within ".h" files.
avr-gcc (Homebrew AVR GCC 8.5.0_2) 8.5.0
Copyright (C) 2018 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.

Compiling: platforms/avr/drivers/ws2812_bitbang.c                                                  In file included from platforms/avr/drivers/ws2812_bitbang.c:26:
drivers/ws2812.h:60:30: error: 'RGBLIGHT_LED_COUNT' undeclared here (not in a function); did you mean 'RGBLIGHT_SAT_STEP'?
 #    define WS2812_LED_COUNT RGBLIGHT_LED_COUNT
                              ^~~~~~~~~~~~~~~~~~
platforms/avr/drivers/ws2812_bitbang.c:154:26: note: in expansion of macro 'WS2812_LED_COUNT'
 ws2812_led_t ws2812_leds[WS2812_LED_COUNT];
                          ^~~~~~~~~~~~~~~~
 [ERRORS]
 |
 |
 |
make[1]: *** [.build/obj_keyball_keyball39_default/ws2812_bitbang.o] Error 1
make: *** [keyball/keyball39:default] Error 1
Make finished with errors

mac環境以外にも、Linux環境でも同様のエラーが発生してしまったため、起票に至ります。

なお、他のkeymapのデータでのビルドができることを、ランダムに選んだ以下のkeymapを対象として確認しました。
25keys/aleth42:default

以上、ご確認のほどよろしくお願いいたします。

@toxaO
Copy link

toxaO commented Jan 14, 2025

qmkのバージョンの問題だと思われます。
0.27系で試したところ同様のエラーが出ました。
0.24系でコンパイルすると通ると思われます。
根本的な原因に関しては調べたのですが解決しませんでした……

追記)
コンパイルするkeyballのconfig.hの47行目
# define RGBLED_NUM 48

# define RGBLIGHT_LED_COUNT 48
に書き換えると通りました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants