[vtkusers] Integration of VTK into QT - VS2013 : CMake Error - Qt5WebKitWidgets

Magnus Elden magnus_elden at hotmail.com
Sun Jul 24 12:18:51 EDT 2016


I built it using configure with commands.

 

Start visual studio developer command prompt and navigate to the source folder. Then write “configure –skip webkit –skip webengine -skip <all webmodules> -prefix <build dir> -open-source -nomake examples -nomake tests”.

 

When the configuration is done you simply run the command “nmake”. You might want to set the platform by writing -platform <your makespec>.

 

This should build the entire Qt library WITHOUT the web stuff. Then you can install it by writing “nmake install”.

 

Later, when building VTK using cmake just link to the install directory if cmake didn’t find it automatically. 

 

Hope this helps.

 

Yours, 

Magnus Elden

 

From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Prajwal Sapare
Sent: Sunday, 24 July, 2016 17:53
To: vtkusers at vtk.org
Subject: [vtkusers] Integration of VTK into QT - VS2013 : CMake Error - Qt5WebKitWidgets

 

Hello,

I am trying to build VTK(6.3.0) into QT 5.7.0. (Windows Platform)
.
I set the source directory and then the build directory and press Configure in Cmake.

Error is 

CMake Error at C:/Qt/5.7.0/qtbase/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package):
Could not find a package configuration file provided by "Qt5WebKitWidgets"
with any of the following names:

Qt5WebKitWidgetsConfig.cmake
qt5webkitwidgets-config.cmake

Add the installation prefix of "Qt5WebKitWidgets" to CMAKE_PREFIX_PATH or
set "Qt5WebKitWidgets_DIR" to a directory containing one of the above
files. If "Qt5WebKitWidgets" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
GUISupport/QtWebkit/CMakeLists.txt:10 (find_package)

I am not getting a right solution, and not understanding. To some extent I understood these webkit libraries were available in Qt4 version. However in Qt5 it's been deleted and incorporated into Qt webengine.

Any leads to solve this issue is appreciated. I saw some solutions wherein they ask to make qt5Webkit optional in Cmakelists.txt. How should I do that and where will I find CMakelists.txt?

 

Regards,

Prajwal

Regards,
Prajwal

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160724/1d307fb9/attachment.html>


More information about the vtkusers mailing list