<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Ps:<br><br>I reduced the number of linking errors from 55 to 21 by also linking to the following libraries:<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">ITKBasicFilters.lib<br>itkvnl.lib<br>itkvnl_algo.lib<br>itkv3p_netlib.lib<br>vtkImaging.lib<br>vtkFiltering.lib<br><br>The remaining LNK2001 errors all involve igstk functions.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2">----- Forwarded Message ----<br><b><span style="font-weight: bold;">From:</span></b> Maarten Beek <beekmaarten@yahoo.com><br><b><span style="font-weight: bold;">To:</span></b> Patrick Cheng <cheng@isis.georgetown.edu><br><b><span style="font-weight: bold;">Cc:</span></b>
igstk-users@public.kitware.com<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, June 8, 2010 4:34:07 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [IGSTK-Users] 64 bit shared libs IGSTK<br></font><br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>I experience similar warnings regarding the use of unsafe functions like sscanf.<br><br>I checked both ITK and VTK. Both were built with the x64 target (although VTK was re-built when I selected Build whereas ITK just generated the expected 'up-to-date' message).<br><br>I removed the entire IGSTK directory and started with extracting the *.zip file. Although IGSTK_USE_SceneGraphVisualization was unchecked in CMake, it did appear in the solution. This led to numerous linking errors. Removing this project manually from the solution led to a successful built and installation.<br><br>However, when I try to build the Example\Installation, the following linking errors are generated (the project is linked to IGSTK.lib and ITKCommon.lib):<br>1 error LNK2001: unresolved external
symbol "public: virtual __cdecl igstk::Transform::~Transform(void)" (??1Transform@igstk@@UEAA@XZ) HelloWorld.obj <br>2 error LNK2001: unresolved external symbol "public: __cdecl igstk::Transform::Transform(void)" (??0Transform@igstk@@QEAA@XZ) HelloWorld.obj <br>3 error LNK2001: unresolved external symbol "private: class igstk::CoordinateSystem const * __cdecl igstk::CoordinateSystemDelegator::GetCoordinateSystem(void)const " (?GetCoordinateSystem@CoordinateSystemDelegator@igstk@@AEBAPEBVCoordinateSystem@2@XZ) HelloWorld.obj <br>4 error LNK2001: unresolved external symbol "public: __cdecl igstk::Transform::Transform(class igstk::Transform const &)" (??0Transform@igstk@@QEAA@AEBV01@@Z) HelloWorld.obj <br><...><br>54 error LNK2001:
unresolved external symbol "public: __cdecl vnl_svd<double>::vnl_svd<double>(class vnl_matrix<double> const &,double)" (??0?$vnl_svd@N@@QEAA@AEBV?$vnl_matrix@N@@N@Z) HelloWorld.obj <br>55 error LNK2001: unresolved external symbol "public: void __cdecl igstk::Transform::SetTranslationAndRotation(class itk::Vector<double,3> const &,class itk::Versor<double> const &,double,double)" (?SetTranslationAndRotation@Transform@igstk@@QEAAXAEBV?$Vector@N$02@itk@@AEBV?$Versor@N@4@NN@Z) HelloWorld.obj <br>56 fatal error LNK1120: 55 unresolved externals E:\IGSTK-4-2\Examples\Installation\x64\Release\Installation.exe <br><br><br><br><br><br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif;
font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Patrick Cheng <cheng@isis.georgetown.edu><br><b><span style="font-weight: bold;">To:</span></b> Maarten Beek <beekmaarten@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> igstk-users@public.kitware.com<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, June 8, 2010 5:59:43 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [IGSTK-Users] 64 bit shared libs IGSTK<br></font><br>
Hi Maarten,<br><br>Actually here is a nightly build submission on our dashboard from a <br>64bit machine using VS 2008. It compiles fine except some warning messages.<br><br><span><span><a target="_blank" href="http://public.kitware.com/dashboard.php?name=igstk">http://public.kitware.com/dashboard.php?name=igstk</a></span></span><br><br>Can you send the error messages? Also can you check to see your ITK and <br>VTK are built with x64 target?<br><br>Thank you,<br><br>Patrick<br><br>On 6/7/2010 2:27 PM, Maarten Beek wrote:<br>> Hi Patrick,<br>><br>> Sorry, I meant to attach the CMakeCache.txt file, but now realize I<br>> attached the wrong file. Hopefully I now selected the correct file.<br>><br>> I am aware that VC2005 is an 32bit program (it is installed in the<br>> Program Files (x86) directory), but all other libraries installed fine<br>> in 64 bit mode. Including Kitware's VTK, ITK. I was hoping IGSTK would<br>> work as
well.<br>>
What about Linux 64bit?<br>><br>> As far as I know, I am building IGSTK in developmental mode<br>> (IGSTK_DEVELOPMENT_VERSION is checked). If I don't check this option<br>> CMake complains that I should use ITK 3.8 instead of ITK3.10.1<br>><br>> Thanks for your help,<br>> Maarten<br>><br>> ------------------------------------------------------------------------<br>> *From:* Patrick Cheng <<a rel="nofollow" ymailto="mailto:cheng@isis.georgetown.edu" target="_blank" href="mailto:cheng@isis.georgetown.edu">cheng@isis.georgetown.edu</a>><br>> *To:* <a rel="nofollow" ymailto="mailto:igstk-users@public.kitware.com" target="_blank" href="mailto:igstk-users@public.kitware.com">igstk-users@public.kitware.com</a><br>> *Sent:* Mon, June 7, 2010 7:52:09 PM<br>> *Subject:* Re: [IGSTK-Users] 64 bit shared libs IGSTK<br>><br>> Hi Maarten,<br>><br>> We haven't done any testing on the 64 bit platform yet. I
suspect the<br>> error is because the the project linked to wrong
CLR libraries.<br>><br>> "Visual Studio 2005 will install the 32-bit version 2.0 CLR on an x86<br>> machine, and both the 32-bit and appropriate 64-bit version 2.0 CLR on a<br>> 64-bit Windows machine. (Visual Studio 2005 is a 32-bit application and<br>> when installed on a 64-bit Windows operating system will run under WOW64.)"<br>><br>> Can you send us your CMakeCache.txt file in the binary directory of your<br>> build? Can you also run an experimental build on IGSTK? That way, we can<br>> look at the link errors on the IGSTK dashboard.<br>><br>> Thank you,<br>><br>> Patrick<br>><br>> On 6/7/2010 1:29 PM, Maarten Beek wrote:<br>> > Hi all,<br>> ><br>> > I am trying to build the shared libraries of IGSTK on a 64 bit computer<br>> > in Release mode.<br>> > No luck yet. Numerous LNK2019 errors during build. Also, for example,<br>> > for
HelloWorld.obj.<br>> > Does one have any ideas suggestions? I have attached the CMakeLists.txt<br>> > file for reference.<br>> ><br>> > There is a cyclic dependency between IGSTK and SceneGraphVisualization<br>> > which is not allowed with shared libraries according to CMake. So I<br>> > unchecked this option in CMake 2.6. However, when I open the generated<br>> > *.sln file, the SceneGraphVisualization project is included nonetheless.<br>> ><br>> > Other information:<br>> > Windows Vista<br>> > VS 2005<br>> > VTK 5.2.1<br>> > ITK 3.10.1<br>> > Qt 4.4.3<br>> > I am able to generate working applications with this set-up without<br>> IGSTK.<br>> ><br>> > I realize the versions don't totally match the suggested ones in the<br>> > Book. Could
this be a reason?<br>> ><br>> > Thanks - Maarten<br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><span><span> <<a target="_blank" href="http://www.kitware.com">http://www.kitware.com</a>></span></span><br>> ><br>>> Visit other Kitware open-source projects at<br><span><span>> <a target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span></span><br>> ><br>> > Follow this link to subscribe/unsubscribe:<br><span><span>>> <a target="_blank" href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users</a></span></span><br>>
_______________________________________________<br><span>>
Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a> <</span><a rel="nofollow" target="_blank" href="http://www.kitware.com">http://www.kitware.com</a>><br>><br>> Visit other Kitware open-source projects at<br>> <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>><br>> Follow this link to subscribe/unsubscribe:<br>> <a rel="nofollow" target="_blank" href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users</a><br>><br></div></div>
</div><br>
<meta http-equiv="x-dns-prefetch-control" content="on"></div></div>
</div><br>
</body></html>