[Insight-users] unable to build dynamic libs on mac osX 10.4.2

Matei Stroila matei.stroila at gmail.com
Thu Jul 21 15:39:56 EDT 2005


I figured out what was wrong. I put "/sw/lib " instead of "/sw/lib/ 
libfftw3.dylib" in the cmake config file for the fftw lib setting.

Thanks for help,

Matei

On Jul 21, 2005, at 12:51 PM, Zachary Pincus wrote:

> Do you use Fink? If so, did you set ITK to use the system libjpeg  
> instead of building it's own?
>
> There seems to be some problem where libtool is looking for  
> something in /sw/lib (where Fink puts its stuff). Perhaps it was  
> trying (and failing) to link with libjpeg there? There's no reason  
> ITK would, by default, need to do this. (Unless the CMakeLists.txt  
> are badly messed up, which seems unlikely.)
>
> Try this: Create a new directory, and run CMake in that directory.  
> At the configuration options, do *nothing* but turn on shared libs,  
> turn off examples, and turn off testing. (To make the build  
> faster.) Then try to build. Do you still get the same error?
>
> If not, then there may be a problem with ITK and using system jepg  
> libs on 10.4.2 with Fink. Otherwise we'll need to look a bit deeper.
>
> Zach Pincus
>
> Program in Biomedical Informatics and Department of Biochemistry
> Stanford University School of Medicine
>
> On Jul 21, 2005, at 4:58 AM, Matei Stroila wrote:
>
>
>> Dear all,
>>
>> I am trying to build ITK (cvs version) on osX 10.4.2 but get this  
>> link error when I want dynamic libs:
>>
>> ....
>> Building object file jdshuff.o...
>> Building shared library /Users/matei/code/Insight-gcc/bin/ 
>> libitkjpeg8.dylib...
>> /usr/bin/libtool: can't map file: /sw/lib ((os/kern) invalid  
>> argument)
>> make[7]: *** [/Users/matei/code/Insight-gcc/bin/libitkjpeg8.dylib]  
>> Error 1
>> make[6]: *** [default_target] Error 2
>> make[5]: *** [default_target_8] Error 2
>> make[4]: *** [default_target] Error 2
>> make[3]: *** [default_target_itkjpeg] Error 2
>> make[2]: *** [default_target] Error 2
>> make[1]: *** [default_target_Utilities] Error 2
>> make: *** [default_target] Error 2
>> ...
>>
>> The static libs seem to compile OK.
>>
>> Thanks,
>>
>> Matei
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>>
>
>



More information about the Insight-users mailing list