<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Ludovic,<br>
<br>
I'm having trouble getting the experimental-esp-idf-v5 branch to
even configure.<br>
<br>
Configuring and building the "hello_world" example with idf5.0 works
without any issues, so it's related to our sources.<br>
<br>
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:<br>
<br>
<font face="monospace"><a class="moz-txt-link-abbreviated" href="mailto:balzer@leela:~/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3">balzer@leela:~/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3</a>>
idf.py set-target esp32<br>
Adding "set-target"'s dependency "fullclean" to list of commands
with default set of options.<br>
Executing action: fullclean<br>
Build directory
'/home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build'
not found. Nothing to clean.<br>
Executing action: set-target<br>
Set Target to: esp32, new sdkconfig created. Existing sdkconfig
renamed to sdkconfig.old.<br>
Running cmake in directory
/home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build<br>
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"...<br>
CMake Warning (dev) at CMakeLists.txt:8 (message):<br>
WARNING - OVMSv3 build is only supported on ESP-IDF 3.3.x<br>
This warning is for project developers. Use -Wno-dev to suppress
it.<br>
<br>
-- Found Git: /usr/bin/git (found version "2.35.3") <br>
-- The C compiler identification is GNU 11.2.0<br>
-- The CXX compiler identification is GNU 11.2.0<br>
-- The ASM compiler identification is GNU<br>
-- Found assembler:
/home/balzer/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- 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<br>
-- Detecting C compile features<br>
-- Detecting C compile features - done<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- 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<br>
-- Detecting CXX compile features<br>
-- Detecting CXX compile features - done<br>
-- Building ESP-IDF components for target esp32<br>
Processing 2 dependencies:<br>
[1/2] espressif/mdns (1.0.7)<br>
[2/2] idf (5.0.0)<br>
-- Found BISON: /usr/bin/bison (found version "3.0.4") <br>
-- Found FLEX: /usr/bin/flex (found version "2.6.4") <br>
-- IDF Version: 5.0.0 - NOT enabling strverscmp<br>
CMake Error at
/home/balzer/esp/esp-idf/tools/cmake/component.cmake:224
(message):<br>
CMake Warning (dev) at build_properties.temp.cmake:8:<br>
<br>
Syntax Warning in cmake code at column 51<br>
<br>
<br>
<br>
Argument not separated from preceding token by whitespace.<br>
<br>
Call Stack (most recent call first):<br>
<br>
/home/balzer/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:3
(include)<br>
<br>
This warning is for project developers. Use -Wno-dev to
suppress it.<br>
<br>
<br>
<br>
CMake Error: Error required internal CMake variable not set,
cmake may not<br>
be built correctly.<br>
<br>
Missing variable is:<br>
<br>
CMAKE_FIND_LIBRARY_PREFIXES<br>
<br>
CMake Error: Error required internal CMake variable not set,
cmake may not<br>
be built correctly.<br>
<br>
Missing variable is:<br>
<br>
CMAKE_FIND_LIBRARY_SUFFIXES<br>
<br>
Call Stack (most recent call first):<br>
/home/balzer/esp/esp-idf/tools/cmake/build.cmake:553
(__component_get_requirements)<br>
/home/balzer/esp/esp-idf/tools/cmake/project.cmake:440
(idf_build_process)<br>
CMakeLists.txt:18 (project)<br>
<br>
<br>
-- Configuring incomplete, errors occurred!<br>
See also
"/home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/CMakeFiles/CMakeOutput.log".<br>
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<br>
</font><br>
<br>
<br>
Any idea about this?<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 02.02.23 um 22:38 schrieb Ludovic
LANGE:<br>
</div>
<blockquote type="cite"
cite="mid:8a075626-bfbe-c00c-9601-f7c21707f7d9@lange.nom.fr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">Hi list,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I started to split my big list of
patches into smaller, more manageable, easier to review PRs:</div>
<div class="moz-cite-prefix">
<div class="moz-cite-prefix">
<ul>
<li> <a id="issue_825_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/825/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/825"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">missing headers</a> <span
class="opened-by">#825</span></li>
<li> <a id="issue_824_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/824/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/824"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">ESP-IDF v5+: dependency on
ovms_webserver.h</a> <span class="opened-by">#824</span></li>
<li> <a id="issue_823_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/823/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/823"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">ESP-IDF v5+: change type of
TaskHandle_t</a><span class="opened-by"> #823</span></li>
<li> <a id="issue_822_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/822/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/822"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">changes to (long deprecated) ADC
constants</a> <span class="opened-by">#822 </span> </li>
<li> <a id="issue_821_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/821/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/821"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">ESP-IDF v5+: static assertion
failed: std::vector must have the same value_type as its
allocator</a> <span class="opened-by">#821 </span> </li>
<li> <a id="issue_820_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/820/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/820"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">ESP-IDF v5+: static assertion
failed: comparison object must be invocable as const</a>
<span class="opened-by">#820</span> </li>
<li> <a id="issue_819_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/819/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/819"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">ESP-IDF v4+ : remove deprecated
and unused esp_event_loop.h</a> <span class="opened-by">#819</span>
</li>
<li> <a id="issue_818_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/818/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/818"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">remove warning by replacing
rom/queue.h with sys/queue.h</a> <span
class="opened-by">#818</span> </li>
<li> <a id="issue_817_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/817/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/817"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">remove warning : '_GNU_SOURCE'
redefined</a> <span class="opened-by">#817</span> </li>
<li> <a id="issue_816_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/816/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/816"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">ESP-IDF v4+ : esp_intr.h is
deprecated, replaced by esp_intr_alloc.h</a> <span
class="opened-by">#816</span> </li>
<li> <a id="issue_815_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/815/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/815"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">Add header and fix function
signature</a> <span class="opened-by">#815</span> </li>
<li> <a id="issue_813_link" class="Link--primary
v-align-middle no-underline h4 js-navigation-open
markdown-title" data-hovercard-type="pull_request"
data-hovercard-url="/openvehicles/Open-Vehicle-Monitoring-System-3/pull/813/hovercard"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/813"
data-turbo-frame="repo-content-turbo-frame"
moz-do-not-send="true">replace some constants with their
more adapted counterpart</a> <span class="opened-by">#813
</span></li>
</ul>
</div>
</div>
<div class="moz-cite-prefix">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.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Best regards,<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Le 31/01/2023 à 01:49, Ludovic LANGE
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:c8a3790f-a00f-3760-2a7b-a1086cdcb992@lange.nom.fr">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<div class="moz-cite-prefix">Hi list,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Another quick post to share with
you the progress on the ESP-IDFv5 + cmake endeavour:</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">
<ul>
<li>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 <a moz-do-not-send="true"
href="https://github.com/llange/Open-Vehicle-Monitoring-System-3/blob/experimental-esp-idf-v5/README.md">the
README.md</a>.<br>
<br>
</li>
<li>The branch <a class="moz-txt-link-freetext"
href="https://github.com/llange/Open-Vehicle-Monitoring-System-3/tree/experimental-esp-idf-v5"
moz-do-not-send="true">https://github.com/llange/Open-Vehicle-Monitoring-System-3/tree/experimental-esp-idf-v5</a>
is now ready for testing, sharing, studying, ...<br>
<br>
</li>
<li>I created a draft PR <a class="moz-txt-link-freetext"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/810"
moz-do-not-send="true">https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/810</a>
(just like for ESP-IDFv4), in order to show the diff and
gather feedback. Not to be merged as-is.<br>
<br>
</li>
<li>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.<br>
</li>
</ul>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">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 :-)</div>
<div class="moz-cite-prefix">So if you checkout the branch,
please be warned and know your git commands to either reset or
rebase your working copy...<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Next on my list are, in no
particular order:</div>
<div class="moz-cite-prefix">
<ul>
<li>Have a few patches/bugs fixed in upstream wolfSSL (in
progress) in order to enable<br>
</li>
<li>Check to see if we could upgrade mongoose (not
absolutely necessary because it works / compile OK with a
small patch)</li>
<li>Fix the remaining warnings</li>
<ul>
<li>And change the ADC implementation that is deprecated
now</li>
<li>deprecation of esp_vfs_fat_spiflash_mount /
esp_vfs_fat_spiflash_unmount</li>
</ul>
<li>Fix the WIP WIP WIP commits</li>
<li>Resume work on <a class="moz-txt-link-freetext"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/752"
moz-do-not-send="true">https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/752</a><br>
</li>
</ul>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Boot time warnings to study and
check if OK:</div>
<div class="moz-cite-prefix">
<ul>
<li>W (1091) esp_psram: Virtual address not enough for
PSRAM, map as much as we can. 4MB is mapped</li>
<li>W (2132) ADC: legacy driver is deprecated, please
migrate to `esp_adc/adc_oneshot.h` (<- this one is
easy to understand...)</li>
</ul>
<p><br>
</p>
<p>Additional instructions:</p>
<p>When first building, your sdkconfig will be converted as
some config options did change betwen ESP-IDF v3.x and v5.x.</p>
<p>Run `menuconfig` and :</p>
<ul>
<li><b>Select FREERTOS_ENABLE_BACKWARD_COMPATIBILITY</b>(=y)
"configENABLE_BACKWARD_COMPATIBILITY"</li>
<li><b>Unselect MG_ENABLE_SSL</b>(=n) "Enable MONGOOSE
SSL/TLS support"</li>
</ul>
<p><br>
</p>
<p>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.<br>
</p>
<p><br>
</p>
</div>
<div class="moz-cite-prefix">Best regards,</div>
</blockquote>
<br>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26</pre>
</body>
</html>