Page 1 of 1

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

Posted: Mon Jun 10, 2019 6:13 am
by zsjcyzz
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!

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

Posted: Mon Jun 10, 2019 3:30 pm
by fly135
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

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

Posted: Wed Jun 12, 2019 1:26 am
by zsjcyzz
Tkanks .
Yep, I cant find the file in that path, But can find in github. .
have a few bugs..
let me see.