• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Module 11 – Unit 2 – Library fail compilation

Q&A Forum › Module 11 – Unit 2 – Library fail compilation
0 Vote Up Vote Down
Javier San Juan asked 7 years ago
8 Answers
0 Vote Up Vote Down
Javier San Juan answered 7 years ago

Trying to compile the example  from Module 11 – Unit 2, ESP32_Client_1_LED_DS18B20.ino, I found some problems.

First, I found several errors after following the instruccions to extract the needed libraries (Async MQTT Client Library, OneWire Library and DallasTemperature Library). In the all cases, in my Windows 10 system, using defaul values, after extracting the compressed download, there is a nested folder inside with the same name (for instance C:\Users\Javier\Downloads\async-mqtt-client-master\async-mqtt-client-master), I need to rename and move the second level folder to my C:\Users\Javier\Documents\Arduino\libraries\async_mqtt_client folder. This solved some compilation errors. I suggest to take scrren capture of the required libraries folder tree.
But even doing this I foun a compilation error:

In file included from C:\Users\Javier\Documents\Arduino\libraries\async_mqtt_client\src/AsyncMqttClient.h:4:0,
from C:\Users\Javier\Documents\Arduino\Curso_ESP32\ESP32_Client_1_LED_DS18B20\ESP32_Client_1_LED_DS18B20.ino:12:
C:\Users\Javier\Documents\Arduino\libraries\async_mqtt_client\src/AsyncMqttClient.hpp:9:22: fatal error: AsyncTCP.h: No such file or directory

compilation terminated.

Multiple libraries were found for “WiFi.h”
Used: C:\Users\Javier\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Using library WiFi at version 1.0 in folder: C:\Users\Javier\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Using library async_mqtt_client at version 0.8.2 in folder: C:\Users\Javier\Documents\Arduino\libraries\async_mqtt_client

The required AsyncTCP.h isn’t presente in my PC. Where is located this file ? It owns to some other library that I need to install.

Thanks in advance
Javier

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Hello Javier, I’m sorry for taking so long to get back to you, but I was on holidays and unfortunately I had very low bandwidth to properly answer questions.

It looks like you have a library missing and I’ll be updating the Unit, because I forgot to mention that it’s required to have the AsyncTCP library.

Can you also install this library in your Arduino IDE? https://github.com/me-no-dev/AsyncTCP
Thanks for your patience and let me know if installing that library solves your compilation problem.

Regards,
Rui

0 Vote Up Vote Down
Javier San Juan answered 7 years ago

Thanks Rui,
I wish you have good holidays. Even with low bandwith 😛
I solve by myself, but doesn’t have the time to just write that this library is needed to work properly. Happy to found the solution, sorry not to share with other people.
Regards
Javier

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Thank you and I’m already back from holidays!

Thanks for letting me know! I’ve already updated the course to include how to install that library, so others can avoid that problem.

Regards,
Rui

0 Vote Up Vote Down
Javier San Juan answered 7 years ago

Rui,
May be I delete your last comment by mistake. Can you undelete it ?
 
Regards
Javier

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

It’s posted again. Thanks!

0 Vote Up Vote Down
Javier San Juan answered 7 years ago

Thanks Rui,
My mistake with the icon that looks like a checkmark or a like.
I have some sugestion about the course. Whats the the better way to write then? This forum?, Mail?
Regards
Javier

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

The checkmark highlights the comment, so you didn’t delete it, but it was moved to the top of the thread. The best way is to contact me is using the Forum to ask questions or give suggestions!

Thanks, you can post a new question/feedback here: https://rntlab.com/ask-question/

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.