Page 1 of 1

Cannot build esp-rainmaker\examples\switch>

Posted: Tue Aug 11, 2020 12:44 am
by ytan86
Hi there,

I'm trying to build an example rainmaker project (switch), but I encountered some errors.
Anyone encountered this? I'm using v4.0.1 on Windows 10.

Code: Untitled.bat Select all

C:/msys32/home/y.tan/esp/esp-rainmaker/components/led_strip/src/led_strip_rmt_ws2812.c: In function 'led_strip_new_rmt_ws2812':
C:/msys32/home/y.tan/esp/esp-rainmaker/components/led_strip/src/led_strip_rmt_ws2812.c:148:17: error: implicit declaration of function 'rmt_get_counter_clock'; did you mean 'rmt_get_source_clk'? [-Werror=implicit-function-declaration]
STRIP_CHECK(rmt_get_counter_clock((rmt_channel_t)config->dev, &counter_clk_hz) == ESP_OK,
^~~~~~~~~~~~~~~~~~~~~
C:/msys32/home/y.tan/esp/esp-rainmaker/components/led_strip/src/led_strip_rmt_ws2812.c:26:15: note: in definition of macro 'STRIP_CHECK'
if (!(a)) \
^

Re: Cannot build esp-rainmaker\examples\switch>

Posted: Tue Aug 11, 2020 12:15 pm
by Piyush
Hello,

Please use the master branch of esp-idf. RainMaker uses some new code which isn't available on 4.0 or 4.1 releases/branches. We will add some "compatibility mode" config option soon to support these.

Regards,
Piyush

Re: Cannot build esp-rainmaker\examples\switch>

Posted: Wed Aug 12, 2020 11:11 pm
by ytan86
Hi Piyush,

Thanks for the reply. It works now. For the record, I am using the following:
ESP-IDF Tools 2.3
Python 3.8 (64bit)
Git 2.16.2.windows.1
ESP-IDF master (development branch)

Code: Untitled.bat Select all


Python 3.8.2
Using Git in C:\Program Files\Git\cmd\
git version 2.16.2.windows.1
Setting IDF_PATH: C:\Users\y.tan\Desktop\esp-idf-2

Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.6.1.
C:\Users\y.tan\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\bin
C:\Users\y.tan\.espressif\tools\xtensa-esp32s2-elf\esp-2020r2-8.2.0\xtensa-esp32s2-elf\bin
C:\Users\y.tan\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
C:\Users\y.tan\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
C:\Users\y.tan\.espressif\tools\cmake\3.16.4\bin
C:\Users\y.tan\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\bin
C:\Users\y.tan\.espressif\tools\ninja\1.10.0\
C:\Users\y.tan\.espressif\tools\idf-exe\1.0.1\
C:\Users\y.tan\.espressif\tools\ccache\3.7\
C:\Users\y.tan\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
C:\Users\y.tan\.espressif\python_env\idf4.3_py3.8_env\Scripts
C:\Users\y.tan\Desktop\esp-idf-2\tools