<html><head><style data-externalstyle="true">
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
</style></head><body><div data-externalstyle="false" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:16px;"><div data-focusfrompointer="true">They are set in the VTK build... but they also need to be set in your client code that includes the headers and links to the VTK build. Your code needs to be compiled with the same settings that VTK was compiled with so the conditional compilations have the same conditions.</div><div data-focusfrompointer="true"> </div><div data-focusfrompointer="true">If you use CMake to drive your build, you get it for free.</div><div data-focusfrompointer="true"> </div><div data-focusfrompointer="true">If you don’t, you have to do extra work to make things work right now.</div><div data-focusfrompointer="true"> </div><div data-focusfrompointer="true">An unfortunate, but true, fact about how modular VTK works now.</div><div data-focusfrompointer="true"> </div><div data-focusfrompointer="true"> </div><div data-focusfrompointer="true">HTH,</div><div data-focusfrompointer="true">David C.</div><div data-focusfrompointer="true"> </div><div data-signatureblock="true"> </div>        <div style="border-top-color: rgb(225, 225, 225); border-top-width: 1px; border-top-style: solid;">                <strong>From:</strong> Frédéric Speisser<br>                <strong>Sent:</strong> March 18, 2013 5:43 AM<br>                <strong>To:</strong> David Cole<br>                        <strong>CC:</strong> Marcus D. Hanwell; Sean McBride; vtkusers@vtk.org<br>                <strong>Subject:</strong> Re: [vtkusers] VTK 6 porting<br>        </div>        <div> </div>
<div class=" moz-cite-prefix">Ok, thanks all, finally I generated VS
projects of VTK's examples through CMake and I found what I
searched :<br>
<br>
To have the os/rendering system dependent classes created, I
assume I must set following macro : <br>
<i>#define vtkRenderingCore_AUTOINIT
4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)</i><br>
<br>
or add in my preprocessor definitions a reference to a file,
containing the previous macro, like this :<br>
<i>vtkRenderingCore_INCLUDE="vtkRenderingCore_AUTOINIT_vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingFreeTypeOpenGL_vtkRenderingOpenGL.h"<br>
<br>
</i>Cannot be these parameters set in VTK build, to be included in
VTK resulting dll ?<br>
<br>
Else I must add these definitions in all my VTK dependent projects
which is not very elegant ...<br>
<i><br>
<br>
<br>
</i>Frédéric S.<i><br>
<br>
<br>
</i>Le 15/03/2013 20:54, David Cole a écrit :<br>
</div>
<blockquote cite="mid:20130315200034.BF20C61F73@public.kitware.com">
<div>Run CMake on this CMakeLists.txt file:</div>
<div> </div>
<div> <a tabindex="-1" href="https://gist.github.com/dlrdave/5172611">https://gist.github.com/dlrdave/5172611</a></div>
<div> </div>
<div>That should give you most (but not quite all) of what you
need to know to link to VTK from a non-CMake based project...</div>
<div> </div>
<div> </div>
<div>Cheers,</div>
<div>David C.</div>
<div> </div>
<div> </div>
<div> </div>
<div style="border-top-color: rgb(225, 225, 225); border-top-width: 1px; border-top-style: solid;"> <strong>From:</strong> Sean
McBride<br>
<strong>Sent:</strong> March 15, 2013 1:38 PM<br>
<strong>To:</strong> Marcus D. Hanwell<br>
<strong>CC:</strong> <a tabindex="-1" class=" moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<strong>Subject:</strong> Re: [vtkusers] VTK 6 porting<br>
</div>
<div> </div>
On Fri, 15 Mar 2013 13:29:19 -0400, Marcus D. Hanwell said:<br>
<br>
>If you don't want to use CMake you will have to generate the
compiler<br>
>definitions yourself. You can easily build a small CMake
project, get<br>
>the definitions and use them. Alternatively we could
document what<br>
>those definitions trigger so that you could add a source
file manually<br>
>to your project. I added runtime warnings about abstract
objects in<br>
>master to make this easier to diagnose too.<br>
<br>
Yes, I see those warnings you added... but it's not clear to me
how to act on them (I haven't had the time to look deeply).<br>
<br>
I like the idea of you documenting 'what those definitions
trigger', not only to make my life easier :) but because I
suspect it's fairly common that people use the resulting VTK
libraries in their favourite IDEs (VS, Xcode). It's totally
understandable/reasonable to require people to use CMake to
*build* VTK, but once built, it's just a bunch of library files
that should be usable in Xcode, VS, or automake projects... it
was possible in VTK 5, and this may catch people by surprise, as
I believe is what has happened here.<br>
<br>
Cheers,<br>
<br>
-- <br>
____________________________________________________________<br>
Sean McBride, B. Eng <a tabindex="-1" class=" moz-txt-link-abbreviated" href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
Rogue Research <a tabindex="-1" class=" moz-txt-link-abbreviated" href="http://www.rogue-research.com">www.rogue-research.com</a> <br>
Mac Software Developer Montréal, Québec, Canada<br>
<br>
<br>
_______________________________________________<br>
Powered by <a tabindex="-1" class=" moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at
<a tabindex="-1" class=" moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at:
<a tabindex="-1" class=" moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a tabindex="-1" class=" moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote>
<br>
</div></body></html>