2

I am trying to build nextcloud open source project. I am using built tools Qt 5.6 version. following errors has occurred-

-- Could NOT find Qt5WebKitWidgets (missing: Qt5WebKitWidgets_DIR)

CMake Warning at src/gui/CMakeLists.txt:313 (find_package):

Found package configuration file:

C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/cmake/Qt5/Qt5Config.cmake

but it sets Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT FOUND. Reason given by package:

Failed to find Qt5 component "WebKitWidgets" config file at
C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/cmake/Qt5WebKitWidgets/ Qt5WebKitWidgetsConfig.cmake

Mohammad Kanan
  • 4,452
  • 10
  • 23
  • 47
user2893186
  • 125
  • 1
  • 2
  • 10
  • 1
    In Windows, you need Visual Studio tools to work with QWebEngine, not mingw. – Bobur Mar 13 '18 at 06:30
  • As of Qt 5.6 QtWebKitWidgets is not available by default, it was replaced by Qt WebEngine, but unfortunately it is not available for MinGW. QtWebkit and QtWebKitWidgets are no longer developed by Qt, but it still exists, it has independent developers, so you can download and compile it manually, although I do not know how to do it with the tool you use. – eyllanesc Mar 13 '18 at 06:51
  • Is QtWebkit and QtWebKitWidgets available for lower version of Qt?? @Bobur – user2893186 Mar 13 '18 at 07:08
  • user2893186 I don't really know. As @eyllanesc points out, it is available for <5.6 versions of Qt. – Bobur Mar 13 '18 at 07:44
  • 3
    @user2893186 It is not officially available by Qt, but you can compile for later versions: https://github.com/qt/qtwebkit – eyllanesc Mar 13 '18 at 07:46

1 Answers1

0

Thanks everyone.finally I have got solution.I have just used Qt 5.5 version which solves my problem.

user2893186
  • 125
  • 1
  • 2
  • 10