[vtkusers] Problem in creating static library with VTK

John Drescher drescherjm at gmail.com
Mon Feb 13 08:25:39 EST 2012


>   Thanks for your reply. I build VTK with BUILD_SHARED_LIBS = OFF.
>   I could generate static library (.lib) from my vtk project that is
> generated by CMAKE.
>   However, when i tried to include that library file and called the function
> inside it, i got linker errors which linked to VTK.

There is more than 1 static library in the vtk library.

>   Do I need to input any header files for VTK?

Yes. Probably dozens of vtk header files. You will be on you own to
figure out which ones though.

John



More information about the vtkusers mailing list