<div>Hi all, </div><div><br></div><div>After I installed MRtrix- 0.2.10 successfully in one Mac OSX Lion computer, I got the following error when I tried to install it (by running ./build) in another Mac OSX Lion computer. It seems to relate to Xcode. Could you give me any clue how to fix it? </div>
<div> </div><div>------------------------------------------------------------------------------------------</div><div>ERROR: [LD] lib/libmrtrix-0_2_10.dylib</div><div><br>
</div><div>g++ -shared -L/sw/lib lib/math/vector.o lib/math/matrix.o lib/image/format/analyse.o lib/file/dicom/quick_scan.o lib/image/format/list.o lib/file/dicom/image.o lib/file/config.o lib/point.o lib/image/name_parser.o lib/image/format/xds.o lib/data_type.o lib/args.o lib/file/dicom/patient.o lib/file/dicom/tree.o lib/image/fft.o lib/image/header.o lib/file/dicom/mapper.o lib/file/dicom/select_cmdline.o lib/math/linalg.o lib/file/dicom/study.o lib/file/dicom/element.o lib/file/mmap.o lib/image/format/nifti1.o lib/file/dicom/dict.o lib/image/format/mrtrix.o lib/image/format/base.o lib/image/axis.o lib/image/interp.o lib/image/mapper.o lib/file/dicom/series.o lib/mrtrix.o lib/image/format/mri.o lib/image/object.o lib/image/format/dicom.o lib/app.o lib/file/key_value.o -L/opt/local/lib -lglibmm-2.4 -lgobject-2.0 -lsigc-2.0 -lgthread-2.0 -lglib-2.0 -lintl -lgsl -lgslcblas -o lib/libmrtrix-0_2_10.dylib</div>
<div><br></div><div>failed with output:</div><div><br></div><div>ld: warning: ignoring file /sw/lib/libgobject-2.0.dylib, file was built for unsupported file format ( 0xfe 0xed 0xfa 0xce 0x 0 0x 0 0x 0 0x12 0x 0 0x 0 0x 0 0x a 0x 0 0x 0 0x 0 0x 6 ) which is not the architecture being linked (x86_64): /sw/lib/libgobject-2.0.dylibld: warning:</div>
<div>ld: warning: ignoring file /sw/lib/libgthread-2.0.dylib, file was built for unsupported file format ( 0xfe 0xed 0xfa 0xce 0x 0 0x 0 0x 0 0x12 0x 0 0x 0 0x 0 0x a 0x 0 0x 0 0x 0 0x 6 ) which is not the architecture being linked (x86_64): /sw/lib/libgthread-2.0.dylibignoring file /sw/lib/libglib-2.0.dylib, file was built for unsupported file format ( 0xfe 0xed 0xfa 0xce 0x 0 0x 0 0x 0 0x12 0x 0 0x 0 0x 0 0x a 0x 0 0x 0 0x 0 0x 6 ) which is not the architecture being linked (x86_64): /sw/lib/libglib-2.0.dylib</div>
<div>ld: warning:</div><div>ignoring file /sw/lib/libintl.dylib, file was built for unsupported file format ( 0xfe 0xed 0xfa 0xce 0x 0 0x 0 0x 0 0x12 0x 0 0x 0 0x 0 0x a 0x 0 0x 0 0x 0 0x 6 ) which is not the architecture being linked (x86_64): /sw/lib/libintl.dylib</div>
<div>Undefined symbols for architecture x86_64:</div><div> "_g_ascii_table", referenced from:</div><div> MR::File::Dicom::select_cmdline(MR::File::Dicom::Tree const&)in select_cmdline.o</div><div> MR::(anonymous namespace)::print_formatted_paragraph(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int, int)in app.o</div>
<div> "_g_snprintf", referenced from:</div><div> MR::Image::Header::description() constin header.o</div><div> "_g_sprintf", referenced from:</div><div> MR::Image::NameParser::name(std::vector<int, std::allocator<int> > const&)in name_parser.o</div>
<div> "_g_unlink", referenced from:</div><div> MR::File::MMap::Base::~Base()in mmap.o</div><div> "_g_vsnprintf", referenced from:</div><div> MR::printf(char const*, ...)in matrix.o</div><div>
MR::printf(char const*, ...)in patient.o</div><div> MR::printf(char const*, ...)in study.o</div><div> MR::printf(char const*, ...)in element.o</div><div> MR::printf(char const*, ...)in series.o</div>
<div>
"_glib_major_version", referenced from:</div><div> MR::App::sort_arguments(int, char**)in app.o</div><div> "_glib_micro_version", referenced from:</div><div> MR::App::sort_arguments(int, char**)in app.o</div>
<div> "_glib_minor_version", referenced from:</div><div> MR::App::sort_arguments(int, char**)in app.o</div><div>ld: symbol(s) not found for architecture x86_64</div><div>collect2: ld returned 1 exit status</div>
<div><br></div><div>Thanks, </div><div>Zhuang</div>