QtWebKitsWidgets/QtGraphicsWebView:No such file or directory
-
Hi folks,
I keep getting the following error while trying to build a program of mine:
In file included from /home/vmur/Envision/DebugBuild/Alloy/precompiled_cpp.cpp:1:
/home/vmur/Envision/Alloy/src/precompiled.h:47:10: fatal error: QtWebKitWidgets/QGraphicsWebView: No such file or directory
#include <QtWebKitWidgets/QGraphicsWebView>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Alloy/CMakeFiles/Alloy-Precompiled-Header.dir/build.make:63: Alloy/CMakeFiles/Alloy-Precompiled-Header.dir/precompiled_cpp.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4093: Alloy/CMakeFiles/Alloy-Precompiled-Header.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....Can someone pointer me in the right direction please.I am relatively new to Qt,so please be gentle.Thanks
-
@vmur_90
QtWebKit is unavailable since Qt 5.6 onwards -
What Qt version are you using, and how did you install it? You may need to install QtWebKit separately
-
@Konstantin-Tokarev I have qt5.11.2.I installed it via the offline installer.I have also installed libqt5webkit5 libqt5webkit5-dev on my system
-
@Konstantin-Tokarev Problem persists.Now can you please tell me how i can make cmake find this file ie from inside qtcreator.I have tried exporting the path to no avail.Thanks
-
Hi,
Did you re-run cmake for your project from scratch ?
-
Just realized, are you trying to mix your distribution provided QtWebkit module with your Qt installation done using the installer ?
-
Your installer based Qt has absolutely no idea of what you have on your system and you should in any case not mix libraries from different versions of Qt.
There's no "Qt SDK" package in Ubuntu. You can start with qtbase5-dev and then add the dev packages corresponding to the modules you want to use.