No such file or directory for esp_adafruit_ssd1306 - arduino

I'm working with Arduino now. I'm trying to #include <ESP_Adafruit_SSD1306.h> and this error code is showing up:
G:\Kuliah\tna\arduino\sketch_jun11a\sketch_jun11a.ino:6:34: fatal error: ESP_Adafruit_SSD1306.h: No such file or directory
#include <ESP_Adafruit_SSD1306.h>
I added the library using sketch-> include library -> manager library and searched for adafruit ssd1306.h

This means that the IDE can't find that library, are you sure you already installed it correctly?

Related

QT: fatal error C1083: Cannot open include file: 'type_traits'

I've been spending almost all day trying to get QT installed on my windows machine. I have installed QTCreator with QT 5.14.1 and QWT 6.1.3 (have also tried 6.2.0) and following these instructions with QWT: https://qwt.sourceforge.io/qwtinstall.html
Everything goes fine until I get to the same point where after running nmake it prints:
qwt.cpp
..\..\..\Qt\Qt5.14.2\5.14.2\msvc2017_64\include\QtCore\qglobal.h(45) : fatal error C1083: Cannot open include file: 'type_traits': No such file or directory
qwt_abstract_scale_draw.cpp
..\..\..\Qt\Qt5.14.2\5.14.2\msvc2017_64\include\QtCore\qglobal.h(45) : fatal error C1083: Cannot open include file: 'type_traits': No such file or directory
qwt_bezier.cpp
..\..\..\Qt\Qt5.14.2\5.14.2\msvc2017_64\include\QtCore\qglobal.h(45) : fatal error C1083: Cannot open include file: 'type_traits': No such file or directory
My path variables show that the include directory where type_traits exists is most definitely there.
Any pointers would be great. I'm not sure what else I can possibly do. I've uninstalled and reinstalled my entire .net framework, same with QT.
I ended up solving this, and it turned out to be an issue with the compilers I was selecting. I figure this could help people down the line so I will post what I documented on my company portal - the instructions I have written are as follows:
=====
Realistically, it doesn't matter which kit you select, as long as the compiler and QT version is set up correctly. What will indicate a correct kit setup is the display of a monitor logo at the label.
Configure a kit by first selecting it as default
C and C++ Compiler -> ''Microsoft Visual C++ Compiler 15.9.xxxx''
Compiler version 15.9.xxxx is a part of Microsoft Visual Studio 2017. If you cannot find this compiler in the drop down box, it is most likely because you are missing the 2017 install. Download the BUILD TOOLS and REDIST PACKAGE from here.
Debugger -> ''C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\cdb.exe''
If you can't find the debugger, it means you are missing the Windows 10 SDK. [[https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/|Download from here]].
QT Version -> ''Qt 5.14.1 MSVC 2017 32bit''
CMake generator (not sure how important this is, but it seems to make the compile run): Ninja

ALLBOT Arduino library

While installing the "ALLBOT" library, I ran into a problem. I tried to install the library via Arduino ide - it didn't work, I tried to download from GitHub - it doesn't work. Could you please help solve the problem.
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10)
sketch_jun03a:1:10: fatal error: ALLBOT.h: No such file or directory
#include <ALLBOT.h>
^~~~~~~~~~
compilation terminated.
exit status 1
ALLBOT.h: No such file or directory
install the ALLBOT library from Tools->Manage Libraries from your arduino ide, here is guide https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries
here i was able to to download and complie

OpenCV4 - Deep Neural Network - dnn.hpp no such file or directory

on my Debian laptop I've downloaded and compiled OpenCV4, with contrib extra modules, and everything seems to work fine; I can load an image in a Mat object and I can apply filter to it.
Now I want to try YOLO object detection so I tried to include the Deep Neural Network dnn module in my Qt project with
#include <opencv2/opencv.hpp>
but when I compile the code I get this error
error: opencv2/dnn.hpp: No such file or directory
I've looked for OpenCV files, and here where I've found the dnn module
usr/include/opencv
usr/include/opencv2
usr/local/include/opencv4/opencv2/dnn
Then I've tried to include
#include <opencv4/opencv2/dnn.hpp>
but I get the same error.
Any idea on how to solve this issue?
Thanks in advance for your help.
Uninstal the currently-install opencv with:
sudo apt remove libopencv-dev
Follow this tutorial to build openCV4 on your machine:
How to Install OpenCV on Ubuntu 18.04
Now do:
sudo ldconfig
Now try to compile your code. The error should be gone.

Cannot open include file: 'QTimer': No such file or directory

I am trying to run a code available on https://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/examples_2player_2main_8cpp-example.html
But when I try to run the code I get following error.
Cannot open include file: 'QTimer': No such file or directory.
What should I do??
First, you need to install the Open Source version of Qt
Then, create a new Qt project from the Qt Creator IDE and add your files (.cpp, .h, etc.).
I also strongly advise you to read the Getting Started part of the Qt documentation

Cannot find -lQt5Guid and -lQt5Cored

I am currently trying to compile a Qt application that I downloaded from github on my windows machine. I did not have any trouble compiling this on Ubuntu so I was hoping someone could help shed some light on my problem.
I am using Qt-Creator to compile the program.
The exact error messages are:
:-1: error: cannot find -lQt5Guid
:-1: error: cannot find -lQt5Cored
collect2.exe:-1: error: error: ld returned 1 exit status
My first idea when reading those messages was that the windows PATH variable does not include the locations of the libraries. But when I checked, my PATH contained the following:
C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin;C:\Qt\Qt5.1.0\Tools\mingw48_32\bin;...
Which exists and contains what looks like the correct Dlls.
I am using MingGW rather than the visual studio compiler (although i have it available if needs be).
How can I fix this error and what could be causing it?
EDIT: When I run qmake there does not seem to be any problem. The errors come up when I try to build the project.
Cored is a fundimental part of Qt so it looks like the linker can't see any of the Qt libraries.
Did you install Qt 5.1.0 SDK?
A few things to check:
Do you have a line like this in your .pro file?:
QT += core
You mentioned "Projects section my path" are you talking about the windows PATH variable? these paths should also be in that. You can check with dos command:
echo %PATH%
If these paths are not there, for a test, add them in if this works then something has gone wrong with the local PATH setup (i.e. when running qt creator - if you are using qt creator?)
Finally just check that the debug version of the Qt5Cored.dll exists in that folder (C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin) because it looks like you are building a debug build (which is why your program is looking for 'd' post-fixed name Qt5Cored and not Qt5Core).

Resources