Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Undefined libiconv symbols on Mac #178

Closed
nolden opened this Issue · 0 comments

1 participant

@nolden
Owner

The latest DCMTK snapshot includes support for libiconv. This is automatically detected by DCMTK, but the CTK Superbuild does not link libiconv to all DCMTK-dependent targets. This results in errors like this:

Undefined symbols for architecture x86_64:

"_libiconv_close", referenced from:
OFCharacterEncoding::closeDescriptor(void&) in libofstd.a(ofchrenc.cc.o)
"_libiconv_open", referenced from:
OFCharacterEncoding::openDescriptor(void
&, OFString const&, OFString const&) in libofstd.a(ofchrenc.cc.o)
"_libiconvctl", referenced from:
OFCharacterEncoding::convertString(void, char const, unsigned long, OFString&, bool) in libofstd.a(ofchrenc.cc.o)
"_libiconv", referenced from:
OFCharacterEncoding::convertString(void, char const, unsigned long, OFString&, bool) in libofstd.a(ofchrenc.cc.o)
ld: symbol(s) not found for architecture x86_64

After a short discussion with the DCMTK team I think the best solution is to deactivate libiconv support for now since it's not easily detectable whether it is turned on or off. Encoding support is still supported by our ctkDICOMDataset wrapper class.

@nolden nolden was assigned
@nolden nolden closed this in 157b2b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.