<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>since I had similar problems (I also develop using the Microsoft Visual Studio on Windows), and work with vtk for a few months by now, I’d also like to briefly comment on this.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I do believe that CMake is an extremely useful tool, and at several occasions I was very happy when I downloaded some open source stuff and discovered that there was some CMakeLists.txt with it. It makes live much easier, when you have an automated way of generating a functional code base.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>But to be honest, I never was really anxious to set up my own projects using it. There is a tendency among open source, that many projects use their own building system (although CMake plays a dominant role here – I read even KDE can be compiled using CMake nowadays). Which certainly makes sense for the developers of the specific software package, since they can use a system adapted to their needs. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Right now for example I have to deal with the boost building system bjam, some UNIX makefile formats that I have to “translate” into .sln files, CMake and of course my native Visual Studio environment. I don’t complain – I am happy that this software exists in the first place - but each system has its own learning curve. I simply do not want to spend time learning these build systems to such an extent as to use them by myself, if I can avoid it. Plus, using the Visual Studio platform on Windows, the solution/project system just happens to be the natural choice in my case. I guess it depends largely, on how large the percentage each code component is. In my case vtk is a conceptually important part of it, but the main parts of my code base concentrate on other stuff.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>So this is just to imply, that there are situations, where not using CMake might also makes sense (at least after the vtk bins have been built – using CMake of course).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>To go back to the specific problem, for building some graphics within the .net environment (don’t know, if this what you are after), I found the following link very helpful : <a href="http://se.xzing.org/2006/09/29/using-vtk-in-net-application-part-i/">http://se.xzing.org/2006/09/29/using-vtk-in-net-application-part-i/</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Also, another hint, I got sometimes the same amount of error messages if the Visual Studio settings for CLI were set wrongly (in my VS2008 : project properties -> Configuration Properties -> General -> Common Language Runtime support). For using vtk, make sure you have selected “now common language runtime support” (if you don’t use managed components) or at least /clr (if you mix managed and unmanaged components), but not something like /clr:pure which is for some projects the standard setting.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Daniel<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] <b>Im Auftrag von </b>David Doria<br><b>Gesendet:</b> Mittwoch, 13. April 2011 18:23<br><b>An:</b> KK<br><b>Cc:</b> vtkusers@vtk.org<br><b>Betreff:</b> Re: [vtkusers] Using VTK in a Visual C++ project<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Wed, Apr 13, 2011 at 12:19 PM, KK <<a href="mailto:karoll.frindel@gmail.com">karoll.frindel@gmail.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal>It's what I did. I used CMake to get a VTK.sln (VS project).<br>But now I'm trying to use the binaries resulting from the compilation of<br>VTK.sln to use VTK in my own VS project (integrate the VTK libs in my<br>project dependencies).<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>Yes, again you must use CMake.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>As an example:<o:p></o:p></p></div><div><p class=MsoNormal><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>the CMakeLists.txt file there creates a Sphere.sln that you then open with VS and everything is automatically configured.<o:p></o:p></p></div><div><p class=MsoNormal><br>David<o:p></o:p></p><div><p class=MsoNormal> <o:p></o:p></p></div></div></div></body></html>