[Mrtrix-discussion] installation error

Zhuang Song zhuang.song at gmail.com
Mon Mar 11 10:42:55 PDT 2013


Hi all,

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?

------------------------------------------------------------------------------------------
ERROR: [LD] lib/libmrtrix-0_2_10.dylib

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

failed with output:

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:
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
ld: warning:
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
Undefined symbols for architecture x86_64:
  "_g_ascii_table", referenced from:
      MR::File::Dicom::select_cmdline(MR::File::Dicom::Tree const&)in
select_cmdline.o
      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
  "_g_snprintf", referenced from:
      MR::Image::Header::description() constin header.o
  "_g_sprintf", referenced from:
      MR::Image::NameParser::name(std::vector<int, std::allocator<int> >
const&)in name_parser.o
  "_g_unlink", referenced from:
      MR::File::MMap::Base::~Base()in mmap.o
  "_g_vsnprintf", referenced from:
      MR::printf(char const*, ...)in matrix.o
      MR::printf(char const*, ...)in patient.o
      MR::printf(char const*, ...)in study.o
      MR::printf(char const*, ...)in element.o
      MR::printf(char const*, ...)in series.o
  "_glib_major_version", referenced from:
      MR::App::sort_arguments(int, char**)in app.o
  "_glib_micro_version", referenced from:
      MR::App::sort_arguments(int, char**)in app.o
  "_glib_minor_version", referenced from:
      MR::App::sort_arguments(int, char**)in app.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

Thanks,
Zhuang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20130311/ef2d9fd5/attachment.html


More information about the Mrtrix-discussion mailing list