rordenlab / dcm2niix

dcm2nii DICOM to NIfTI converter: compiled versions available from NITRC
https://www.nitrc.org/plugins/mwiki/index.php/dcm2nii:MainPage
Other
899 stars 229 forks source link

"USE_STATIC_RUNTIME" set to ON but "libstdc++.a" not found! Set it to OFF #892

Closed tashrifbillah closed 4 days ago

tashrifbillah commented 4 days ago

Hi Chris, if we set it to OFF, would there be any performance issue of dcm2niix?

image

tashrifbillah commented 4 days ago

Also, the prompt seems wrong. In Redhat 9, we have to yum install libstdc++.

neurolabusc commented 4 days ago

@ningfei may want to comment. In general, the static compile is more portable, as it can run in an environment where the library is not in the path. There is typically little difference in speed.

tashrifbillah commented 4 days ago

Actually, I have not been able to solve this issue despite yum install libstdc++. I wonder if Redhat 9 moved the required library libstdc++.a elsewhere or dcm2niix is not able to detect that due to any recent advancement. But I am trying.

ningfei commented 4 days ago

You can check on https://pkgs.org to see which package contains libstdc++.a. But it's also fine to turn it off. That's mainly for portability. You don't need a static build if you are only using it on the local machine.

tashrifbillah commented 4 days ago

It looks like libstdcc++-static is part of a different repository in Redhat 9:

https://stackoverflow.com/a/73242284/11932012

tashrifbillah commented 4 days ago

I ended up using -DUSE_STATIC_RUNTIME=OFF as I could not trust the different repository.