And I'm using DCMTK-3.6.1_20131114 as source. In the cmake settings, I checked "DCMTK_WITH_ICONV" and set "WITH_LIBCONVINC" path to above libiconv path.
But when I press "Generate" button in cmake, it appears:
Code: Select all
Info: DCMTK ICONV support will be enabled
Performing Test LIBICONV_SECOND_ARGUMENT_CONST
Performing Test LIBICONV_SECOND_ARGUMENT_CONST - Failed
But when I building the dcmtk project, an error found:
Code: Select all
can not find "liconv.h" in "ofchrenc.cc"
then an other error appear:
Code: Select all
Error 1 error C2664: 'libiconv' : cannot convert parameter 2 from 'char **' to 'const char **' DCMTK-3.6.1_20131114\ofstd\libsrc\ofchrenc.cc 236
Code: Select all
/* Define if we are compiling with libiconv support. */
#define WITH_LIBICONV
/* Define if the second argument to iconv() is const */
/* #undef LIBICONV_SECOND_ARGUMENT_CONST */
How can I set this marco in cmake-gui? Thanks!