QtWebEngine
-
Hi,
What @raven-worx meant is that you can't mix and match compilers on Windows. If you have a C++ library built with MinGW32 then you have to build everything with MinGW. For Visual Studio it goes even further, the different versions of VS are not compatible one with the other except for VS2017 which is backward compatible with VS2015.
In any case, hover the red icon and see what errors are stated there.
-
@SGaist said in QtWebEngine:
For Visual Studio it goes even further, the different versions of VS are not compatible one with the other except for VS2017 which is backward compatible with VS2015.
In any case, hover the red icon and see what errors are stated there.
So does it means that if you install VS2017, you are able to compile with msvc2015 prebuilt component ?
-
@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?
-
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 -
@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 recognizedThis 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. -
Hi,
Why are you using a QCoreApplication ?