No subject


Sun Apr 3 09:54:08 EDT 2011



macro(itk_module_target_name _name)

  set_property(TARGET ${_name} PROPERTY VERSION 1)

  set_property(TARGET ${_name} PROPERTY SOVERSION 1)

  set_property(TARGET ${_name} PROPERTY OUTPUT_NAME
${_name}-${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR} )



I=92m not sure if the above sets the platform independent part of library
names, but even if so, the code seemed correct.



Thanks in advance.



Regards,

Xiangrong, with Alex and Drew at SIgN.

--20cf30780e6ee2b50704a2874bb1
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"=
><font size=3D"3" face=3D"Calibri">Hi,</font></span></div>
<div style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"=
><font size=3D"3" face=3D"Calibri"></font></span>=A0</div>
<div style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"=
><font size=3D"3" face=3D"Calibri">We were trying to build ITKv4 (with shar=
ed libs) on Windows 7, using MSVC 2010 Express.</font></span></div>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">We had 30 linking errors, as shown at:</fo=
nt></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
a href=3D"http://www.cdash.org/CDash/viewBuildError.php?onlydeltap&amp;buil=
did=3D1088494"><font size=3D"3" face=3D"Calibri">http://www.cdash.org/CDash=
/viewBuildError.php?onlydeltap&amp;buildid=3D1088494</font></a></span></p>

<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">=A0</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">For example, part of the error could look =
like this:</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">=A0</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 2=
29.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.=
2pt 687.0pt 732.8pt" class=3D"MsoNormal"><b><span style=3D"FONT-FAMILY: &#3=
9;Courier New&#39;; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family:=
 &#39;Times New Roman&#39;; mso-ansi-language: EN-SG; mso-fareast-language:=
 ZH-CN; mso-bidi-language: AR-SA">fatal error LNK1104: cannot open file &#3=
9;..\..\..\..\..\..\..\..\lib\Debug\itkv3p_netlib-4.0.lib&#39; [C:\src\ITK-=
cont-Build\Modules\ThirdParty\VNL\src\vxl\v3p\netlib\tests\netlib_lbfgs_exa=
mple.vcxproj]</span></b></p>

<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3" face=3D"Calibri">=A0</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3"><font face=3D"Calibri">The .lib files t=
hat could not be opened were supposed to be located in the build tree at:</=
font></font></span></p>

<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3"><font face=3D"Calibri">lib/Debug</font>=
</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3" face=3D"Calibri">=A0</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3"><font face=3D"Calibri">There, we could =
find .lib files that were named almost the same, except that they were with=
out the trailing minor version number (=93.0=94).</font></font></span></p>

<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3"><font face=3D"Calibri">For e.g., instea=
d of:</font></font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3"><font face=3D"Calibri">itkv3p_netlib-4.=
0.lib</font></font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3"><font face=3D"Calibri">we have:</font><=
/font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3"><font face=3D"Calibri">itkv3p_netlib-4.=
lib</font></font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3" face=3D"Calibri">=A0</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3"><font face=3D"Calibri">However, we do h=
ave the .pdb files with names like the expected .lib files (i.e. with minor=
 version number), e.g.:</font></font></span></p>

<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span style=3D"mso-ans=
i-language: EN-SG"><font size=3D"3"><font face=3D"Calibri">itkv3p_netlib-4.=
0.pdb</font></font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">=A0</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">Does anyone know how to resolve this probl=
em?</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">=A0</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">My own searching led me to this piece of c=
ode in the source tree:</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">CMake/ITKModuleMacros.cmake</font></span><=
/p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">From Line 117:</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">=A0</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">macro(itk_module_target_name _name)</font>=
</span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3"><font face=3D"Calibri"><span style=3D"mso-spacerun: yes">=
=A0 </span>set_property(TARGET ${_name} PROPERTY VERSION 1)</font></font></=
span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3"><font face=3D"Calibri"><span style=3D"mso-spacerun: yes">=
=A0 </span>set_property(TARGET ${_name} PROPERTY SOVERSION 1)</font></font>=
</span></p>

<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3"><font face=3D"Calibri"><span style=3D"mso-spacerun: yes">=
=A0 </span>set_property(TARGET ${_name} PROPERTY OUTPUT_NAME ${_name}-${ITK=
_VERSION_MAJOR}.${ITK_VERSION_MINOR} )</font></font></span></p>

<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">=A0</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">I=92m not sure if the above sets the platf=
orm independent part of library names, but even if so, the code seemed corr=
ect.</font></span></p>

<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">=A0</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">Thanks in advance.</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">=A0</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">Regards,</font></span></p>
<p style=3D"MARGIN: 0cm 0cm 0pt" class=3D"MsoNormal"><span lang=3D"EN-US"><=
font size=3D"3" face=3D"Calibri">Xiangrong, with Alex and Drew at SIgN.</fo=
nt></span></p>

--20cf30780e6ee2b50704a2874bb1--


More information about the Insight-developers mailing list