hello, everyone. When I installed gadgetron 2.5 with DCMTK, following issue occurred in make:
/usr/bin/ld: /usr/local/lib/libdcmdata.a(dcdict.cc.o): relocation R_X86_64_32S against `std::basic_string<char, std::char_traits\<char="">, std::allocator\<char> >::_Rep::_S_empty_rep_storage' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libdcmdata.a: could not read symbols: Bad value
collect2: ld return 1
make[2]: *** [gadgets/dicom/libgadgetron_dicom.so] error 1
make[1]: *** [gadgets/dicom/CMakeFiles/gadgetron_dicom.dir/all] error 2
make: *** [all] return 2</char></char,>
Anyone who know how to solve it?
Many appreciations!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello, everyone. When I installed gadgetron 2.5 with DCMTK, following issue occurred in make:
/usr/bin/ld: /usr/local/lib/libdcmdata.a(dcdict.cc.o): relocation R_X86_64_32S against `std::basic_string, std::allocator >::_Rep::_S_empty_rep_storage' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libdcmdata.a: could not read symbols: Bad value
collect2: ld return 1
make[2]: [gadgets/dicom/libgadgetron_dicom.so] error 1
make[1]: [gadgets/dicom/CMakeFiles/gadgetron_dicom.dir/all] error 2
make: *** [all] return 2
Anyone who know how to solve it?
Many appreciations!
Also, it looks like part of your dcmtk is being statically linked
(libdcmdata.a).
If you really need the bleeding edge of dcmtk, maybe you should compile the
dynamically linked version?
hello, everyone. When I installed gadgetron 2.5 with DCMTK, following issue occurred in make:
/usr/bin/ld: /usr/local/lib/libdcmdata.a(dcdict.cc.o): relocation R_X86_64_32S against `std::basic_string<char, std::char_traits\<char="">, std::allocator\<char> >::_Rep::_S_empty_rep_storage' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libdcmdata.a: could not read symbols: Bad value
collect2: ld return 1
make[2]: *** [gadgets/dicom/libgadgetron_dicom.so] error 1
make[1]: *** [gadgets/dicom/CMakeFiles/gadgetron_dicom.dir/all] error 2
make: *** [all] return 2</char></char,>
Anyone who know how to solve it?
Many appreciations!
We probably need to know a bit more about your platform and how you installed dcmtk.
Sent from a mobile device - please excuse brevity and/or typos.
Sorry, I missed that.
The platform is Ubuntu 12.04 LTS. The DCMTK was used as git:https://github.com/commontk/DCMTK
Thanks!
Try using DCMTK out-of-the-box:
I have packages dcmtk libdcmtk2 libdcmtk2-dev installed using apt-get and that works for me.
/ Thomas
Also, it looks like part of your dcmtk is being statically linked
(libdcmdata.a).
If you really need the bleeding edge of dcmtk, maybe you should compile the
dynamically linked version?
On Wed, Feb 12, 2014 at 2:36 AM, "Thomas Sangild Sørensen" tsangild@users.sf.net wrote: