错误如下:
libdcmdata.a(dcdatset.cc.o): relocation R_X86_64_32S against `_ZTV10DcmDataset' can not be used when making a shared object; recompile with –fPIC
重新编译dcmtk
修改:
dcmtk-3.6.4/CMake/GenerateDCMTKConfigure.cmake
底部添加:
add_compile_options(-fPIC)