Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cmake dont find VTK library [SOLVED]

Cmake dont find VTK library [SOLVED]

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5.5.1vtk
2 Posts 2 Posters 3.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lays147
    wrote on 30 Oct 2015, 17:14 last edited by Lays147
    #1

    Hi guys!
    I'm trying to compile my qt project with cmake, and i have this error:

                     from /home/lays/Dropbox/Br-Print/Pandora/Windows/aboutbrprint.cpp:4:
    /home/lays/Dropbox/Br-Print/Pandora/./vtkWidget.h:1:25: fatal error: QVTKWidget2.h: No such file or directory
     #include <QVTKWidget2.h>
                             ^
    compilation terminated.
    

    And the error continues even through the library path.

    cmake ../Pandora -DVTK_DIR=/usr/local/include/vtk-6.3
    

    Any tips to discover what the hell is happened?
    See ya!

    Lays Rodrigues
    Newby on Qt - Learning always!
    Using QT 5.7
    ArchLinux

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on 30 Oct 2015, 19:10 last edited by mchinand 11 Feb 2015, 13:42
      #2

      VTK_DIR should be set to the cmake directory; not the include directory. Probably the following in your case:

      /usr/local/lib/cmake/vtk-6.3
      

      You'll also need the following in your CMakeLists.txt file

      find_package(VTK REQUIRED)
      include(${VTK_USE_FILE})
      
      1 Reply Last reply
      1

      1/2

      30 Oct 2015, 17:14

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved