Giter VIP home page Giter VIP logo

esp32-thingsboard-mqtt-client's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @liang-zhu-zi
  • ๐Ÿ‘€ Iโ€™m interested in MCU, Embedded Linux, RTOS, IoT, VoIP & HAVC.

esp32-thingsboard-mqtt-client's People

Contributors

liang-zhu-zi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

esp32-thingsboard-mqtt-client's Issues

fatal error: http_parser.h: No such file or directory

I setup the esp32-thingsboard-mqtt-client as per the instructions in the readme file https://github.com/liang-zhu-zi/esp32-thingsboard-mqtt-client#readme.

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 

I edited the root CMakelists.txt as follows:

# 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)

The Makefile is as follows:

#
# 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.