[vtkusers] How to disable linking with GL2PS VTK module?
Boris Basic
baljci at hotmail.com
Wed Jan 24 03:31:28 EST 2018
Thanks!
Actually I found a hack by adding "#undef vtkRenderingOpenGL2_AUTOINIT" in one header of my project. Though it's not very elegant, it did the job.
Best,
Boris
________________________________
De : Allie Vacanti <allison.vacanti at kitware.com>
Envoyé : mardi 23 janvier 2018 19:10
À : Boris Basic
Cc : vtk vtk
Objet : Re: [vtkusers] How to disable linking with GL2PS VTK module?
vtkRenderingGL2PSOpenGL2 is an implementation detail that bridges the rendering library and gl2ps without creating a direct dependency on gl2ps. By design, linking to it should not pull in the actual gl2ps library as a dependency.
I'm not aware of any way to disable this module, AFAIK it seems to be autoenabled it implements a pure abstract interface in vtkRenderingOpenGL2. Someone with more knowledge of the details for the IMPLEMENTS keyword in the module system may know of a trick that I'm not aware of, though.
HTH,
Allie
On Tue, Jan 23, 2018 at 3:26 AM, Boris Basic <baljci at hotmail.com<mailto:baljci at hotmail.com>> wrote:
Hi,
When generating a Visual Studio project using CMake, project which depends on vtkRenderingOpenGL2, the following preprocessor definition is added to the vcxproj: "vtkRenderingOpenGL2_AUTOINIT=1(vtkRenderingGL2PSOpenGL2)". This requires the project to link with vtkRenderingGL2PSOpenGL2. But as my project does not require GL2PS, I would like to get rid of this forced dependency, but could not find how to remove or change the autoinit definition. Is it possible to do that?
Cheers,
Boris
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180124/20f68b00/attachment.html>
More information about the vtkusers
mailing list