[vtkusers] Cmake Error Could not find Qt4

Ben Boeckel ben.boeckel at kitware.com
Fri Nov 20 15:03:15 EST 2015


On Thu, Nov 05, 2015 at 15:39:51 -0200, Lays Rodrigues wrote:
> Hi folks!
> I'm trying to compile Vtk 6.2/6.3 on Fedora and the cmake returns a error:
> 
>  CMake Error at
> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
>    Could NOT find Qt4 (missing: QT_QTWEBKIT_INCLUDE_DIR QT_QTWEBKIT_LIBRARY)
>    (found version "4.8.6")
>  Call Stack (most recent call first):
>    /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388
> (_FPHSA_FAILURE_MESSAGE)
>    /usr/share/cmake/Modules/FindQt4.cmake:1333
> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>    GUISupport/QtWebkit/CMakeLists.txt:22 (find_package)
> 
> Fedora dont have qt4 on repository and i have some libraries installed on
> qt4: /usr/lib/qt4 /usr/lib64/qt4 /usr/share/qt4
> What should i do?

You're missing the WebKit module from Qt. The thing is that the
webkit-using module is turned on by VTK_Group_Qt. Instead, you can
turn that off and then turn on the other Qt-related modules manually.

As for Fedora, it does have Qt4 in the repos:

    % rpm -q qt
    qt-4.8.7-3.fc23.x86_64

--Ben


More information about the vtkusers mailing list