dzurikmiroslav / esp32-evse

ESP32 EVSE firmware
GNU General Public License v3.0
68 stars 26 forks source link

Not compiling after last update #de2fd29 #27

Closed Alfred1975 closed 10 months ago

Alfred1975 commented 10 months ago

Hello!

I ran 'git pull' after last changes #de2fd29 and now i see the following:

In file included from D:/esp32-evse/components/script/src/be_mqtt_client_lib.c:8: D:/esp32-evse/components/script/src/be_mqtt_client_lib.c: In function 'm_subscribe': C:/esp/esp-idf/components/mqtt/esp-mqtt/include/mqtt_client.h:464:84: error: '_Generic' selector of type 'const char *' is not compatible with any association 464 | #define esp_mqtt_client_subscribe(client_handle, topic_type, qos_or_size) _Generic((topic_type), \ | ^ D:/esp32-evse/components/script/src/be_mqtt_client_lib.c:226:26: note: in expansion of macro 'esp_mqtt_client_subscribe' 226 | int sub_id = esp_mqtt_client_subscribe(ctx->client, topic, qos); | ^~~~~~~~~ [1010/1062] Building C object esp-idf/script/CMakeFiles/__idf_script.dir/lib/berry/src/be_byteslib.c.obj ninja: build stopped: subcommand failed.

I have the latest update of esp-idf v.5 and the rest I did not touch.

What to update to make it compiling?

Regards, Alfred

brunohorta82 commented 10 months ago

same problem

Alfred1975 commented 10 months ago

After changing to currently latest stable release is 5.1.1 of idf everything is OK

brunohorta82 commented 10 months ago

thanks i will try

dzurikmiroslav commented 10 months ago

Described in #28

brunohorta82 commented 10 months ago

solved with 5.1.1 but breaks with 5.1.2

dzurikmiroslav commented 10 months ago

Fixed in commit cbc1e1c