qmake webengine not working
-
I'm on windows 10, I have a project with a .pro file and I'm trying to generate visual studio project files using
qmake -tp vc
using the .pro file.I keep getting
I assumed this meant I was missing the modules, so I installed the proper modules using the Maintenance tool:
I also set the path so that it would use the qmake.exe executable to the location of the MSVC folder (since webengine isnt supported for mingw):
The thing is, I can see the modules in the folder too, but for some reason my qmake just refuses to acknowledge their existence.
the .pro file:
#------------------------------------------------- # # Project created by QtCreator 2017-04-09T16:12:58 # #------------------------------------------------- QT += core gui lessThan(QT_MAJOR_VERSION, 5): QT += webkit greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webchannel webengine TARGET = FapGauntlet TEMPLATE = app LIBS += -lvlc -lcurl SOURCES += main.cpp\ mainwindow.cpp \ image.cpp \ videoplayer.cpp \ downloadmanager.cpp \ qdownloader.cpp \ jsoncpp.cpp \ settingswindow.cpp \ settings.cpp \ runguard.cpp \ qdownloaderthread.cpp HEADERS += mainwindow.h \ image.h \ videoplayer.h \ downloadmanager.h \ qdownloader.h \ json/json-forwards.h \ json/json.h \ settingswindow.h \ settings.h \ runguard.h \ qdownloaderthread.h FORMS += mainwindow.ui \ downloadmanager.ui \ settingswindow.ui
I suspect that it's using the MinGW modules folder instead of the MSVC one, since in the MinGW modules folder there is no webengine, but in the MSVC one there is. But in that case, how do I run qmake such that it looks for the MSVC modules?
I really want to work on this project but for now I am stuck.
Thanks for any help!
-
@rmaa said in qmake wont work on windows:
But in that case, how do I run qmake such that it looks for the MSVC modules?
run the qmake from the msvc Qt folder, not the one from the MinGW folder.
-
thanks guys, I figured it out. So I used the absolute path to qmake.exe in the MSVC folder just to make sure, also turns out the module names should be exactly what they are in the folder, so instead of
QT += widgets webchannel webengine
I should do
QT += widgets webchannel webenginecore webenginequick webenginequickdelegatesqml webenginewidgets
Also for anyone in the future make sure its all lowercase too, not camelcase like I was trying, otherwise it won't work
-
Please mark the topic as solved then.