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.