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
  • #18007
Closed
Open
Issue created Sep 15, 2020 by Benoit Tachet@TheZeldaBoss

Error building VTK 8.1.0 Ubuntu 18.04

Hello all,

I would like to build VTK 8.1.0 on Ubuntu to link it with another Gitlab project.

The cmake part runs well, I've been trying to follow the instructions available here to compile it, but when I run the make command after cmake configuration and generation, I get some compilation errors about linking with Glut libraries...

Here is the output I have about it (in french) : /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:70 : référence indéfinie vers « glutSetWindow » CMakeFiles/vtkRenderingExternalCxxTests.dir/TestGLUTRenderWindow.cxx.o : Dans la fonction « (anonymous namespace)::display() » : /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:128 : référence indéfinie vers « glutSwapBuffers » CMakeFiles/vtkRenderingExternalCxxTests.dir/TestGLUTRenderWindow.cxx.o : Dans la fonction « (anonymous namespace)::handleResize(int, int) » : /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:160 : référence indéfinie vers « glutPostRedisplay » CMakeFiles/vtkRenderingExternalCxxTests.dir/TestGLUTRenderWindow.cxx.o : Dans la fonction « TestGLUTRenderWindow(int, char**) » : /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:175 : référence indéfinie vers « glutInit » /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:176 : référence indéfinie vers « glutInitDisplayMode » /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:177 : référence indéfinie vers « glutInitWindowSize » /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:178 : référence indéfinie vers « glutInitWindowPosition » /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:179 : référence indéfinie vers « glutCreateWindow » /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:180 : référence indéfinie vers « glutDisplayFunc » /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:181 : référence indéfinie vers « glutIdleFunc » /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:182 : référence indéfinie vers « glutReshapeFunc » /home/benoit/vtk-git/src/vtk/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx:185 : référence indéfinie vers « glutMainLoop »

I do have the glut libraries in my /usr/lib directory, and the glew project has also been built correctly... Any help would be appreciated...

Thank you very much.

Assignee
Assign to
Time tracking