I've just started looking at the ESP32-P4, using a Waveshare LCD devboard
I'm using Win11, and have installed VSCode and ESP-IDF, and I got the "blink" example compiled and running on the board- so far, so good.
I'm now trying to get the Waveshare examples running, and having all sorts of issues, I suspect at least partially version related.
I have zero experience of ESP-IDF or VSCode, so no clue where to start...
These are the examples I'm trying to use :
https://github.com/waveshareteam/ESP32-P4-WIFI6-Touch-LCD-XC/tree/main/examples/esp-idfA few of these will load, compile and run OK, but not the one I need...
07_Colourbar - attempting to select ESP32-P4 fails :
Failed to set target esp32p4: non zero exit code 2
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'C:\ASM\esp\esp-idf\07_Displaycolorbar\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32p4, new sdkconfig will be created.
Running cmake in directory C:\ASM\esp\esp-idf\07_Displaycolorbar\build
Executing "cmake -G Ninja -B C:\ASM\esp\esp-idf\07_Displaycolorbar\build -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\tools\python\v6.0.1\venv\Scripts\python.exe -DESP_PLATFORM=1 -DIDF_TARGET=esp32p4 -DCCACHE_ENABLE=False C:\ASM\esp\esp-idf\07_Displaycolorbar"...
-- Found Git: C:/Espressif/tools/git/bin/git.exe (found version "2.54.0.windows.1")
-- Component directory C:/esp/v6.0.1/esp-idf/components/mqtt does not contain a CMakeLists.txt file. No component will be added
CMake Error at C:/esp/v6.0.1/esp-idf/tools/cmake/project.cmake:493 (message):
Directory specified in EXTRA_COMPONENT_DIRS doesn't exist:
C:/esp/v6.0.1/esp-idf/tools/unit-test-app/components
Call Stack (most recent call first):
C:/esp/v6.0.1/esp-idf/tools/cmake/project.cmake:607 (__project_init)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the C:\ASM\esp\esp-idf\07_Displaycolorbar\build\log\idf_py_stderr_output_10524 and C:\ASM\esp\esp-idf\07_Displaycolorbar\build\log\idf_py_stdout_output_10524
..
The CMakeLists.txt file looks like this :
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(test_esp_lcd_jd9365)
As far as I can see, the minimum version requested in CMakelists.txt is 3.50 and the installed version is 4.0.3, so it shouldn't be complaining.
I can't see any other CMakelists.txt files in the project that may be causing this - I wonder if there is maybe one buried somewhere, unfortunately the error message doesn't include a full path.
If anyone more knowledgeable who has the current version of ESP-IDF installed (plugin V2.1.0, IDF 6.0.1) could try opening this project ( copy attached) and selecting esp32-p4 & figure out what's wrong I'd be most appreciative.....