mqtt:fatal error: mqtt_client.h: No such file or directory

zsjcyzz
Posts: 4
Joined: Mon Jun 10, 2019 6:06 am

mqtt:fatal error: mqtt_client.h: No such file or directory

Postby zsjcyzz » Mon Jun 10, 2019 6:13 am

hello, i learn the mqtt but find the error in "make flash monitor":

C:/msys32/home/Administrator/esp/esp-idf-release-v3.3/esp-idf-release-v3.3/examples/protocols/mqtt/ssl/main/app_main.c:21:25: fatal error: mqtt_client.h: No such file or directory
compilation terminated.
make[1]: *** [/home/Administrator/esp/esp-idf/make/component_wrapper.mk:286: app_main.o] Error 1
make: *** [C:\msys32\home\Administrator\esp\esp-idf/make/project.mk:467: component-main-build] Error 2

So where i can find the "mqtt_client.h"
Thanks!

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: mqtt:fatal error: mqtt_client.h: No such file or directory

Postby fly135 » Mon Jun 10, 2019 3:30 pm

I'm guessing it should be right here..

C:/msys32/home/Administrator/esp/esp-idf/components/mqtt/esp-mqtt/include

But I'm wondering why the IDF path to the project.mk is different than the one it's looking for that file. That is likely the clue to your problem. It may be that you are compiling a IDF v3.3 example with another version of the IDF.

You'll probably find it in....

C:/msys32/home/Administrator/esp/esp-idf-release-v3.3/esp-idf-release-v3.3/components/mqtt/esp-mqtt/include

But that might not be the version of the IDF in your IDF_PATH,

John A

zsjcyzz
Posts: 4
Joined: Mon Jun 10, 2019 6:06 am

Re: mqtt:fatal error: mqtt_client.h: No such file or directory

Postby zsjcyzz » Wed Jun 12, 2019 1:26 am

Tkanks .
Yep, I cant find the file in that path, But can find in github. .
have a few bugs..
let me see.

Who is online

Users browsing this forum: No registered users and 19 guests