I tried to compile dcmtk 3.6.2 on Mac OS X 10.6.8 with CMake and XCode 4.6.3 without success. I get following errors:
Code: Select all
ld: warning: ignoring file /usr/local/lib/libtiff.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libtiff.dylib
ld: warning: ignoring file /usr/local/lib/libjpeg.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libjpeg.dylib
Undefined symbols for architecture i386:
"_TIFFCleanup", referenced from:
DiTIFFPlugin::write(DiImage*, __sFILE*, unsigned long) const in libdcmimage.a(dipitiff.o)
"_TIFFFdOpen", referenced from:
DiTIFFPlugin::write(DiImage*, __sFILE*, unsigned long) const in libdcmimage.a(dipitiff.o)
"_TIFFFlushData", referenced from:
DiTIFFPlugin::write(DiImage*, __sFILE*, unsigned long) const in libdcmimage.a(dipitiff.o)
"_TIFFGetVersion", referenced from:
DiTIFFPlugin::getLibraryVersionString() in libdcmimage.a(dipitiff.o)
"_TIFFSetField", referenced from:
DiTIFFPlugin::write(DiImage*, __sFILE*, unsigned long) const in libdcmimage.a(dipitiff.o)
"_TIFFWriteScanline", referenced from:
DiTIFFPlugin::write(DiImage*, __sFILE*, unsigned long) const in libdcmimage.a(dipitiff.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Isn't it possible to build 3.6.2 for 10.6.8?
I would really need a dcmj2pnm binary with the +Fn option running on 10.6.8+. Anybody out there compiled v3.6.1 with this option and wants to share the binary?
Many thanks,
Jens