Unable to add led_strip.h
Posted: Mon Apr 12, 2021 2:41 pm
Good day.
So I was trying to add the library to my project but what ever I do it keeps saying:
And the Cmake in the Main folder:
And finally here is the error code:
(I have made a post awhile agao but I tried it again but no luck)
Any help will appreciated. Thanks.
So I was trying to add the library to my project but what ever I do it keeps saying:
Here is the CmakeLits.txt:../main/get_started.c:20:10: fatal error: led_strip.h: No such file or directory
#include <led_strip.h>
Code: Select all
# 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{MDF_PATH}/esp-idf-lib/components)
include($ENV{MDF_PATH}/project.cmake)
#include($ENV{MDF_PATH}/tools/cmake/project.cmake)
project(get_started)
Code: Select all
idf_component_register(SRCS "get_started.c"
INCLUDE_DIRS ""
REQUIRES mcommon mconfig mwifi mlink
)
Code: Select all
R=\"v1.0-129-g4555f06-dirty\" -DESP_PLATFORM -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/get_started.c.obj -MF esp-idf\main\CMakeFiles\__idf_main.dir\get_started.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/get_started.c.obj -c ../main/get_started.c
../main/get_started.c:20:10: fatal error: led_strip.h: No such file or directory
#include <led_strip.h>
^~~~~~~~~~~~~
compilation terminated.
[966/972] Building C object esp-idf/mdebug/CMakeFiles/__idf_mdebug.dir/mdebug_cmd.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Any help will appreciated. Thanks.