Unable to use "led_strip.h"
Posted: Wed Jan 13, 2021 5:24 pm
So I wanted to add the led_strip.h Library to my project, I just get errors when I try build. I only added the Library and haven't used any code for it. Here is the CMake file:
Here is the error:
Iam using ESP-IDF/MDF 4.1 On windows 10
here are all my headers :
Code: Select all
set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/esp-idf-lib/components)
set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/components)
#include($ENV{IDF_PATH}/tools/cmake/project.cmake)
include($ENV{MDF_PATH}/project.cmake)
project(Node_reciver)
Code: Select all
In file included from ../main/Reciver.c:9:
E:/Desktop/MDF/esp-mdf/components/esp32/include/rom/gpio.h:1:2: warning: #warning rom/gpio.h is deprecated, please use esp32/rom/gpio.h instead [-Wcpp]
#warning rom/gpio.h is deprecated, please use esp32/rom/gpio.h instead
^~~~~~~
../main/Reciver.c:13:10: fatal error: led_strip.h: No such file or directory
#include "led_strip.h"
^~~~~~~~~~~~~
compilation terminated.
[9/15] 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
here are all my headers :
Code: Select all
#include <string.h>
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/ringbuf.h"
#include "esp_log.h"
#include "sdkconfig.h"
#include "driver/gpio.h"
#include "rom/gpio.h"
#include "mdf_common.h"
#include "mwifi.h"
#include "led_strip.h"