<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div id="geary-body">Am Di, 11. Sep, 2018 um 4:00 NACHMITTAGS schrieb tobias12345 <tobias.hofmann@itwm.fraunhofer.de>:<br>
<blockquote type="cite">__imp___glewBindFramebuffer</blockquote>
<div><br>
</div>
<div>Hi Tobias.</div>
<div><br>
</div>
<div>I am not in any way an expert on vtk (still a vtk beginner myself) but from the compiler / linker errors you have posted, vtk seems to use the glew library internaly for enabling the opengl extensions in Windows and the linkage with the glew library seems
not to be working correctly in your build environment.</div>
<div><br>
</div>
<div>This is often a problem when trying to link the glew library statically to a project without using the appropriate compiler flags. At least in linux the option -DGLEW_STATIC has to be added to the CXX_DEFINES so that glew gets linked statically in projects
you want to be build statically.</div>
<div><br>
</div>
<div>So maybe you are trying to build vtk statically (.lib) and not dynamically (dlls) under mingw which results in the linker trying to link glew statically too but without the appropriate flags for glew to do so. </div>
<div><br>
</div>
<div>So one thing you could try is to build vtk dynamically or if you have done so, build it statically.</div>
<div><br>
</div>
<div>It could also be that you have to install the glew libraries manually first before building vtk (i don't know) or that they are already installed in another version in your mingw installation and that the linker gets confused in which version to take.</div>
<div><br>
</div>
<div>I am normally developing under linux but a short time ago, i had to compile a Windows version of one of my vtk projects and i had problems myself building vtk under Windows with mingw. What solved all of my problems was installing msys2 (<a href="https://www.msys2.org/">https://www.msys2.org/</a>),
getting a linux-like environment under windows with all the necessesary tools (mingw, cmake, etc.) and just building everythink like in linux. </div>
<div><br>
</div>
<div>This still works like a charm and the executables produced with mingw in the msys2 environment are independent of msys2, have no external dependencies or whatsoever and can be used in every Windows installation.</div>
<div><br>
</div>
<div><br>
</div>
<div>Cheers</div>
<div><br>
</div>
<div>Berti</div>
<div><br>
</div>
</div>
</body>
</html>