Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 830
    • Issues 830
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 232
    • Merge requests 232
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #18132
Closed
Open
Issue created Feb 26, 2021 by Sujin Philip@sujin.philipDeveloper

Cmake configure issue when doing a clean VTK build

When I try to do a clean VTK build on my machine, I see the following errors

-- Configuring done
CMake Error at CMake/vtkModule.cmake:3393 (add_library):
  Target "glew" links to target "OpenGL::OpenGL" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  ThirdParty/glew/vtkglew/CMakeLists.txt:10 (vtk_module_add_module)


CMake Error at CMake/vtkModule.cmake:4051 (add_executable):
  Target "vtkProbeOpenGLVersion" links to target "OpenGL::OpenGL" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  Rendering/OpenGL2/CMakeLists.txt:389 (vtk_module_add_executable)


CMake Error at CMake/vtkModule.cmake:3393 (add_library):
  Target "RenderingOpenGL2" links to target "OpenGL::OpenGL" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  Rendering/OpenGL2/CMakeLists.txt:339 (vtk_module_add_module)


CMake Error at CMake/vtkModule.cmake:3393 (add_library):
  Target "RenderingVolumeOpenGL2" links to target "OpenGL::OpenGL" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  Rendering/VolumeOpenGL2/CMakeLists.txt:58 (vtk_module_add_module)


CMake Error at CMake/vtkModule.cmake:3393 (add_library):
  Target "RenderingContextOpenGL2" links to target "OpenGL::OpenGL" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  Rendering/ContextOpenGL2/CMakeLists.txt:27 (vtk_module_add_module)


CMake Error at CMake/vtkModule.cmake:3393 (add_library):
  Target "RenderingVtkJS" links to target "OpenGL::OpenGL" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  Rendering/VtkJS/CMakeLists.txt:6 (vtk_module_add_module)


CMake Error at CMake/vtkModule.cmake:3393 (add_library):
  Target "gl2ps" links to target "OpenGL::OpenGL" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  ThirdParty/gl2ps/vtkgl2ps/CMakeLists.txt:8 (vtk_module_add_module)


CMake Error at CMake/vtkModule.cmake:3393 (add_library):
  Target "RenderingGL2PSOpenGL2" links to target "OpenGL::OpenGL" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  Rendering/GL2PSOpenGL2/CMakeLists.txt:12 (vtk_module_add_module)


CMake Error at CMake/vtkModule.cmake:3393 (add_library):
  Target "IOExportGL2PS" links to target "OpenGL::OpenGL" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  IO/ExportGL2PS/CMakeLists.txt:15 (vtk_module_add_module)


CMake Error at CMake/vtkModule.cmake:3393 (add_library):
  Target "DomainsChemistryOpenGL2" links to target "OpenGL::OpenGL" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  Domains/ChemistryOpenGL2/CMakeLists.txt:21 (vtk_module_add_module)


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

These errors are with the default cmake variables. I am running Kubuntu 20.04, gcc 9.3.0 and cmake 3.19.5. I have installed the opengl development libraries and they are being found by cmake. I am attaching the CMakeCache.txt file.CMakeCache.txt

Assignee
Assign to
Time tracking