cspot
cspot copied to clipboard
ESP32 CMake Errors
I get some errors for esp32 build on recent master related to missing mdns package:
CMake Error at /home/user/esp-idf/tools/cmake/project.cmake:480 (add_executable):
Target "cspot-esp32.elf" links to target "idf::mdns" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:13 (project)
CMake Error at /home/user/esp-idf/tools/cmake/component.cmake:484 (add_library):
Target "__idf_main" links to target "idf::mdns" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
main/CMakeLists.txt:7 (idf_component_register)
My setup:
$ python --version
Python 3.10.6
which python
/home/user/.espressif/python_env/idf5.1_py3.10_env/bin/python
ls ~/mbedtls-v3.3.0/cmake/cmake/
MbedTLSConfig.cmake MbedTLSConfigVersion.cmake MbedTLSTargets.cmake
The linux build suceeded using this:
cd targets/cli
cmake .. -DBELL_EXTERNAL_MBEDTLS=/home/gun/mbedtls-v3.3.0/cmake/cmake -DMBEDTLS_RELEASE=NOCONFIG