lotlab / miwifi-cr660x-unlocker Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
when i try to build for my esp32 with
idf.py build
an error has been occurred.
[837/845] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/wifi.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/wifi.c.obj
...
cc1.exe: some warnings being treated as errors
[838/845] Building C object esp-idf/wifi_provisioning/CMakeFiles/__idf_wifi_provisioning.dir/src/manager.c.obj
ninja: build stopped: subcommand failed.
Here is a piece log:
[835/845] Building C object esp-idf/wifi_provisioning/CMakeFiles/__idf_wifi_provisioning.dir/src/scheme_softap.c.obj
[836/845] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/http.c.obj
[837/845] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/wifi.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/wifi.c.obj
ccache D:\Software\Espressif\tools\xtensa-esp32-elf\esp-2022r1-11.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DUNITY_INCLUDE_CONFIG_H -IC:/Users/Rogunt/Downloads/MiWifi-CR660x-Unlocker/build/config -IC:/Users/Rogunt/esp/esp-idf/components/newlib/platform_include -IC:/Users/Rogunt/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/Rogunt/esp/esp-idf/components/freertos/esp_additions/include/freertos -IC:/Users/Rogunt/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Users/Rogunt/esp/esp-idf/components/freertos/esp_additions/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_hw_support/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_hw_support/include/soc -IC:/Users/Rogunt/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -IC:/Users/Rogunt/esp/esp-idf/components/esp_hw_support/port/esp32/. -IC:/Users/Rogunt/esp/esp-idf/components/esp_hw_support/port/esp32/private_include -IC:/Users/Rogunt/esp/esp-idf/components/heap/include -IC:/Users/Rogunt/esp/esp-idf/components/log/include -IC:/Users/Rogunt/esp/esp-idf/components/soc/include -IC:/Users/Rogunt/esp/esp-idf/components/soc/esp32/. -IC:/Users/Rogunt/esp/esp-idf/components/soc/esp32/include -IC:/Users/Rogunt/esp/esp-idf/components/hal/esp32/include -IC:/Users/Rogunt/esp/esp-idf/components/hal/include -IC:/Users/Rogunt/esp/esp-idf/components/hal/platform_port/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_rom/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_rom/include/esp32 -IC:/Users/Rogunt/esp/esp-idf/components/esp_rom/esp32 -IC:/Users/Rogunt/esp/esp-idf/components/esp_common/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_system/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_system/port/soc -IC:/Users/Rogunt/esp/esp-idf/components/esp_system/port/include/private -IC:/Users/Rogunt/esp/esp-idf/components/xtensa/include -IC:/Users/Rogunt/esp/esp-idf/components/xtensa/esp32/include -IC:/Users/Rogunt/esp/esp-idf/components/lwip/include -IC:/Users/Rogunt/esp/esp-idf/components/lwip/include/apps -IC:/Users/Rogunt/esp/esp-idf/components/lwip/include/apps/sntp -IC:/Users/Rogunt/esp/esp-idf/components/lwip/lwip/src/include -IC:/Users/Rogunt/esp/esp-idf/components/lwip/port/esp32/include -IC:/Users/Rogunt/esp/esp-idf/components/lwip/port/esp32/include/arch -IC:/Users/Rogunt/esp/esp-idf/components/esp_ringbuf/include -IC:/Users/Rogunt/esp/esp-idf/components/efuse/include -IC:/Users/Rogunt/esp/esp-idf/components/efuse/esp32/include -IC:/Users/Rogunt/esp/esp-idf/components/driver/include -IC:/Users/Rogunt/esp/esp-idf/components/driver/deprecated -IC:/Users/Rogunt/esp/esp-idf/components/driver/esp32/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_pm/include -IC:/Users/Rogunt/esp/esp-idf/components/mbedtls/port/include -IC:/Users/Rogunt/esp/esp-idf/components/mbedtls/mbedtls/include -IC:/Users/Rogunt/esp/esp-idf/components/mbedtls/mbedtls/library -IC:/Users/Rogunt/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_app_format/include -IC:/Users/Rogunt/esp/esp-idf/components/bootloader_support/include -IC:/Users/Rogunt/esp/esp-idf/components/bootloader_support/bootloader_flash/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_partition/include -IC:/Users/Rogunt/esp/esp-idf/components/app_update/include -IC:/Users/Rogunt/esp/esp-idf/components/spi_flash/include -IC:/Users/Rogunt/esp/esp-idf/components/pthread/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_timer/include -IC:/Users/Rogunt/esp/esp-idf/components/app_trace/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_event/include -IC:/Users/Rogunt/esp/esp-idf/components/nvs_flash/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_phy/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_phy/esp32/include -IC:/Users/Rogunt/esp/esp-idf/components/vfs/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_netif/include -IC:/Users/Rogunt/esp/esp-idf/components/wpa_supplicant/include -IC:/Users/Rogunt/esp/esp-idf/components/wpa_supplicant/port/include -IC:/Users/Rogunt/esp/esp-idf/components/wpa_supplicant/esp_supplicant/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_wifi/include -IC:/Users/Rogunt/esp/esp-idf/components/unity/include -IC:/Users/Rogunt/esp/esp-idf/components/unity/unity/src -IC:/Users/Rogunt/esp/esp-idf/components/cmock/CMock/src -IC:/Users/Rogunt/esp/esp-idf/components/console -IC:/Users/Rogunt/esp/esp-idf/components/http_parser -IC:/Users/Rogunt/esp/esp-idf/components/esp-tls -IC:/Users/Rogunt/esp/esp-idf/components/esp-tls/esp-tls-crypto -IC:/Users/Rogunt/esp/esp-idf/components/esp_adc/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_adc/interface -IC:/Users/Rogunt/esp/esp-idf/components/esp_adc/esp32/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_adc/deprecated/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_eth/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_gdbstub/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_gdbstub/xtensa -IC:/Users/Rogunt/esp/esp-idf/components/esp_gdbstub/esp32 -IC:/Users/Rogunt/esp/esp-idf/components/esp_hid/include -IC:/Users/Rogunt/esp/esp-idf/components/tcp_transport/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_http_client/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_http_server/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_https_ota/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_lcd/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_lcd/interface -IC:/Users/Rogunt/esp/esp-idf/components/protobuf-c/protobuf-c -IC:/Users/Rogunt/esp/esp-idf/components/protocomm/include/common -IC:/Users/Rogunt/esp/esp-idf/components/protocomm/include/security -IC:/Users/Rogunt/esp/esp-idf/components/protocomm/include/transports -IC:/Users/Rogunt/esp/esp-idf/components/esp_local_ctrl/include -IC:/Users/Rogunt/esp/esp-idf/components/esp_psram/include -IC:/Users/Rogunt/esp/esp-idf/components/espcoredump/include -IC:/Users/Rogunt/esp/esp-idf/components/espcoredump/include/port/xtensa -IC:/Users/Rogunt/esp/esp-idf/components/wear_levelling/include -IC:/Users/Rogunt/esp/esp-idf/components/sdmmc/include -IC:/Users/Rogunt/esp/esp-idf/components/fatfs/diskio -IC:/Users/Rogunt/esp/esp-idf/components/fatfs/vfs -IC:/Users/Rogunt/esp/esp-idf/components/fatfs/src -IC:/Users/Rogunt/esp/esp-idf/components/idf_test/include -IC:/Users/Rogunt/esp/esp-idf/components/idf_test/include/esp32 -IC:/Users/Rogunt/esp/esp-idf/components/ieee802154/include -IC:/Users/Rogunt/esp/esp-idf/components/json/cJSON -IC:/Users/Rogunt/esp/esp-idf/components/mqtt/esp-mqtt/include -IC:/Users/Rogunt/esp/esp-idf/components/perfmon/include -IC:/Users/Rogunt/esp/esp-idf/components/spiffs/include -IC:/Users/Rogunt/esp/esp-idf/components/ulp/ulp_common/include -IC:/Users/Rogunt/esp/esp-idf/components/ulp/ulp_common/include/esp32 -IC:/Users/Rogunt/esp/esp-idf/components/wifi_provisioning/include -mlongcalls -Wno-frame-address -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=C:/Users/Rogunt/Downloads/MiWifi-CR660x-Unlocker=. -fmacro-prefix-map=C:/Users/Rogunt/esp/esp-idf=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER="v5.0.1-dirty" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/wifi.c.obj -MF esp-idf\main\CMakeFiles__idf_main.dir\wifi.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/wifi.c.obj -c C:/Users/Rogunt/Downloads/MiWifi-CR660x-Unlocker/main/wifi.c
In file included from C:/Users/Rogunt/Downloads/MiWifi-CR660x-Unlocker/main/wifi.c:5:
C:/Users/Rogunt/Downloads/MiWifi-CR660x-Unlocker/main/wifi.c: In function 'wifi_event_handler':
C:/Users/Rogunt/Downloads/MiWifi-CR660x-Unlocker/main/wifi.c:29:34: error: expected ')' before 'MACSTR'
29 | ESP_LOGI(TAG, "station " MACSTR " join, AID=%d",
| ^~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:282:88: note: in definition of macro 'LOG_FORMAT'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
C:/Users/Rogunt/Downloads/MiWifi-CR660x-Unlocker/main/wifi.c:29:9: note: in expansion of macro 'ESP_LOGI'
29 | ESP_LOGI(TAG, "station " MACSTR " join, AID=%d",
| ^~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:410:60: note: to match this '('
410 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
C:/Users/Rogunt/Downloads/MiWifi-CR660x-Unlocker/main/wifi.c:29:9: note: in expansion of macro 'ESP_LOGI'
29 | ESP_LOGI(TAG, "station " MACSTR " join, AID=%d",
| ^~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:265:27: error: format '%lu' expects a matching 'long unsigned int' argument [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:268:27: note: in expansion of macro 'LOG_COLOR'
268 | #define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
| ^~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_E'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:410:86: note: in expansion of macro 'LOG_FORMAT'
410 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
...
...
...C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
C:/Users/Rogunt/Downloads/MiWifi-CR660x-Unlocker/main/wifi.c:33:9: note: in expansion of macro 'ESP_LOGI'
33 | ESP_LOGI(TAG, "station " MACSTR " leave, AID=%d",
| ^~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:265:27: error: format '%s' expects a matching 'char ' argument [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:270:27: note: in expansion of macro 'LOG_COLOR'
270 | #define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
| ^~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_I'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:414:86: note: in expansion of macro 'LOG_FORMAT'
414 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
C:/Users/Rogunt/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
C:/Users/Rogunt/Downloads/MiWifi-CR660x-Unlocker/main/wifi.c:33:9: note: in expansion of macro 'ESP_LOGI'
33 | ESP_LOGI(TAG, "station " MACSTR " leave, AID=%d",
| ^~~~~~~~
C:/Users/Rogunt/Downloads/MiWifi-CR660x-Unlocker/main/wifi.c:32:42: warning: unused variable 'event' [-Wunused-variable]
32 | wifi_event_ap_stadisconnected_t event = (wifi_event_ap_stadisconnected_t*)event_data;
| ^~~~~
cc1.exe: some warnings being treated as errors
[838/845] Building C object esp-idf/wifi_provisioning/CMakeFiles/__idf_wifi_provisioning.dir/src/manager.c.obj
ninja: build stopped: subcommand failed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.