-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Including ASql libs in Cutelyst app #13
Comments
What is weird, when I try to add ASql to cmake-based application like in this tutorial https://www.kdab.com/qt-allstack-part-1-setup/?utm_source=sendinblue&utm_campaign=02-22&utm_medium=email So... where is problem that Cutelyst libs included same way in qmake project are working well, but not ASql libs? |
Well... self submit, self solved... |
the proper include now is <ASql/adatabase> |
After fresh reinstall I even dont compile ASql and use deb package. |
You clearly have some issue in your cmake/setup, I use it in several projects just fine. |
I build and install ASql library in my Ubuntu system and try to include it in my Cutelyst application.
My application is build with qmake, so in my .pro file I add
INCLUDEPATH+=
/usr/include/cutelyst3-qt5
/usr/include/asql-qt5
LIBS += -lCutelyst3Qt5 -lASqlQt5 -lASqlQt5Pg
and when I add imports to my cpp file (like in all examles I have found)
#include <apool.h>
#include <apg.h>
both are not found.
Same if with quotes.
If I add
#include "asql-qt5/ASql/apool.h"
#include "asql-qt5/ASql/apg.h"
both are found, but further compile errors occurs:
/usr/local/include/asql-qt5/ASql/apool.h:12: błąd: adatabase.h: No such file or directory
In file included from ../UnagiBackend/src/unagibackend.cpp:14:
/usr/local/include/asql-qt5/ASql/apool.h:12:10: fatal error: adatabase.h: No such file or directory
12 | #include <adatabase.h>
The text was updated successfully, but these errors were encountered: