Solved QtWebEngine
-
What exact errors are you getting ?
-
@SGaist Good Morning,
the cod of main is this :#include <QCoreApplication> #include <QtGui/QApplicationStateChangeEvent> #include <QtQml/QQmlApplicationEngine> #include <QtWebEngine/qtwebengineglobal.h> #include <WebClass.h> #include <QtWebChannel/QQmlWebChannel> #include <QtWebChannel/qwebchannel.h> #include <QtWebEngineWidgets/QtWebEngineWidgets> int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); QtWebEngine::initialize(); QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("main.qml"))); return app.exec(); }
Erros when build :
/home/gianfranco/Public/QtApplication/QtWebApplicationUbuntu/main.cpp:17: error: undefined reference to `QtWebEngine::initialize()'
I do not understand where the cause is.
The statements are recognized -
This post is deleted! -
Maybe a silly question but did you add
QT += webengine
to you .pro file ? -
@SGaist Arghh.. you tell me correct.. -I am again beginner, now, when i buil i have this problem.
what is still missing?/usr/bin/ld: cannot find -lGL
-
@elicat
Use the Search icon at the top of this page to search this forum forlGL
(note not for-lGL
). You will find lots of this specific question and its solutions. -
@JonB ok thanks
-
@elicat all is perfect, now it build without errors, but… UFF… but when i run the program it crashed. I lunch with debug and i have this error. The same project run in x64bit with 5.9.4.
-
Hi,
Why are you using a QCoreApplication ?
-
@SGaist Ok, I'm stupid. sorry. thank you all