No subject


Tue Jun 23 12:19:35 EDT 2009


grep TARGET_LINK_LIBRARIES `find . -name "CMakeLists.txt"` | grep rt


I only get the following hits:

~/src/Insight
./Examples/Statistics/CMakeLists.txt:TARGET_LINK_LIBRARIES(SampleSorting
ITKCommon)

./Examples/IO/CMakeLists.txt:TARGET_LINK_LIBRARIES(ImageReadExtractFilterInsertWrite
ITKIO)

./Examples/IO/CMakeLists.txt:TARGET_LINK_LIBRARIES(ImageReadExportVTK
ITKIO)

./Utilities/gdcm/src/CMakeLists.txt:    TARGET_LINK_LIBRARIES(itkgdcm
wsock32 snmpapi rpcrt4)
./Utilities/MetaIO/CMakeLists.txt:

TARGET_LINK_LIBRARIES(${METAIO_NAMESPACE} import32)


So...
At least it seems that it is not a library
that we are explicitly linking against.


Do you get this link error only when building
your python module  ?

or also when building ITK with Python wrapping ?



    Luis



------------------------------------------------------
On Fri, Jul 3, 2009 at 2:47 AM, Richard Beare <richard.beare at gmail.com>wrote:

> Hi,
> I'm trying to debug an itk python module on osx (seems ok on linux).
> My problem is that it is attempting to link against librt, which
> doesn't seem to exist on OS X. However I'm not explicitly asking for
> this anywhere. Does anyone have clues as to where cmake might be
> adding this?
>
> Thanks
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>

--001485f813a2f5f167046dd1aa59
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br>Hi Richard,<br><br><br>From this grep<br><br>grep TARGET_LINK_LIBRARIES=
 `find . -name &quot;CMakeLists.txt&quot;` | grep rt<br><br><br>I only get =
the following hits: =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ~/src/Insig=
ht<br>
./Examples/Statistics/CMakeLists.txt:TARGET_LINK_LIBRARIES(SampleSorting IT=
KCommon)<br><br>./Examples/IO/CMakeLists.txt:TARGET_LINK_LIBRARIES(ImageRea=
dExtractFilterInsertWrite=A0 ITKIO)<br><br>./Examples/IO/CMakeLists.txt:TAR=
GET_LINK_LIBRARIES(ImageReadExportVTK=A0 ITKIO)<br>
<br>./Utilities/gdcm/src/CMakeLists.txt:=A0=A0=A0 TARGET_LINK_LIBRARIES(itk=
gdcm wsock32 snmpapi rpcrt4)<br>./Utilities/MetaIO/CMakeLists.txt:=A0=A0=A0=
 <br><br>TARGET_LINK_LIBRARIES(${METAIO_NAMESPACE} import32)<br><br><br><di=
v class=3D"gmail_quote">
So... <br>At least it seems that it is not a library <br>that we are explic=
itly linking against.<br><br><br>Do you get this link error only when build=
ing<br>your python module=A0 ?<br><br>or also when building ITK with Python=
 wrapping ?<br>
<br><br><br>=A0=A0=A0 Luis<br><br><br><br>---------------------------------=
---------------------<br>On Fri, Jul 3, 2009 at 2:47 AM, Richard Beare <spa=
n dir=3D"ltr">&lt;<a href=3D"mailto:richard.beare at gmail.com">richard.beare@=
gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
I&#39;m trying to debug an itk python module on osx (seems ok on linux).<br=
>
My problem is that it is attempting to link against librt, which<br>
doesn&#39;t seem to exist on OS X. However I&#39;m not explicitly asking fo=
r<br>
this anywhere. Does anyone have clues as to where cmake might be<br>
adding this?<br>
<br>
Thanks<br>
_______________________________________________<br>
Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.kitware=
.com</a><br>
<br>
Visit other Kitware open-source projects at <a href=3D"http://www.kitware.c=
om/opensource/opensource.html" target=3D"_blank">http://www.kitware.com/ope=
nsource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href=3D"http://w=
ww.itk.org/Wiki/ITK_FAQ" target=3D"_blank">http://www.itk.org/Wiki/ITK_FAQ<=
/a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href=3D"http://www.itk.org/mailman/listinfo/insight-developers" target=
=3D"_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
</blockquote></div><br>

--001485f813a2f5f167046dd1aa59--


More information about the Insight-developers mailing list