QtWebKitsWidgets/QtGraphicsWebView:No such file or directory
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
make: *** [Alloy/CMakeFiles/Alloy-Precompiled-Header.dir/build.make:63: Alloy/CMakeFiles/Alloy-Precompiled-Header.dir/precompiled_cpp.cpp.o] Error 1
make: *** [CMakeFiles/Makefile2:4093: Alloy/CMakeFiles/Alloy-Precompiled-Header.dir/all] Error 2
make: *** Waiting for unfinished jobs....
Can someone pointer me in the right direction please.I am relatively new to Qt,so please be gentle.Thanks
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
@vmur_90 Then you can use Qt from the your system repositories
@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
Did you re-run cmake for your project from scratch ?
@SGaist Yes,i did
Just realized, are you trying to mix your distribution provided QtWebkit module with your Qt installation done using the installer ?
@SGaist Yes,is it possible?.The reason i ended up with 2 versions was i couldn't find qt-sdk on lubuntu repos
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.