[vtkusers] /MD(d) vs /MT(d)
beekmaarten at yahoo.com
Wed Jun 25 11:15:37 EDT 2014
Thanks for the reply.
That's what I am trying to achieve.
I am building an app that is linking to statically built libs, so I want to build my VTK statically as well.
But the build breaks at the vtkParallelCore-6.1 project.
A debug assertion fails when vtkHashSource-6.1.exe is run:
dbgheap.c line 1322
On Tuesday, June 24, 2014 6:15:20 PM, Goodwin Lawlor <goodwin.lawlor.lists at gmail.com> wrote:
I usually find when you link VTK libs against the static runtime all dependent libraries must be linked against it too... otherwise you get name collisions between libcmt.lib (static) and msvcrt.lib (shared).
So, for example, if you generate the VTK Tcl wrapper libs, you have to build the static Tcl libs against libcmt.lib yourself for inclusion in the project.
On Mon, Jun 23, 2014 at 8:08 PM, Maarten Beek via vtkusers <vtkusers at vtk.org> wrote:
>I can build VTK 6.1.0 perfectly fine with the default /MD(d) settings.
>When I change /MD(d) into /MT(d) in CMake, the build breaks at the vtkParallelCore-6.1 project.
>BUILD_SHARED_LIBS is checked, as is VTK_Group_Qt.
>Anyone able to tell me how to build VTK with the /MT(d) setting?
>Thanks - Maarten
>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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers