<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Re: [vtkusers] Importing VTK-enriched Setting Into Windows FormApplication</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New">Hello,</FONT></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New">I was able to avoid</FONT></B></SPAN><SPAN LANG="en-ca"><B> <FONT COLOR="#000000" SIZE=2 FACE="Courier New">the use of CMAKE</FONT></B></SPAN><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New"> with the window form application by importing the VTK bina</FONT></B></SPAN><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New">ry</FONT></B></SPAN><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New">. However, t</FONT></B></SPAN><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New">he</FONT></B></SPAN><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New"> sample build output below is overwhelming, showing up</FONT></B></SPAN><SPAN LANG="en-ca"><B> <FONT COLOR="#000000" SIZE=2 FACE="Courier New">1371 unresolved externals</FONT></B></SPAN><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New"> (link errors)</FONT></B></SPAN><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New">:</FONT></B></SPAN><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New"></FONT></B></SPAN><SPAN LANG="en-ca"><B> </B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000080" SIZE=2 FACE="Courier New">Linking...</FONT></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000080" SIZE=2 FACE="Courier New">vtkUnstructuredGrid.obj : warning LNK4248: unresolved typeref token (01000016) for 'vtkSource'; image may not run</FONT></B></SPAN><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000080" SIZE=2 FACE="Courier New">vtkRenderer.obj : error LNK2020: unresolved token (0A000325) &quot;public: class vtkAssemblyNode * __thiscall vtkAssemblyPath::GetLastNode(void)&quot; (?GetLastNode@vtkAssemblyPath@@$$FQAEPAVvtkAssemblyNode@@XZ)</FONT></B></SPAN><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000080" SIZE=2 FACE="Courier New">vtkActor.obj : error LNK2028: unresolved token (0A0003B3) &quot;public: class vtkAssemblyNode * __thiscall vtkAssemblyPath::GetLastNode(void)&quot; (?GetLastNode@vtkAssemblyPath@@$$FQAEPAVvtkAssemblyNode@@XZ) referenced in function &quot;public: virtual class vtkActor * __thiscall vtkActor::GetNextPart(void)&quot; (?GetNextPart@vtkActor@@$$FUAEPAV1@XZ)</FONT></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000080" SIZE=2 FACE="Courier New">&nbsp;(?New@vtkRenderWindowInteractor@@$$FSAPAV1@XZ)</FONT></B></SPAN><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000080" SIZE=2 FACE="Courier New">vtkSimpleCellTessellator.obj : error LNK2019: unresolved external symbol &quot;public: virtual void __thiscall vtkObjectBase::Register(class vtkObjectBase *)&quot; (?Register@vtkObjectBase@@UAEXPAV1@@Z) referenced in function &quot;public: virtual void __thiscall vtkSimpleCellTessellator::PrintSelf(class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,class vtkIndent)&quot; (?PrintSelf@vtkSimpleCellTessellator@@$$FUAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VvtkIndent@@@Z)</FONT></B></SPAN><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000080" SIZE=2 FACE="Courier New">vtkUnstructuredGrid.obj : error LNK2001: unresolved external symbol &quot;public: virtual void __thiscall vtkObjectBase::Register(class vtkObjectBase *)&quot; (?Register@vtkObjectBase@@UAEXPAV1@@Z)</FONT></B></SPAN><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000080" SIZE=2 FACE="Courier New">C:\Documents and Settings\emogeden\Source Code\WFTwoStreams\WFA-TwoStreams\Debug\WFA-TwoStreams.exe : fatal error LNK1120: 1371 unresolved externals</FONT></B></SPAN><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New">Any idea</FONT></B></SPAN><SPAN LANG="en-ca"><B> <FONT COLOR="#000000" SIZE=2 FACE="Courier New">towards resolving these externals will be appreciated</FONT></B></SPAN><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New">. Thanks,</FONT></B></SPAN><SPAN LANG="en-ca"><B></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New">Emmanuel</FONT></B></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">-----Original Message-----<BR>
From: Michael Rice [<A HREF="mailto:marice@knology.net">mailto:marice@knology.net</A>]<BR>
Sent: Monday, March 03, 2008 20:44<BR>
To: Ogedengbe, Emmanuel<BR>
Subject: Re: [vtkusers] HDF5 with VTK</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">Emmanuel -</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">I don't use CMake to build my applications. However, you should be&nbsp; </FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">able to use one of example CMakeLists.txt files as a starting point.</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">For example, if you start with Examples/GUI/Win32/SampleMFC/ </FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">CMakeLists.txt, you would probably need to modify the SRCS variable&nbsp; </FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">and possibly the LINK_LIBRARIES.</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">If you choose not to use CMake, then you just need to modify your&nbsp; </FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">existing Windows Forms project file to make sure the various VTK&nbsp; </FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">source directories are in the include directories list. You'll also&nbsp; </FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">need to add the required VTK libraries to the linker input libraries&nbsp; </FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">list.</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">Sorry I couldn't provide more specific help.</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">Michael</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">&gt;&gt; _______________________________________________</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">&gt;&gt; This is the private VTK discussion list.</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">&gt;&gt; Please keep messages on-topic. Check the FAQ at:</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">&gt; <A HREF="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</A></FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">&gt;&gt; Follow this link to subscribe/unsubscribe:</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">&gt;&gt; <A HREF="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</A></FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">&gt;</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">&gt;</FONT></SPAN></P>

</BODY>
</HTML>