DCMTK error when building Slicer for arm64 MacOS Monterey

maribernardes
Fri, 20 May 2022 21:03:23 +0000
Support

When trying to build the Slicer current source in my MacOS Monterey with M1 processor, I get this error message:

– Configuring incomplete, errors occurred!
See also “/opt/s/DCMTK-build/CMakeFiles/CMakeOutput.log”.
See also “/opt/s/DCMTK-build/CMakeFiles/CMakeError.log”.
make[2]: *** [DCMTK-prefix/src/DCMTK-stamp/DCMTK-configure] Error 1
make[2]: Target CMakeFiles/DCMTK.dir/build' not remade because of errors. make[1]: *** [CMakeFiles/DCMTK.dir/all] Error 2 make[1]: Target all’ not remade because of errors.
make: *** [all] Error 2
make: Target `default_target’ not remade because of errors.

Taking a look in CMakeError.log I have found:

Undefined symbols for architecture arm64:
“_iconv”, referenced from:
_main in src.cxx.o
“_iconv_close”, referenced from:
_main in src.cxx.o
“_iconv_open”, referenced from:
_main in src.cxx.o
ld: symbol(s) not found for architecture arm64

Did someone have a similar problem? I would appreciate any light on how to overcome this issue.

2 posts - 2 participants