<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.bold
        {}
.MsoChpDefault
        {}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-SG" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello, <br>
<br>
I am a new user to <span class="bold">VTK</span>, and my usage of the library is through the Point Cloud Library (PCL) v1.4.0.
<br>
<br>
I have built both the 32-<span class="bold">bit</span> and <span class="bold">64</span>-<span class="bold">bit</span> (static) versions of the library. My program works with the 32-<span class="bold">bit</span> version of the libraries. However, the
<span class="bold">64</span>-<span class="bold">bit</span> version of <span class="bold">
VTK</span> and PCL does not link with my program. Here are the specifics: <br>
<br>
- MSVC 2010 x64 Compiler (for all libraries and my code). <br>
- Windows 7 Professional <span class="bold">64</span>-<span class="bold">Bit</span> Platform
<br>
- <span class="bold">VTK</span> is statically linked <br>
<br>
I have included all the .lib files from <span class="bold">vtk</span> for the linking.
<br>
<br>
4 linking errors are observed (partially extracted): <br>
error LNK2001: unresolved external symbol "public: void __cdecl <span class="bold">
vtkDataArrayTemplate</span><float>::SetArray(float *,int,int,int)" (?SetArray@?$<span class="bold">vtkDataArrayTemplate</span>@M@@QEAAXPEAMHHH@Z)
<br>
error LNK2001: unresolved external symbol "private: void __cdecl pcl::visualization::PCLVisualizer::updateCells(class
<span class="bold">vtkSmartPointer</span><class <span class="bold">vtkIdTypeArray</span>> &,class
<span class="bold">vtkSmartPointer</span><class <span class="bold">vtkIdTypeArray</span>> &,int)" (?updateCells@PCLVisualizer@visualization@pcl@@AEAAXAEAV?$<span class="bold">vtkSmartPointer</span>@VvtkIdTypeArray@@@@0H@Z)
<br>
error LNK2001: unresolved external symbol "public: void __cdecl <span class="bold">
vtkDataArrayTemplate</span><unsigned char>::SetArray(unsigned char *,int,int,int)" (?SetArray@?$<span class="bold">vtkDataArrayTemplate</span>@E@@QEAAXPEAEHHH@Z)
<br>
error LNK2001: unresolved external symbol "public: void __cdecl <span class="bold">
vtkCellArray</span>::SetCells(int,class <span class="bold">vtkIdTypeArray</span> *)" (?SetCells@<span class="bold">vtkCellArray</span>@@QEAAXPHEAVvtkIdTypeArray@@@Z)
<br>
<br>
Here is the command line for linking (certain portions are replaced with a "macro" instead":
<br>
/OUT "%OUTPUT_FILE_PATH_AND_NAME%.exe" /VERBOSE:Lib /INCREMENTAL:NO /NOLOGO /LIBPATH:"%LIBPATH%" "pcl_visualization.lib" "pcl_common.lib" "<span class="bold">vtkCharts</span>.lib" "<span class="bold">vtkCommon</span>.lib" "<span class="bold">vtkDICOMParser</span>.lib"
"<span class="bold">vtkFiltering</span>.lib" "<span class="bold">vtkGenericFiltering</span>.lib" "<span class="bold">vtkGeovis</span>.lib" "<span class="bold">vtkGraphics</span>.lib" "<span class="bold">vtkHybrid</span>.lib" "<span class="bold">vtkIO</span>.lib"
"<span class="bold">vtkImaging</span>.lib" "<span class="bold">vtkInfovis</span>.lib" "<span class="bold">vtkNetCDF</span>.lib" "<span class="bold">vtkNetCDF_cxx</span>.lib" "<span class="bold">vtkViews</span>.lib" "<span class="bold">vtkVolumeRendering</span>.lib"
"<span class="bold">vtkWidgets</span>.lib" "<span class="bold">vtkalglib</span>.lib" "<span class="bold">vtkexollc</span>.lib" "<span class="bold">vtkexpat</span>.lib" "<span class="bold">vtkfreetype</span>.lib" "<span class="bold">vtkftgl</span>.lib" "<span class="bold">vtkhdf5</span>.lib"
"<span class="bold">vtkjpeg</span>.lib" "<span class="bold">vtklibxml2</span>.lib" "<span class="bold">vtkmetaio</span>.lib" "<span class="bold">vtkpng</span>.lib" "<span class="bold">vtkproj4</span>.lib" "<span class="bold">vtksqlite</span>.lib" "<span class="bold">vtksys</span>.lib"
"<span class="bold">vtktiff</span>.lib" "<span class="bold">vtkverdict</span>.lib" "<span class="bold">vtkzlib</span>.lib" "<span class="bold">vtkRendering</span>.lib" "opengl32.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib"
"shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /MANIFEST /ManifestFile:"%MANIFEST_FILE_NAME% /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"%PDB_FILE% /OPT:REF /OPT:ICF /PGF:"%PGD_FILE%" /LTCG
/TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ERRORREPORT:QUEUE <br>
<br>
Thank you in advance.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US" style="color:#004080">Regards,</span><span lang="EN-US">
<br>
<span style="color:#004080">Stephen Chai Kian Ping</span> <br>
<span style="color:#004080">Senior Member of Technical Staff</span> <br>
<span style="color:#004080">DSO National Laboratories</span><br>
<br>
</span></p>
<p class="MsoNormal"> </p>
</div>
<br>
<span style="font-size:10.0pt; font-family:"Arial"; color:blue"><b>DSO 40th Anniversary – Celebrating 40 years of Serious Fun. 1972 – 2012 </b></span>
</body>
</html>