[vtkusers] Compile and build VTK with shared libraries enabled

David E DeMarle dave.demarle at kitware.com
Fri Jun 21 15:45:37 EDT 2013


cmake -DBUILD_SHARED_LIBS:BOOL=ON

Should work too.

Besides the ccmake and cmake-gui options Shawn recommended, another option
for setting options in scripts and such is to put a CMakeCache.txt file
with the small set of options you want into the build tree before you run
cmake.


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Fri, Jun 21, 2013 at 3:37 PM, Shawn Waldon <swaldon at cs.unc.edu> wrote:

> You could do it that way.  I have found that ccmake (command line
> interface) or cmake-gui are much easier for turning options on and off.  I
> would recommend using one of these and scrolling through the options to
> find BUILD_SHARED_LIBS.  It should be easy to turn on the option this way.
>
> HTH,
>
> Shawn
>
>
> On Fri, Jun 21, 2013 at 3:05 PM, Sean Baskin <seanbaskin at gmail.com> wrote:
>
>> Hello all,
>>
>> Please forgive my ignorance as I do not interact with CMake on a regular
>> basis. I am experiencing the exact same issue as posted in this question:
>> http://www.vtk.org/pipermail/vtkusers/2012-February/121489.html . The
>> response was to rebuild VTK with BUILD_SHARED_LIBS ... except I do not know
>> how to do that. Is it a matter of running cmake -DBUILD_SHARED_LIBS=ON.. ? I have tried various permutations of that with equal failure. Thanks.
>>
>> Sean
>>
>> _______________________________________________
>> Powered by 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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
> _______________________________________________
> Powered by 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130621/449b46b0/attachment.htm>


More information about the vtkusers mailing list