<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div style="" class=""><span style="" class="">Thanks for the reply.<br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class=""><span style="" class=""><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class=""><span style="" class="">That's what I am trying to achieve.</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style=""
class="">I am building an app that is linking to statically built libs, so I want to build my VTK statically as well.</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">But </span>the build breaks at the vtkParallelCore-6.1 project.</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">A debug assertion fails when vtkHashSource-6.1.exe is run:<br></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family:
HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">dbgheap.c line 1322<br></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">Expression: _CrtIsValidHeapPointer(pUserData)<br></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">Maarten<br style="" class=""></span></div> <div class="qtdSeparateBR"><br><br></div><div style="display:
block;" class="yahoo_quoted"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <font style="" class="" face="Arial" size="2"> On Tuesday, June 24, 2014 6:15:20 PM, Goodwin Lawlor <goodwin.lawlor.lists@gmail.com> wrote:<br style="" class=""> </font> </div> <br style="" class=""><br style="" class=""> <div style="" class=""><div style="" class="" id="yiv8604364901"><div style="" class=""><div style="" class="" dir="ltr">Hi Maarten,<div style="" class=""><br style="" class="" clear="none"></div><div style="" class="">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 <span class="" style="color:rgb(42,42,42);font-family:'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;font-size:13px;line-height:18px;">msvcrt.lib (shared).</span></div>
<div style="" class=""><span class="" style="color:rgb(42,42,42);font-family:'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;font-size:13px;line-height:18px;"><br style="" class="" clear="none"></span></div><div style="" class=""><span class="" style="color:rgb(42,42,42);font-family:'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;font-size:13px;line-height:18px;">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.</span></div>
<div style="" class=""><span class="" style="color:rgb(42,42,42);font-family:'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;font-size:13px;line-height:18px;"><br style="" class="" clear="none"></span></div><div style="" class="">hth,</div><div style="" class=""><br style="" class="" clear="none"></div><div style="" class="">Goodwin</div>
</div><div style="" class=""><br style="" class="" clear="none"><br style="" class="" clear="none"><div style="" class="">On Mon, Jun 23, 2014 at 8:08 PM, Maarten Beek via vtkusers <span style="" class="" dir="ltr"><<a style="" class="" rel="nofollow" shape="rect" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>></span> wrote:<br style="" class="" clear="none">
<blockquote class="" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="" class="" id="yiv8604364901yqt51960"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;">
<div style="" class="">Hello,<br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">
I can build VTK 6.1.0 perfectly fine with the default /MD(d) settings.</div><div style="" class="">When I change /MD(d) into /MT(d) in CMake, the build breaks at the vtkParallelCore-6.1 project.</div><div style="" class=""><br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">
BUILD_SHARED_LIBS is checked, as is VTK_Group_Qt.</div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">
<br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">Anyone able to tell me how to build VTK with the /MT(d) setting?</div>
<div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br style="" class="" clear="none"></div><div class="" style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">
Thanks - Maarten<br style="" class="" clear="none"></div></div></div></div><br style="" class="" clear="none">_______________________________________________<br style="" class="" clear="none">
Powered by <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br style="" class="" clear="none">
<br style="" class="" clear="none">
Visit other Kitware open-source projects at <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br style="" class="" clear="none">
<br style="" class="" clear="none">
Please keep messages on-topic and check the VTK FAQ at: <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br style="" class="" clear="none">
<br style="" class="" clear="none">
Follow this link to subscribe/unsubscribe:<br style="" class="" clear="none">
<a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br style="" class="" clear="none">
<br style="" class="" clear="none"></blockquote></div><br style="" class="" clear="none"></div></div></div><br style="" class=""><br style="" class=""></div> </div> </div> </div> </div></body></html>