[Insight-developers] cmake trying to link librt on osx
Richard Beare
richard.beare at gmail.com
Fri Jul 3 21:28:56 EDT 2009
Hi Everyone,
Thanks for responding.
The problem was my fault - I was explicitly linking against librt, but
in a cmake file in a subdirectory I'd forgotten about.
On Sat, Jul 4, 2009 at 4:53 AM, Luis Ibanez<luis.ibanez at kitware.com> wrote:
>
> Hi Richard,
>
>
> From this grep
>
> 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
>
>
More information about the Insight-developers
mailing list