[Ovmsdev] ESP-IDF v4 / v5 - baby steps

Michael Balzer dexter at expeedo.de
Sun Feb 5 23:43:50 HKT 2023


It's cmake version 3.20.4.

As I wrote, everything works with the example project "hello_world".

Apparently the error occurs while the builder checks the dependencies, 
specifically the "idf" dependency. Where does that originate from? 
"hello_world" does not need this.

The checked out version is your branch llange/experimental-esp-idf-v5.

Regards,
Michael


Am 05.02.23 um 15:45 schrieb Ludovic LANGE:
> Hi Michael,
>
> Sorry to hear you have issues but very happy that you're trying to 
> compile it ! We're going to solve those :-)
>
> I don't use this command `idf.py set-target esp32` myself - but after 
> trying it, it works as expected.
> (By the look of it, it says "Set Target to: esp32, new sdkconfig 
> created. Existing sdkconfig renamed to sdkconfig.old." so I would be 
> careful not to use it too much as you loose your sdkconfig)
>
> The only commands I'm using are:
>
>   * menuconfig (once in a while)
>   * fullclean (while switching ESP-IDF version ; also doing `rm -rf
>     build/`)
>   * clean (if some changes have been made and not caught by cmake)
>   * build (90% of the time)
>   * app-flash
>   * monitor
>
> My versions of git / bison / flex are (for the record):
>
>
> -- Found Git: /usr/local/bin/git (found version "2.39.1")
> -- The C compiler identification is GNU 11.2.0
> -- The CXX compiler identification is GNU 11.2.0
>
> ...
>
> -- Found BISON: /usr/bin/bison (found version "2.3")
> -- Found FLEX: /usr/bin/flex (found version "2.6.4")
>
> (I also had success with bison 3.8.2 so not an issue)
>
>
> and my cmake is : cmake version 3.25.2
> and ninja is at version 1.11.1
>
> I set a required version of cmake 3.16 in the main CMakeLists.txt, as 
> recommended by ESP-IDF v5 instructions, but if it's the issue we can 
> modify this.
> Could you please check your version and see if there is something to 
> try here ?
>
>
> During the `set-target esp32` run, my output is similar to yours but 
> continues:
>
>> Adding "set-target"'s dependency "fullclean" to list of commands with 
>> default set of options.
>> Executing action: fullclean
>> Executing action: set-target
>> Set Target to: esp32, new sdkconfig created. Existing sdkconfig 
>> renamed to sdkconfig.old.
>> Running cmake in directory SRCS/OVMS-wt2/vehicle/OVMS.V3/build
>> Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 
>> -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 SRCS/OVMS-wt2/vehicle/OVMS.V3"...
>> CMake Warning (dev) at CMakeLists.txt:8 (message):
>>   WARNING - OVMSv3 build is only supported on ESP-IDF 3.3.x
>> This warning is for project developers.  Use -Wno-dev to suppress it.
>>
>> -- Found Git: /usr/local/bin/git (found version "2.39.1")
>> -- The C compiler identification is GNU 11.2.0
>> -- The CXX compiler identification is GNU 11.2.0
>> -- The ASM compiler identification is GNU
>> -- Found assembler: 
>> SRCS/ESP-IDF-TOOLS/5.0/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
>> -- Detecting C compiler ABI info
>> -- Detecting C compiler ABI info - done
>> -- Check for working C compiler: 
>> SRCS/ESP-IDF-TOOLS/5.0/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc 
>> - skipped
>> -- Detecting C compile features
>> -- Detecting C compile features - done
>> -- Detecting CXX compiler ABI info
>> -- Detecting CXX compiler ABI info - done
>> -- Check for working CXX compiler: 
>> SRCS/ESP-IDF-TOOLS/5.0/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ 
>> - skipped
>> -- Detecting CXX compile features
>> -- Detecting CXX compile features - done
>> -- Building ESP-IDF components for target esp32
>> Processing 2 dependencies:
>> [1/2] espressif/mdns (1.0.7)
>> [2/2] idf (5.0.0)
>> -- Found BISON: /usr/bin/bison (found version "2.3")
>> -- Found FLEX: /usr/bin/flex (found version "2.6.4")
>> -- IDF Version: 5.0.0 - NOT enabling strverscmp
>> -- Project sdkconfig file SRCS/OVMS-wt2/vehicle/OVMS.V3/sdkconfig
>> -- Looking for sys/types.h
>> -- Looking for sys/types.h - found
>> -- Looking for stdint.h
>> -- Looking for stdint.h - found
>> -- Looking for stddef.h
>> -- Looking for stddef.h - found
>> -- Check size of time_t
>> -- Check size of time_t - done
>> -- Found Python3: 
>> SRCS/ESP-IDF-TOOLS/5.0/python_env/idf5.0_py3.10_env/bin/python (found 
>> version "3.10.9") found components: Interpreter
>> -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
>> -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
>> -- App "ovms3" version: 3.3.003-316-gcb90ef8c-dirty
>> -- Adding linker script 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/build/esp-idf/esp_system/ld/memory.ld
>> -- Adding linker script 
>> SRCS/ESP-IDF/5.0/components/esp_system/ld/esp32/sections.ld.in
>> -- Adding linker script 
>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.ld
>> -- Adding linker script 
>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.api.ld
>> -- Adding linker script 
>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
>> -- Adding linker script 
>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
>> -- Adding linker script 
>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
>> -- Adding linker script 
>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
>> -- Adding linker script 
>> SRCS/ESP-IDF/5.0/components/soc/esp32/ld/esp32.peripherals.ld
>> -- Adding linker script SRCS/OVMS-wt2/vehicle/OVMS.V3/main/ovms_boot.ld
>> -- wolfssl : EXCLUDE_ASM = 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/aes_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/aes_gcm_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/aes_gcm_x86_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/chacha_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/fe_x25519_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/poly1305_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-32-aes-asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-32-curve25519.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-32-sha256-asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-32-sha512-asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-curve25519.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-sha3-asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-sha512-asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/sha256_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/sha3_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/sha512_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/sp_x86_64_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/wc_kyber_asm.S
>> -- Found BISON: /usr/bin/bison (found version "2.3")
>> -- Found FLEX: /usr/bin/flex (found version "2.6.4")
>> -- Found Perl: /usr/local/bin/perl (found version "5.36.0")
>> -- IDF Version: 5.0.0 - NOT enabling strverscmp
>> -- Component idf::main will be linked with -Wl,--whole-archive
>> -- Component idf::pcp will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_buffer will be linked with -Wl,--whole-archive
>> -- Component idf::can will be linked with -Wl,--whole-archive
>> -- Component idf::canopen will be linked with -Wl,--whole-archive
>> -- Component idf::wolfssl will be linked with -Wl,--whole-archive
>> -- Component idf::console_ssh will be linked with -Wl,--whole-archive
>> -- Component idf::console_telnet will be linked with -Wl,--whole-archive
>> -- Component idf::crypto will be linked with -Wl,--whole-archive
>> -- Component idf::dbc will be linked with -Wl,--whole-archive
>> -- Component idf::esp32adc will be linked with -Wl,--whole-archive
>> -- Component idf::esp32bluetooth will be linked with -Wl,--whole-archive
>> -- Component idf::esp32can will be linked with -Wl,--whole-archive
>> -- Component idf::esp32system will be linked with -Wl,--whole-archive
>> -- Component idf::esp32wifi will be linked with -Wl,--whole-archive
>> -- Component idf::ext12v will be linked with -Wl,--whole-archive
>> -- Component idf::max7317 will be linked with -Wl,--whole-archive
>> -- Component idf::mcp2515 will be linked with -Wl,--whole-archive
>> -- Component idf::microrl will be linked with -Wl,--whole-archive
>> -- Component idf::obd2ecu will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_http will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_location will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_mdns will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_netlib will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_ota will be linked with -Wl,--whole-archive
>> -- Component idf::pushover will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_webserver will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_plugins will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_tls will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_script will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_server will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_server_v2 will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_server_v3 will be linked with -Wl,--whole-archive
>> -- Component idf::ovms_tpms will be linked with -Wl,--whole-archive
>> -- Component idf::powermgmt will be linked with -Wl,--whole-archive
>> -- Component idf::retools will be linked with -Wl,--whole-archive
>> -- Component idf::retools_pidscan will be linked with -Wl,--whole-archive
>> -- Component idf::retools_testerpresent will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::sdcard will be linked with -Wl,--whole-archive
>> -- Component idf::simcom will be linked with -Wl,--whole-archive
>> -- Component idf::spi will be linked with -Wl,--whole-archive
>> -- Component idf::strverscmp will be linked with -Wl,--whole-archive
>> -- Component idf::swcan will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_bmwi3 will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_boltev will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_cadillac_c2_cts will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_chevrolet_c6_corvette will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_dbc will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_demo will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_fiat500 will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_hyundai_ioniq5 will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_hyundai_ioniqvfl will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_jaguaripace will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_kianiroev will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_kiasoulev will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_maxus_edeliver3 will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_mercedesb250e will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_mgev will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_minise will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_mitsubishi will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_nissanleaf will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_none will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_obdii will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_renaulttwizy will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_renaultzoe will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_renaultzoe_ph2_obd will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_smarted will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_smarteq will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_teslamodel3 will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_teslamodels will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_teslaroadster will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_thinkcity will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_toyotarav4ev will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_track will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_voltampera will be linked with 
>> -Wl,--whole-archive
>> -- Component idf::vehicle_vweup will be linked with -Wl,--whole-archive
>> -- Component idf::vehicle_zeva will be linked with -Wl,--whole-archive
>> -- Component idf::vfsedit will be linked with -Wl,--whole-archive
>> -- Component idf::zip will be linked with -Wl,--whole-archive
>> -- Components: app_trace app_update bootloader bootloader_support bt 
>> can canopen cmock console console_ssh console_telnet crypto cxx dbc 
>> driver duktape efuse esp-tls esp32adc esp32bluetooth esp32can 
>> esp32system esp32wifi esp_adc esp_app_format esp_common esp_eth 
>> esp_event esp_gdbstub esp_hid esp_http_client esp_http_server 
>> esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl 
>> esp_netif esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom 
>> esp_system esp_timer esp_wifi espcoredump espressif__mdns esptool_py 
>> ext12v fatfs freertos hal heap http_parser idf_test ieee802154 json 
>> libtelnet log lwip main max7317 mbedtls mcp2515 microrl mongoose mqtt 
>> newlib nvs_flash obd2ecu openthread ovms_buffer ovms_cellular 
>> ovms_http ovms_location ovms_mdns ovms_netlib ovms_ota ovms_plugins 
>> ovms_script ovms_server ovms_server_v2 ovms_server_v3 ovms_tls 
>> ovms_tpms ovms_webserver partition_table pcp perfmon powermgmt 
>> protobuf-c protocomm pthread pushover retools retools_pidscan 
>> retools_testerpresent sdcard sdmmc simcom soc spi spi_flash spiffs 
>> strverscmp swcan tcp_transport ulp unity usb vehicle vehicle_bmwi3 
>> vehicle_boltev vehicle_cadillac_c2_cts vehicle_chevrolet_c6_corvette 
>> vehicle_dbc vehicle_demo vehicle_fiat500 vehicle_hyundai_ioniq5 
>> vehicle_hyundai_ioniqvfl vehicle_jaguaripace vehicle_kianiroev 
>> vehicle_kiasoulev vehicle_maxus_edeliver3 vehicle_mercedesb250e 
>> vehicle_mgev vehicle_minise vehicle_mitsubishi vehicle_nissanleaf 
>> vehicle_none vehicle_obdii vehicle_renaulttwizy vehicle_renaultzoe 
>> vehicle_renaultzoe_ph2_obd vehicle_smarted vehicle_smarteq 
>> vehicle_teslamodel3 vehicle_teslamodels vehicle_teslaroadster 
>> vehicle_thinkcity vehicle_toyotarav4ev vehicle_track 
>> vehicle_voltampera vehicle_vweup vehicle_zeva vfs vfsedit 
>> wear_levelling wifi_provisioning wolfssh wolfssl wpa_supplicant 
>> xtensa zip
>> -- Component paths: SRCS/ESP-IDF/5.0/components/app_trace 
>> SRCS/ESP-IDF/5.0/components/app_update 
>> SRCS/ESP-IDF/5.0/components/bootloader 
>> SRCS/ESP-IDF/5.0/components/bootloader_support 
>> SRCS/ESP-IDF/5.0/components/bt 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/can 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/canopen 
>> SRCS/ESP-IDF/5.0/components/cmock 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/console 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/console_ssh 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/console_telnet 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/crypto 
>> SRCS/ESP-IDF/5.0/components/cxx 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/dbc 
>> SRCS/ESP-IDF/5.0/components/driver 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/duktape 
>> SRCS/ESP-IDF/5.0/components/efuse SRCS/ESP-IDF/5.0/components/esp-tls 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/esp32adc 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/esp32bluetooth 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/esp32can 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/esp32system 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/esp32wifi 
>> SRCS/ESP-IDF/5.0/components/esp_adc 
>> SRCS/ESP-IDF/5.0/components/esp_app_format 
>> SRCS/ESP-IDF/5.0/components/esp_common 
>> SRCS/ESP-IDF/5.0/components/esp_eth 
>> SRCS/ESP-IDF/5.0/components/esp_event 
>> SRCS/ESP-IDF/5.0/components/esp_gdbstub 
>> SRCS/ESP-IDF/5.0/components/esp_hid 
>> SRCS/ESP-IDF/5.0/components/esp_http_client 
>> SRCS/ESP-IDF/5.0/components/esp_http_server 
>> SRCS/ESP-IDF/5.0/components/esp_https_ota 
>> SRCS/ESP-IDF/5.0/components/esp_https_server 
>> SRCS/ESP-IDF/5.0/components/esp_hw_support 
>> SRCS/ESP-IDF/5.0/components/esp_lcd 
>> SRCS/ESP-IDF/5.0/components/esp_local_ctrl 
>> SRCS/ESP-IDF/5.0/components/esp_netif 
>> SRCS/ESP-IDF/5.0/components/esp_partition 
>> SRCS/ESP-IDF/5.0/components/esp_phy 
>> SRCS/ESP-IDF/5.0/components/esp_pm 
>> SRCS/ESP-IDF/5.0/components/esp_psram 
>> SRCS/ESP-IDF/5.0/components/esp_ringbuf 
>> SRCS/ESP-IDF/5.0/components/esp_rom 
>> SRCS/ESP-IDF/5.0/components/esp_system 
>> SRCS/ESP-IDF/5.0/components/esp_timer 
>> SRCS/ESP-IDF/5.0/components/esp_wifi 
>> SRCS/ESP-IDF/5.0/components/espcoredump 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/managed_components/espressif__mdns 
>> SRCS/ESP-IDF/5.0/components/esptool_py 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ext12v 
>> SRCS/ESP-IDF/5.0/components/fatfs 
>> SRCS/ESP-IDF/5.0/components/freertos SRCS/ESP-IDF/5.0/components/hal 
>> SRCS/ESP-IDF/5.0/components/heap 
>> SRCS/ESP-IDF/5.0/components/http_parser 
>> SRCS/ESP-IDF/5.0/components/idf_test 
>> SRCS/ESP-IDF/5.0/components/ieee802154 
>> SRCS/ESP-IDF/5.0/components/json 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/libtelnet 
>> SRCS/ESP-IDF/5.0/components/log SRCS/ESP-IDF/5.0/components/lwip 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/main 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/max7317 
>> SRCS/ESP-IDF/5.0/components/mbedtls 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/mcp2515 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/microrl 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/mongoose 
>> SRCS/ESP-IDF/5.0/components/mqtt SRCS/ESP-IDF/5.0/components/newlib 
>> SRCS/ESP-IDF/5.0/components/nvs_flash 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/obd2ecu 
>> SRCS/ESP-IDF/5.0/components/openthread 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_buffer 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_cellular 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_http 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_location 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_mdns 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_netlib 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_ota 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_plugins 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_script 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_server 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_server_v2 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_server_v3 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_tls 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_tpms 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_webserver 
>> SRCS/ESP-IDF/5.0/components/partition_table 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/pcp 
>> SRCS/ESP-IDF/5.0/components/perfmon 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/powermgmt 
>> SRCS/ESP-IDF/5.0/components/protobuf-c 
>> SRCS/ESP-IDF/5.0/components/protocomm 
>> SRCS/ESP-IDF/5.0/components/pthread 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/pushover 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/retools 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/retools_pidscan 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/retools_testerpresent 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/sdcard 
>> SRCS/ESP-IDF/5.0/components/sdmmc 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/simcom 
>> SRCS/ESP-IDF/5.0/components/soc 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/spi 
>> SRCS/ESP-IDF/5.0/components/spi_flash 
>> SRCS/ESP-IDF/5.0/components/spiffs 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/strverscmp 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/swcan 
>> SRCS/ESP-IDF/5.0/components/tcp_transport 
>> SRCS/ESP-IDF/5.0/components/ulp SRCS/ESP-IDF/5.0/components/unity 
>> SRCS/ESP-IDF/5.0/components/usb 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_bmwi3 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_boltev 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_cadillac_c2_cts 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_chevrolet_c6_corvette 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_dbc 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_demo 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_fiat500 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_hyundai_ioniq5 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_hyundai_ioniqvfl 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_jaguaripace 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_kianiroev 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_kiasoulev 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_maxus_edeliver3 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_mercedesb250e 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_mgev 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_minise 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_mitsubishi 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_nissanleaf 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_none 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_obdii 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_renaulttwizy 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_renaultzoe 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_renaultzoe_ph2_obd 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_smarted 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_smarteq 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_teslamodel3 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_teslamodels 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_teslaroadster 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_thinkcity 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_toyotarav4ev 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_track 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_voltampera 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_vweup 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_zeva 
>> SRCS/ESP-IDF/5.0/components/vfs 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vfsedit 
>> SRCS/ESP-IDF/5.0/components/wear_levelling 
>> SRCS/ESP-IDF/5.0/components/wifi_provisioning 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssh 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl 
>> SRCS/ESP-IDF/5.0/components/wpa_supplicant 
>> SRCS/ESP-IDF/5.0/components/xtensa 
>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/zip
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to: SRCS/OVMS-wt2/vehicle/OVMS.V3/build
>
> So the next line that should have been printed, instead of the error, 
> would have been:
>> -- Project sdkconfig file SRCS/OVMS-wt2/vehicle/OVMS.V3/sdkconfig
>
> Could you check that your env variable `IDF_PATH` is pointing to the 
> proper copy of ESP-IDF (v5 then) ? It's currently set to 
> `/home/balzer/esp/esp-idf`.
>
> (The main CMakeLists.txt includes 
> `$ENV{IDF_PATH}/tools/cmake/project.cmake`)
>
> The important env variables for ESP-IDF would be:
>
>   * CMAKE_COLOR_DIAGNOSTICS set to 1 to have beautiful error messages
>   * ESPBAUD set to 921600
>   * ESPPORT set to your usb device (mine is /dev/cu.usbserial-0001)
>   * ESP_IDF_VERSION (5.0 here)
>   * IDF_PATH should be set to the proper 5.0 root
>   * IDF_TOOLS_EXPORT_CMD on my installation is equivalent to
>     $IDF_PATH/export.sh
>   * IDF_TOOLS_INSTALL_CMD on my installation is equivalent to
>     $IDF_PATH/install.sh
>   * IDF_TOOLS_PATH should be set to proper 5.0 tools root
>   * IDF_PYTHON_ENV_PATH on my installation is equivalent to
>     $IDF_TOOLS_PATH/python_env/idf5.0_py3.10_env
>   * OPENOCD_SCRIPTS on my installation is equivalent to
>     $IDF_TOOLS_PATH/tools/openocd-esp32/v0.11.0-esp32-20221026/openocd-esp32/share/openocd/scripts
>     and
>   * PATH which should include a few occurrences of $IDF_PATH and
>     $IDF_TOOLS_PATH
>
> All of them should be automatically set it you have installed per the 
> docs, and the fact that "hello_world" compiles is a good indicator 
> that it was OK on your install , but double-checking is always 
> interesting.
>
>
>
> Let me know the result of your checks.
>
>
> Regards,
>
>
> Le 05/02/2023 à 11:48, Michael Balzer a écrit :
>> Ludovic,
>>
>> I'm having trouble getting the experimental-esp-idf-v5 branch to even 
>> configure.
>>
>> Configuring and building the "hello_world" example with idf5.0 works 
>> without any issues, so it's related to our sources.
>>
>> I've tried removing the build directory, doing "idf.py python-clean", 
>> doing "idf.py clean" "idf.py fullclean", but I always get this, 
>> already when doing set-target:
>>
>> balzer at leela:~/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3> 
>> idf.py set-target esp32
>> Adding "set-target"'s dependency "fullclean" to list of commands with 
>> default set of options.
>> Executing action: fullclean
>> Build directory 
>> '/home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build' 
>> not found. Nothing to clean.
>> Executing action: set-target
>> Set Target to: esp32, new sdkconfig created. Existing sdkconfig 
>> renamed to sdkconfig.old.
>> Running cmake in directory 
>> /home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build
>> Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 
>> -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 
>> /home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3"...
>> CMake Warning (dev) at CMakeLists.txt:8 (message):
>>   WARNING - OVMSv3 build is only supported on ESP-IDF 3.3.x
>> This warning is for project developers.  Use -Wno-dev to suppress it.
>>
>> -- Found Git: /usr/bin/git (found version "2.35.3")
>> -- The C compiler identification is GNU 11.2.0
>> -- The CXX compiler identification is GNU 11.2.0
>> -- The ASM compiler identification is GNU
>> -- Found assembler: 
>> /home/balzer/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
>> -- Detecting C compiler ABI info
>> -- Detecting C compiler ABI info - done
>> -- Check for working C compiler: 
>> /home/balzer/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc 
>> - skipped
>> -- Detecting C compile features
>> -- Detecting C compile features - done
>> -- Detecting CXX compiler ABI info
>> -- Detecting CXX compiler ABI info - done
>> -- Check for working CXX compiler: 
>> /home/balzer/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ 
>> - skipped
>> -- Detecting CXX compile features
>> -- Detecting CXX compile features - done
>> -- Building ESP-IDF components for target esp32
>> Processing 2 dependencies:
>> [1/2] espressif/mdns (1.0.7)
>> [2/2] idf (5.0.0)
>> -- Found BISON: /usr/bin/bison (found version "3.0.4")
>> -- Found FLEX: /usr/bin/flex (found version "2.6.4")
>> -- IDF Version: 5.0.0 - NOT enabling strverscmp
>> CMake Error at 
>> /home/balzer/esp/esp-idf/tools/cmake/component.cmake:224 (message):
>>   CMake Warning (dev) at build_properties.temp.cmake:8:
>>
>>     Syntax Warning in cmake code at column 51
>>
>>
>>
>>     Argument not separated from preceding token by whitespace.
>>
>>   Call Stack (most recent call first):
>>
>> /home/balzer/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:3 
>> (include)
>>
>>   This warning is for project developers.  Use -Wno-dev to suppress it.
>>
>>
>>
>>   CMake Error: Error required internal CMake variable not set, cmake 
>> may not
>>   be built correctly.
>>
>>   Missing variable is:
>>
>>   CMAKE_FIND_LIBRARY_PREFIXES
>>
>>   CMake Error: Error required internal CMake variable not set, cmake 
>> may not
>>   be built correctly.
>>
>>   Missing variable is:
>>
>>   CMAKE_FIND_LIBRARY_SUFFIXES
>>
>> Call Stack (most recent call first):
>>   /home/balzer/esp/esp-idf/tools/cmake/build.cmake:553 
>> (__component_get_requirements)
>>   /home/balzer/esp/esp-idf/tools/cmake/project.cmake:440 
>> (idf_build_process)
>>   CMakeLists.txt:18 (project)
>>
>>
>> -- Configuring incomplete, errors occurred!
>> See also 
>> "/home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/CMakeFiles/CMakeOutput.log".
>> cmake failed with exit code 1, output of the command is in the 
>> /home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/log/idf_py_stderr_output_8211 
>> and 
>> /home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/log/idf_py_stdout_output_8211
>>
>>
>>
>> Any idea about this?
>>
>> Regards,
>> Michael
>>
>>
>> Am 02.02.23 um 22:38 schrieb Ludovic LANGE:
>>> Hi list,
>>>
>>> I started to split my big list of patches into smaller, more 
>>> manageable, easier to review PRs:
>>>
>>>   * missing headers
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/825>
>>>     #825
>>>   * ESP-IDF v5+: dependency on ovms_webserver.h
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/824>
>>>     #824
>>>   * ESP-IDF v5+: change type of TaskHandle_t
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/823>#823
>>>   * changes to (long deprecated) ADC constants
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/822>
>>>     #822
>>>   * ESP-IDF v5+: static assertion failed: std::vector must have the
>>>     same value_type as its allocator
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/821>
>>>     #821
>>>   * ESP-IDF v5+: static assertion failed: comparison object must be
>>>     invocable as const
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/820>
>>>     #820
>>>   * ESP-IDF v4+ : remove deprecated and unused esp_event_loop.h
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/819>
>>>     #819
>>>   * remove warning by replacing rom/queue.h with sys/queue.h
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/818>
>>>     #818
>>>   * remove warning : '_GNU_SOURCE' redefined
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/817>
>>>     #817
>>>   * ESP-IDF v4+ : esp_intr.h is deprecated, replaced by
>>>     esp_intr_alloc.h
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/816>
>>>     #816
>>>   * Add header and fix function signature
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/815>
>>>     #815
>>>   * replace some constants with their more adapted counterpart
>>>     <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/813>
>>>     #813
>>>
>>> Let me know if it's the proper approach ; and if some of you can 
>>> review those changes and comment on them, it'll help merging those - 
>>> and progress in reaching ESP-IDFv5 compatibility.
>>>
>>> Best regards,
>>>
>>> Le 31/01/2023 à 01:49, Ludovic LANGE a écrit :
>>>> Hi list,
>>>>
>>>> Another quick post to share with you the progress on the ESP-IDFv5 
>>>> + cmake endeavour:
>>>>
>>>>   * ESP-IDF v5 version of OVMSv3 is now officially booting and
>>>>     seems to work fine (then again, I'm not doing any real-world
>>>>     testing for lack of time / car at the moment - it's here that
>>>>     you can help me) with a few caveats detailed in the PR or the
>>>>     README.md
>>>>     <https://github.com/llange/Open-Vehicle-Monitoring-System-3/blob/experimental-esp-idf-v5/README.md>.
>>>>
>>>>   * The branch
>>>>     https://github.com/llange/Open-Vehicle-Monitoring-System-3/tree/experimental-esp-idf-v5
>>>>     is now ready for testing, sharing, studying, ...
>>>>
>>>>   * I created a draft PR
>>>>     https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/810
>>>>     (just like for ESP-IDFv4), in order to show the diff and gather
>>>>     feedback. Not to be merged as-is.
>>>>
>>>>   * I'll try to break it into smaller low-impact / easy-to-review
>>>>     PR's that could be merged as-is in current master (warning
>>>>     corrections, header definitions, xxprintf type impact, etc...),
>>>>     so that the big pieces could be more easily reviewed.
>>>>
>>>>
>>>> Please note that those branches / PRs are still Work-In-Progress, 
>>>> and that I may certainly (and wrongly) `push --force` some changes 
>>>> as I rebase, update or split the big PR into smaller, easy to study 
>>>> PRs. I'll try not to but can't promise :-)
>>>> So if you checkout the branch, please be warned and know your git 
>>>> commands to either reset or rebase your working copy...
>>>>
>>>> Next on my list are, in no particular order:
>>>>
>>>>   * Have a few patches/bugs fixed in upstream wolfSSL (in progress)
>>>>     in order to enable
>>>>   * Check to see if we could upgrade mongoose (not absolutely
>>>>     necessary because it works / compile OK with a small patch)
>>>>   * Fix the remaining warnings
>>>>       o And change the ADC implementation that is deprecated now
>>>>       o deprecation of esp_vfs_fat_spiflash_mount /
>>>>         esp_vfs_fat_spiflash_unmount
>>>>   * Fix the WIP WIP WIP commits
>>>>   * Resume work on
>>>>     https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/752
>>>>
>>>>
>>>> Boot time warnings to study and check if OK:
>>>>
>>>>   * W (1091) esp_psram: Virtual address not enough for PSRAM, map
>>>>     as much as we can. 4MB is mapped
>>>>   * W (2132) ADC: legacy driver is deprecated, please migrate to
>>>>     `esp_adc/adc_oneshot.h`   (<- this one is easy to understand...)
>>>>
>>>>
>>>> Additional instructions:
>>>>
>>>> When first building, your sdkconfig will be converted as some 
>>>> config options did change betwen ESP-IDF v3.x and v5.x.
>>>>
>>>> Run `menuconfig` and :
>>>>
>>>>   * *Select FREERTOS_ENABLE_BACKWARD_COMPATIBILITY*(=y)
>>>>     "configENABLE_BACKWARD_COMPATIBILITY"
>>>>   * *Unselect MG_ENABLE_SSL*(=n) "Enable MONGOOSE SSL/TLS support"
>>>>
>>>>
>>>> If any of you with some free time could be nice enough to try to 
>>>> reproduce such a build and share the experience here. Let me know 
>>>> how the instructions could be updated and what issues you are facing.
>>>>
>>>>
>>>> Best regards,
>>>
>>>
>>> _______________________________________________
>>> OvmsDev mailing list
>>> OvmsDev at lists.openvehicles.com
>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>
>> -- 
>> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
>> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
>>
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.openvehicles.com
>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev

-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20230205/e4e3bb96/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20230205/e4e3bb96/attachment-0001.sig>


More information about the OvmsDev mailing list