I then tried to get started by running the hello world example code to see if the esp32-thingsboard-mqtt-client/tbcmh component compilation works. But I get the following error (Part of the entire error log).
C:/Users/esp/esp32-thingsboard-mqtt-client/components/tbcmh/src/helper/tbc_mqtt_helper.c:22:10: fatal error: http_parser.h: No such file or directory
22 | #include "http_parser.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
[841/859] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/hello_world_main.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/hello_world_main.c.obj
# 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.16)
set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
set(EXTRA_COMPONENT_DIRS C:/Users/esp/esp-idf/components/http_parser)
set(EXTRA_COMPONENT_DIRS C:/Users/esp/esp32-thingsboard-mqtt-client/components/tbcmh)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(hello_world)
#
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
# project subdirectory.
#
PROJECT_NAME := hello_world
EXTRA_COMPONENT_DIRS := C:/Users/kevin/esp/esp32-thingsboard-mqtt-client/components/tbcmh
EXTRA_COMPONENT_DIRS := C:/Users/kevin/esp/esp-idf/components/http_parser
EXTRA_COMPONENT_DIRS := C:/Users/kevin/esp/esp-idf/examples/common_components/protocol_examples_common
include $(IDF_PATH)/make/project.mk
Note that I added the "http_parser" relevant paths to the CMakeLists and the Makefile, just to try and solve this issue, but the error still pops up.
I am using the esp-idf release v5.0 and my cmake version is 3.24.0.
Do you have a solution for this? I am attaching the entire log file for further examination.
idf_py_stdout_output_3932.txt