enGits / engrid

ENGRID is a mesh generation software with CFD applications in mind. It supports automatic prismatic boundary layer grids for Navier-Stokes simulations and has a Qt based GUI.
Other
146 stars 55 forks source link

Build fails with VTK 7.1.0 and OpenGL2 VTK_RENDERING_BACKEND #59

Open opoplawski opened 8 years ago

opoplawski commented 8 years ago

Looking to update VTK to 7.1.0 with OpenGL2 VTK_RENDERING_BACKEND in Fedora rawhide. engrid baef0cebdebbe59cf77aea5ecef5d92a36fac20f (current Fedora version) build fails with:

[100%] Linking CXX executable engrid
CMakeFiles/engrid.dir/main.cpp.o: In function `vtkRenderingOpenGL_ModuleInit::~vtkRenderingOpenGL_ModuleInit()':
/builddir/build/BUILD/engrid-baef0cebdebbe59cf77aea5ecef5d92a36fac20f/src/libengrid/engrid.h:30: undefined reference to `vtkRenderingOpenGL_AutoInit_Destruct()'
CMakeFiles/engrid.dir/main.cpp.o: In function `vtkRenderingOpenGL_ModuleInit::vtkRenderingOpenGL_ModuleInit()':
/builddir/build/BUILD/engrid-baef0cebdebbe59cf77aea5ecef5d92a36fac20f/src/libengrid/engrid.h:30: undefined reference to `vtkRenderingOpenGL_AutoInit_Construct()'

VTK will define VTK_OPENGL1 if using the old rendering backend, and VTK_OPENGL2 if using the new OpenGL2 rendering backend.

opoplawski commented 8 years ago

Perhaps this is addressed in master, but I can't build it - same as noted in issue #52

ftpronk commented 8 years ago

Thank you for reporting.

The issue seems to be related to the OPENGL2 rendering backend, which we haven't tested yet unfortunately.

Master itself still needs fixing, but if you stick with a version up to d81ae48 you should be fine, so with baef0ce you shouldn't encounter issue #52.

ftpronk commented 7 years ago

Building the latest current release 0563bcc with VTK 7.1.1 solves this issue. Can you confirm this?