Solved QtWebEngine
-
@vithom said in QtWebEngine:
So does it means that if you install VS2017, you are able to compile with msvc2015 prebuilt component ?
I have installed VS2017 and QT 5.9.4 on win10 64bit.
after I have configured qt version same this :
If I build with X64 is all ok.
but if I try to use x86 or win32 I have this errorIn QT --> Tools --> options I have configured the parameters of compiler :
Mabye it's impossible build in 32bit version?
-
OK, Now I have install on Ubuntu System 32bit Qt Creator and QtWebEngine is recognized. But wen buil the program I have error in :
QtWebEngine::initialize();
I must install other component in Linux for build with QT and yours 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