Specific Character set issue

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
annapurne.s
Posts: 12
Joined: Wed, 2024-01-31, 10:42

Specific Character set issue

#1 Post by annapurne.s »

Hi all, I am using DCMTK framework. I am facing issue in Specific character set

Initially i am not set this tag after latin char not get supported i used ISO_IR_192 then now i got issue with Russian character set when user query MWL. Is there is any way to find out the Specific character set before make the query.

Please reply asap.

annapurne.s
Posts: 12
Joined: Wed, 2024-01-31, 10:42

Specific Character set issue

#2 Post by annapurne.s »

Hi all, I am using DCMTK framework. I am facing issue in Specific character set

Initially i am not set this tag after latin char not get supported i used ISO_IR_192 then now i got issue with Russian character set (ISO_IR_144) when user query MWL. Is there is any way to find out the Specific character set before make the query.

Please reply asap.

J. Riesmeier
DCMTK Developer
Posts: 2517
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Specific Character set issue

#3 Post by J. Riesmeier »

The Specific Character Set that is used for a C-FIND response dataset is specified by the SCP, if this was the question. You could check in the DICOM Conformance Statement of the particular device which character sets are supported and how they are used.

annapurne.s
Posts: 12
Joined: Wed, 2024-01-31, 10:42

Re: Specific Character set issue

#4 Post by annapurne.s »

Hi, thanks for quick response.

I am using DCMTK 3.6.2, now i am try to enable the WITH_LIBICONV but CMake showing error log

Code: Select all

CMake Warning (dev) at CMakeLists.txt:2 (PROJECT):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

The C compiler identification is AppleClang 15.0.0.15000040
The CXX compiler identification is AppleClang 15.0.0.15000040
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
Detecting CXX compile features
Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:5 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at CMake/dcmtkPrepare.cmake:11 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  CMakeLists.txt:17 (INCLUDE)


CMake Deprecation Warning at CMake/dcmtkPrepare.cmake:230 (CMAKE_POLICY):
  The OLD behavior for policy CMP0005 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:17 (INCLUDE)


Info: DCMTK TIFF support will be enabled
Info: DCMTK PNG support will be enabled
Info: DCMTK OPENSSL support will be enabled
Info: DCMTK XML support will be enabled
Info: DCMTK ZLIB support will be enabled
CMake Warning (dev) at /private/var/folders/85/1gbzfl55213_k_n890y5hrk40000gn/T/AppTranslocation/573B65C7-A29F-47F2-B655-8CFA11EABDCA/d/CMake.app/Contents/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (SNDFILE)
  does not match the name of the calling package (Sndfile).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  CMake/FindSndfile.cmake:20 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/3rdparty.cmake:226 (FIND_PACKAGE)
  CMake/dcmtkPrepare.cmake:439 (INCLUDE)
  CMakeLists.txt:17 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

Found SNDFILE: /usr/local/lib/libsndfile.dylib
Info: DCMTK SNDFILE support will be enabled
Performing Test Iconv_IS_BUILT_IN
Performing Test Iconv_IS_BUILT_IN - Failed
CMake Warning (dev) at /private/var/folders/85/1gbzfl55213_k_n890y5hrk40000gn/T/AppTranslocation/573B65C7-A29F-47F2-B655-8CFA11EABDCA/d/CMake.app/Contents/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (Iconv) does
  not match the name of the calling package (ICONV).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /private/var/folders/85/1gbzfl55213_k_n890y5hrk40000gn/T/AppTranslocation/573B65C7-A29F-47F2-B655-8CFA11EABDCA/d/CMake.app/Contents/share/cmake-3.29/Modules/FindICONV.cmake:165 (find_package_handle_standard_args)
  CMake/3rdparty.cmake:241 (FIND_PACKAGE)
  CMake/dcmtkPrepare.cmake:439 (INCLUDE)
  CMakeLists.txt:17 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

Found Iconv: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/lib/libiconv.tbd
CMake Warning (dev) at /private/var/folders/85/1gbzfl55213_k_n890y5hrk40000gn/T/AppTranslocation/573B65C7-A29F-47F2-B655-8CFA11EABDCA/d/CMake.app/Contents/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LIBCHARSET)
  does not match the name of the calling package (Charset).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  CMake/FindCharset.cmake:17 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/3rdparty.cmake:242 (FIND_PACKAGE)
  CMake/dcmtkPrepare.cmake:439 (INCLUDE)
  CMakeLists.txt:17 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

Found LIBCHARSET: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/lib/libcharset.tbd
Warning: ICONV support will be disabled because libiconv was not found. Correct LIBICONV_LIBDIR and LIBICONV_INCLUDE_DIR and re-enable DCMTK_WITH_ICONV.
CMake Warning (dev) at /private/var/folders/85/1gbzfl55213_k_n890y5hrk40000gn/T/AppTranslocation/573B65C7-A29F-47F2-B655-8CFA11EABDCA/d/CMake.app/Contents/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (WRAP) does
  not match the name of the calling package (Wrap).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  CMake/FindWrap.cmake:20 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/3rdparty.cmake:259 (FIND_PACKAGE)
  CMake/dcmtkPrepare.cmake:439 (INCLUDE)
  CMakeLists.txt:17 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

Found WRAP: /opt/local/lib/libwrap.dylib
Info: DCMTK WRAP support will be enabled
Performing Test WITH_STDLIBC_ICONV
Performing Test WITH_STDLIBC_ICONV - Failed
Info: DCMTK ICU support will be enabled
Warning: DOXYGEN support will be disabled because doxygen was not found.
Info: DCMTK will compile without built-in (compiled-in) dictionary
Info: DCMTK will try to load external dictionary from default path on startup
Info: DCMTK's builtin private dictionary support will be disabled
Info: Thread support will be enabled
Info: Wide char file I/O functions will be disabled
Info: Wide char main function for command line tools will be disabled
Info: Building DCMTK with character set conversion support using the ICU
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of char
Check size of char - done
Check size of double
Check size of double - done
Check size of float
Check size of float - done
Check size of int
Check size of int - done
Check size of long
Check size of long - done
Check size of short
Check size of short - done
Check size of void*
Check size of void* - done
Looking for __FUNCTION__
Looking for __FUNCTION__ - found
Looking for __FUNCTION__
Looking for __FUNCTION__ - found
Looking for __PRETTY_FUNCTION__
Looking for __PRETTY_FUNCTION__ - found
Looking for __PRETTY_FUNCTION__
Looking for __PRETTY_FUNCTION__ - found
Looking for __func__
Looking for __func__ - found
Looking for __func__
Looking for __func__ - found
Looking for C++ include errno.h
Looking for C++ include errno.h - found
Looking for C++ include dirent.h
Looking for C++ include dirent.h - found
Looking for C++ include fcntl.h
Looking for C++ include fcntl.h - found
Looking for C++ include fstream
Looking for C++ include fstream - found
Looking for C++ include fstream.h
Looking for C++ include fstream.h - not found
Looking for C++ include fnmatch.h
Looking for C++ include fnmatch.h - found
Looking for C++ include float.h
Looking for C++ include float.h - found
Looking for C++ include grp.h
Looking for C++ include grp.h - found
Looking for C++ include malloc.h
Looking for C++ include malloc.h - not found
Looking for C++ include math.h
Looking for C++ include math.h - found
Looking for C++ include cmath
Looking for C++ include cmath - found
Looking for C++ include ieeefp.h
Looking for C++ include ieeefp.h - not found
Looking for C++ include inttypes.h
Looking for C++ include inttypes.h - found
Looking for C++ include iomanip
Looking for C++ include iomanip - found
Looking for C++ include iomanip.h
Looking for C++ include iomanip.h - not found
Looking for C++ include iostream
Looking for C++ include iostream - found
Looking for C++ include iostream.h
Looking for C++ include iostream.h - not found
Looking for C++ include io.h
Looking for C++ include io.h - not found
Looking for C++ include iso646.h
Looking for C++ include iso646.h - found
Looking for C++ include png.h
Looking for C++ include png.h - found
Looking for C++ include limits.h
Looking for C++ include limits.h - found
Looking for C++ include climits
Looking for C++ include climits - found
Looking for C++ include locale.h
Looking for C++ include locale.h - found
Looking for C++ include ndir.h
Looking for C++ include ndir.h - not found
Looking for C++ include netdb.h
Looking for C++ include netdb.h - found
Looking for C++ include new.h
Looking for C++ include new.h - not found
Looking for C++ include pwd.h
Looking for C++ include pwd.h - found
Looking for C++ include semaphore.h
Looking for C++ include semaphore.h - found
Looking for C++ include setjmp.h
Looking for C++ include setjmp.h - found
Looking for C++ include sstream
Looking for C++ include sstream - found
Looking for C++ include sstream.h
Looking for C++ include sstream.h - not found
Looking for C++ include stat.h
Looking for C++ include stat.h - not found
Looking for C++ include stdbool.h
Looking for C++ include stdbool.h - found
Looking for C++ include cstddef
Looking for C++ include cstddef - found
Looking for C++ include cstdint
Looking for C++ include cstdint - found
Looking for C++ include stdio.h
Looking for C++ include stdio.h - found
Looking for C++ include cstdio
Looking for C++ include cstdio - found
Looking for C++ include strings.h
Looking for C++ include strings.h - found
Looking for C++ include string.h
Looking for C++ include string.h - found
Looking for C++ include strstream.h
Looking for C++ include strstream.h - not found
Looking for C++ include strstream
Looking for C++ include strstream - found
Looking for C++ include strstrea.h
Looking for C++ include strstrea.h - not found
Looking for C++ include synch.h
Looking for C++ include synch.h - not found
Looking for C++ include syslog.h
Looking for C++ include syslog.h - found
Looking for C++ include sys/errno.h
Looking for C++ include sys/errno.h - found
Looking for C++ include sys/dir.h
Looking for C++ include sys/dir.h - found
Looking for C++ include sys/file.h
Looking for C++ include sys/file.h - found
Looking for C++ include sys/ndir.h
Looking for C++ include sys/ndir.h - not found
Looking for C++ include sys/param.h
Looking for C++ include sys/param.h - found
Looking for C++ include sys/resource.h
Looking for C++ include sys/resource.h - found
Looking for C++ include sys/select.h
Looking for C++ include sys/select.h - found
Looking for C++ include sys/syscall.h
Looking for C++ include sys/syscall.h - found
Looking for C++ include sys/systeminfo.h
Looking for C++ include sys/systeminfo.h - not found
Looking for C++ include sys/time.h
Looking for C++ include sys/time.h - found
Looking for C++ include sys/timeb.h
Looking for C++ include sys/timeb.h - found
Looking for C++ include sys/utime.h
Looking for C++ include sys/utime.h - not found
Looking for C++ include sys/utsname.h
Looking for C++ include sys/utsname.h - found
Looking for C++ include sys/wait.h
Looking for C++ include sys/wait.h - found
Looking for C++ include sys/socket.h
Looking for C++ include sys/socket.h - found
Looking for C++ include thread.h
Looking for C++ include thread.h - not found
Looking for C++ include sys/stat.h
Looking for C++ include sys/stat.h - found
Looking for C++ include time.h
Looking for C++ include time.h - found
Looking for C++ include unistd.h
Looking for C++ include unistd.h - found
Looking for C++ include unix.h
Looking for C++ include unix.h - not found
Looking for C++ include utime.h
Looking for C++ include utime.h - found
Looking for C++ include wchar.h
Looking for C++ include wchar.h - found
Looking for C++ include wctype.h
Looking for C++ include wctype.h - found
Looking for C++ include alloca.h
Looking for C++ include alloca.h - found
Looking for C++ include arpa/inet.h
Looking for C++ include arpa/inet.h - found
Looking for C++ include ctype.h
Looking for C++ include ctype.h - found
Looking for C++ include memory.h
Looking for C++ include memory.h - found
Looking for C++ include pthread.h
Looking for C++ include pthread.h - found
Looking for C++ include libc.h
Looking for C++ include libc.h - found
Looking for C++ include stdlib.h
Looking for C++ include stdlib.h - found
Looking for C++ include stdarg.h
Looking for C++ include stdarg.h - found
Looking for C++ include cstdarg
Looking for C++ include cstdarg - found
Looking for C++ include signal.h
Looking for C++ include signal.h - found
Looking for C++ include fenv.h
Looking for C++ include fenv.h - found
Looking for include files sys/types.h, netinet/in_systm.h
Looking for include files sys/types.h, netinet/in_systm.h - found
Looking for 3 include files sys/types.h, ..., netinet/in.h
Looking for 3 include files sys/types.h, ..., netinet/in.h - found
Looking for 4 include files sys/types.h, ..., netinet/tcp.h
Looking for 4 include files sys/types.h, ..., netinet/tcp.h - found
Looking for connect
Looking for connect - found
Looking for accept
Looking for accept - found
Looking for access
Looking for access - found
Looking for bcmp
Looking for bcmp - found
Looking for bcopy
Looking for bcopy - found
Looking for bind
Looking for bind - found
Looking for bzero
Looking for bzero - found
Looking for cuserid
Looking for cuserid - not found
Looking for _doprnt
Looking for _doprnt - not found
Looking for finite
Looking for finite - not found
Looking for flock
Looking for flock - found
Looking for fork
Looking for fork - found
Looking for fseeko
Looking for fseeko - found
Looking for ftime
Looking for ftime - found
Looking for getaddrinfo
Looking for getaddrinfo - found
Looking for getenv
Looking for getenv - found
Looking for geteuid
Looking for geteuid - found
Looking for getgrnam
Looking for getgrnam - found
Looking for gethostbyname
Looking for gethostbyname - found
Looking for gethostbyname_r
Looking for gethostbyname_r - not found
Looking for gethostbyaddr_r
Looking for gethostbyaddr_r - not found
Looking for gethostname
Looking for gethostname - found
Looking for gethostid
Looking for gethostid - found
Looking for getlogin
Looking for getlogin - found
Looking for getlogin_r
Looking for getlogin_r - found
Looking for getpid
Looking for getpid - found
Looking for getpwnam
Looking for getpwnam - found
Looking for getsockname
Looking for getsockname - found
Looking for getsockopt
Looking for getsockopt - found
Looking for getuid
Looking for getuid - found
Looking for gmtime_r
Looking for gmtime_r - found
Looking for index
Looking for index - found
Looking for isinf
Looking for isinf - found
Looking for isnan
Looking for isnan - found
Looking for itoa
Looking for itoa - not found
Looking for listen
Looking for listen - found
Looking for localtime_r
Looking for localtime_r - found
Looking for lockf
Looking for lockf - found
Looking for lstat
Looking for lstat - found
Looking for malloc_debug
Looking for malloc_debug - found
Looking for mbstowcs
Looking for mbstowcs - found
Looking for wcstombs
Looking for wcstombs - found
Looking for memmove
Looking for memmove - found
Looking for mkstemp
Looking for mkstemp - found
Looking for mktemp
Looking for mktemp - found
Looking for rindex
Looking for rindex - found
Looking for select
Looking for select - found
Looking for setsockopt
Looking for setsockopt - found
Looking for setuid
Looking for setuid - found
Looking for sleep
Looking for sleep - found
Looking for socket
Looking for socket - found
Looking for stat
Looking for stat - found
Looking for strchr
Looking for strchr - found
Looking for strdup
Looking for strdup - found
Looking for strerror
Looking for strerror - found
Looking for strlcat
Looking for strlcat - found
Looking for strlcpy
Looking for strlcpy - found
Looking for strstr
Looking for strstr - found
Looking for strtoul
Looking for strtoul - found
Looking for sysinfo
Looking for sysinfo - not found
Looking for tempnam
Looking for tempnam - found
Looking for tmpnam
Looking for tmpnam - found
Looking for uname
Looking for uname - found
Looking for usleep
Looking for usleep - found
Looking for wait3
Looking for wait3 - found
Looking for waitpid
Looking for waitpid - found
Looking for _findfirst
Looking for _findfirst - not found
Looking for nanosleep
Looking for nanosleep - found
Looking for prototype of feenableexcept
Looking for prototype of feenableexcept - not found.
Looking for prototype of isinf
Looking for prototype of isinf - not found.
Looking for prototype of isnan
Looking for prototype of isnan - not found.
Looking for prototype of finite
Looking for prototype of finite - not found.
Looking for prototype of std::isinf
Looking for prototype of std::isinf - not found.
Looking for prototype of std::isnan
Looking for prototype of std::isnan - not found.
Looking for prototype of std::finite
Looking for prototype of std::finite - not found.
Looking for prototype of flock
Looking for prototype of flock - found
Looking for prototype of gethostbyname
Looking for prototype of gethostbyname - found
Looking for prototype of gethostbyname_r
Looking for prototype of gethostbyname_r - not found.
Looking for prototype of gethostbyaddr_r
Looking for prototype of gethostbyaddr_r - not found.
Looking for prototype of gethostid
Looking for prototype of gethostid - found
Looking for prototype of bzero
Looking for prototype of bzero - found
Looking for prototype of gethostname
Looking for prototype of gethostname - found
Looking for prototype of waitpid
Looking for prototype of waitpid - found
Looking for prototype of wait3
Looking for prototype of wait3 - found
Looking for prototype of usleep
Looking for prototype of usleep - found
Looking for prototype of accept
Looking for prototype of accept - found
Looking for prototype of bind
Looking for prototype of bind - found
Looking for prototype of getsockname
Looking for prototype of getsockname - found
Looking for prototype of getsockopt
Looking for prototype of getsockopt - found
Looking for prototype of setsockopt
Looking for prototype of setsockopt - found
Looking for prototype of socket
Looking for prototype of socket - found
Looking for prototype of listen
Looking for prototype of listen - found
Looking for prototype of _vsnprintf_s
Looking for prototype of _vsnprintf_s - not found.
Looking for prototype of vfprintf_s
Looking for prototype of vfprintf_s - not found.
Looking for prototype of vprintf
Looking for prototype of vprintf - found
Looking for prototype of vsnprintf
Looking for prototype of vsnprintf - found
Looking for prototype of vsprintf_s
Looking for prototype of vsprintf_s - not found.
Looking for prototype of std::vfprintf
Looking for prototype of std::vfprintf - found
Looking for prototype of std::vsnprintf
Looking for prototype of std::vsnprintf - found
Looking for prototype of _stricmp
Looking for prototype of _stricmp - not found.
Looking for prototype of socklen_t definition
Looking for prototype of socklen_t definition - found
Looking for prototype of gettimeofday
Looking for prototype of gettimeofday - found
Looking for prototype of connect
Looking for prototype of connect - found
Looking for prototype of mkstemp
Looking for prototype of mkstemp - found
Looking for prototype of mktemp
Looking for prototype of mktemp - found
Looking for prototype of memcmp
Looking for prototype of memcmp - found
Looking for prototype of memcpy
Looking for prototype of memcpy - found
Looking for prototype of memset
Looking for prototype of memset - found
Looking for prototype of select
Looking for prototype of select - found
Looking for prototype of strcasecmp
Looking for prototype of strcasecmp - found
Looking for prototype of strncasecmp
Looking for prototype of strncasecmp - found
Looking for prototype of strerror_r
Looking for prototype of strerror_r - found
Looking for prototype of SYS_gettid
Looking for prototype of SYS_gettid - found
Looking for prototype of std::ios_base::openmode definition
Looking for prototype of std::ios_base::openmode definition - not found.
Looking for prototype of pthread_rwlock_init
Looking for prototype of pthread_rwlock_init - found
Looking for prototype of __sync_add_and_fetch((int*)0,0)
Looking for prototype of __sync_add_and_fetch((int*)0,0) - found
Looking for prototype of __sync_sub_and_fetch((int*)0,0)
Looking for prototype of __sync_sub_and_fetch((int*)0,0) - found
Looking for prototype of InterlockedIncrement((long*)0)
Looking for prototype of InterlockedIncrement((long*)0) - not found.
Looking for prototype of InterlockedDecrement((long*)0)
Looking for prototype of InterlockedDecrement((long*)0) - not found.
Looking for prototype of _fpclassf(0.0f)
Looking for prototype of _fpclassf(0.0f) - not found.
Looking for prototype of getgrnam_r((char*)0,(group*)0,(char*)0,0,(group**)0)
Looking for prototype of getgrnam_r((char*)0,(group*)0,(char*)0,0,(group**)0) - found
Looking for prototype of getpwnam_r((char*)0,(passwd*)0,(char*)0,0,(passwd**)0)
Looking for prototype of getpwnam_r((char*)0,(passwd*)0,(char*)0,0,(passwd**)0) - found
Looking for prototype of readdir_r((DIR*)0,(dirent*)0,(dirent**)0)
Looking for prototype of readdir_r((DIR*)0,(dirent*)0,(dirent**)0) - found
Looking for prototype of nanosleep
Looking for prototype of nanosleep - found
Looking for prototype of &passwd::pw_gecos
Looking for prototype of &passwd::pw_gecos - found
Looking for prototype of uchar definition
Looking for prototype of uchar definition - not found.
Looking for prototype of ushort definition
Looking for prototype of ushort definition - found
Looking for prototype of uint definition
Looking for prototype of uint definition - found
Looking for prototype of ulong definition
Looking for prototype of ulong definition - not found.
Looking for prototype of longlong definition
Looking for prototype of longlong definition - not found.
Looking for prototype of ulonglong definition
Looking for prototype of ulonglong definition - not found.
Looking for prototype of long long definition
Looking for prototype of long long definition - found
Looking for prototype of unsigned long long definition
Looking for prototype of unsigned long long definition - found
Looking for prototype of int64_t definition
Looking for prototype of int64_t definition - found
Looking for prototype of uint64_t definition
Looking for prototype of uint64_t definition - found
Looking for prototype of fpos64_t definition
Looking for prototype of fpos64_t definition - not found.
Looking for prototype of off64_t definition
Looking for prototype of off64_t definition - not found.
Looking for prototype of popen
Looking for prototype of popen - found
Looking for prototype of pclose
Looking for prototype of pclose - found
Looking for prototype of sigjmp_buf definition
Looking for prototype of sigjmp_buf definition - found
Looking for prototype of SSL_CTX_get0_param
Looking for prototype of SSL_CTX_get0_param - not found.
Looking for prototype of RAND_egd
Looking for prototype of RAND_egd - not found.
Checking whether <libc.h> can be included as extern "C"
Checking whether <libc.h> can be included as extern "C" -- yes
Checking whether <math.h> can be included as extern "C"
Checking whether <math.h> can be included as extern "C" -- yes
Checking signedness of char
Checking signedness of char -- signed
Checking whether C++ type bool exists
Checking whether C++ type bool exists -- yes
Checking whether pthread_t is an integer type
Checking whether pthread_t is an integer type -- no
Checking whether typename works correctly
Checking whether typename works correctly -- yes
Checking whether ENAMETOOLONG is defined
Checking whether ENAMETOOLONG is defined -- yes
Checking whether strerror_r returns an int
Checking whether strerror_r returns an int -- yes
Checking whether variable length arrays are supported
Checking whether variable length arrays are supported -- yes
Checking whether std::ios::nocreate exists
Checking whether std::ios::nocreate exists -- no
Checking whether explicit large file support (LFS64) is available
Checking whether explicit large file support (LFS64) is available -- no
Checking whether large file support (LFS) is available
Check size of fpos_t
Check size of fpos_t - done
Checking whether large file support (LFS) is available -- yes
Info: Building DCMTK with large file support (LFS)
Checking whether socket functions accept an int* argument
Checking whether socket functions accept an int* argument -- no
Checking whether select() accepts an int* argument
Checking whether select() accepts an int* argument -- no
Checking whether __alignof__ is supported
Checking whether __alignof__ is supported -- yes
Checking whether __alignof is supported
Checking whether __alignof is supported -- yes
Checking whether __attribute__((aligned)) is supported
Checking whether __attribute__((aligned)) is supported -- yes
Checking whether __attribute__((aligned)) supports templates
Checking whether __attribute__((aligned)) supports templates -- yes
Checking whether __declspec(align) is supported
Checking whether __declspec(align) is supported -- no
Checking whether the compiler supports default constructor detection via SFINAE
Checking whether the compiler supports default constructor detection via SFINAE -- yes
Checking whether ANSI standard C++ includes use std namespace
Checking whether ANSI standard C++ includes use std namespace -- yes
Checking whether the compiler supports std::nothrow
Checking whether the compiler supports std::nothrow -- yes
Checking whether the compiler supports operator delete (std::nothrow)
Checking whether the compiler supports operator delete (std::nothrow) -- yes
Info: C++11 features disabled
Info: STL vector support disabled
Info: STL algorithm support disabled
Info: STL limits support disabled
Info: STL list support disabled
Info: STL map support disabled
Info: STL memory support disabled
Info: STL stack support disabled
Info: STL string support disabled
Info: STL type_traits support disabled
Info: STL tuple support disabled
Info: STL system_error support disabled
Looking for pthread_key_create in pthread
Looking for pthread_key_create in pthread - found
Looking for sem_init in rt
Looking for sem_init in rt - not found
Looking for main in nsl
Looking for main in nsl - not found
Looking for gethostbyname in nsl
Looking for gethostbyname in nsl - not found
Looking for main in socket
Looking for main in socket - not found
Looking for socket in socket
Looking for socket in socket - not found
CMake Error at CMake/GenerateDCMTKConfigure.cmake:1252 (MESSAGE):
  Change Dir: '/Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp'



  Run Build Command(s): /usr/bin/xcodebuild -project
  CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_7132d -parallelizeTargets
  -configuration Release -hideShellScriptEnvironment

  Command line invocation:

      /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_7132d -parallelizeTargets -configuration Release -hideShellScriptEnvironment

  

  User defaults from command line:

      HideShellScriptEnvironment = YES
      IDEPackageSupportUseBuiltinSCM = YES

  

  ComputeTargetDependencyGraph

  note: Building targets in dependency order

  note: Target dependency graph (1 target)

      Target 'cmTC_7132d' in project 'CMAKE_TRY_COMPILE' (no dependencies)

  

  GatherProvisioningInputs



  CreateBuildDescription

  Build description signature: 0cc3507e13932d69e080c0561a21e7f7

  Build description path:
  /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/XCBuildData/0cc3507e13932d69e080c0561a21e7f7.xcbuilddata




  CreateBuildDirectory
  /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build

      cd /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.xcodeproj
      builtin-create-build-directory /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build

  

  CreateBuildDirectory
  /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/Release

      cd /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.xcodeproj
      builtin-create-build-directory /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/Release

  

  ClangStatCache
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk
  /var/folders/85/1gbzfl55213_k_n890y5hrk40000gn/C/com.apple.DeveloperTools/15.0-15A240d/Xcode/SDKStatCaches.noindex/macosx14.0-23A334-4a76ee93ef69e462914ffe9883de22b8.sdkstatcache


      cd /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.xcodeproj
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -o /var/folders/85/1gbzfl55213_k_n890y5hrk40000gn/C/com.apple.DeveloperTools/15.0-15A240d/Xcode/SDKStatCaches.noindex/macosx14.0-23A334-4a76ee93ef69e462914ffe9883de22b8.sdkstatcache

  

  CreateBuildDirectory
  /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/EagerLinkingTBDs/Release


      cd /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.xcodeproj
      builtin-create-build-directory /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/EagerLinkingTBDs/Release

  

  WriteAuxiliaryFile
  /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/cmTC_7132d.build/Release/Objects-normal/arm64/cmTC_7132d.LinkFileList
  (in target 'cmTC_7132d' from project 'CMAKE_TRY_COMPILE')

      cd /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp
      write-file /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/cmTC_7132d.build/Release/Objects-normal/arm64/cmTC_7132d.LinkFileList

  

  CompileC
  /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/cmTC_7132d.build/Release/Objects-normal/arm64/arith.o
  /Users/admin/Downloads/dcmtk-3.6.2/config/tests/arith.cc normal arm64 c++
  com.apple.compilers.llvm.clang.1_0.compiler (in target 'cmTC_7132d' from
  project 'CMAKE_TRY_COMPILE')

      cd /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -ivfsstatcache /var/folders/85/1gbzfl55213_k_n890y5hrk40000gn/C/com.apple.DeveloperTools/15.0-15A240d/Xcode/SDKStatCaches.noindex/macosx14.0-23A334-4a76ee93ef69e462914ffe9883de22b8.sdkstatcache -target arm64-apple-macos14.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Release\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -I/Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/Release/include -I/Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/cmTC_7132d.build/Release/DerivedSources-normal/arm64 -I/Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/cmTC_7132d.build/Release/DerivedSources/arm64 -I/Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/cmTC_7132d.build/Release/DerivedSources -F/Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/Release -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_DARWIN_C_SOURCE -DNDEBUG -I/Users/admin/Desktop/New2/config/include -I/Users/admin/Downloads/dcmtk-3.6.2/ofstd/include -I/Users/admin/Downloads/dcmtk-3.6.2/ofstd/libsrc -MMD -MT dependencies -MF /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/cmTC_7132d.build/Release/Objects-normal/arm64/arith.d --serialize-diagnostics /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/cmTC_7132d.build/Release/Objects-normal/arm64/arith.dia -c /Users/admin/Downloads/dcmtk-3.6.2/config/tests/arith.cc -o /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/cmTC_7132d.build/Release/Objects-normal/arm64/arith.o

  In file included from
  /Users/admin/Downloads/dcmtk-3.6.2/config/tests/arith.cc:45:


  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/xmmintrin.h:14:2:
  error: "This header is only meant to be used on x86 and x64 architecture"

  #error "This header is only meant to be used on x86 and x64 architecture"

   ^

  In file included from
  /Users/admin/Downloads/dcmtk-3.6.2/config/tests/arith.cc:45:

  In file included from
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/xmmintrin.h:17:



  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:14:2:
  error: "This header is only meant to be used on x86 and x64 architecture"

  #error "This header is only meant to be used on x86 and x64 architecture"

   ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:37:5:
  error: use of undeclared identifier '__builtin_ia32_emms'; did you mean
  '__builtin_isless'?

      __builtin_ia32_emms();
      ^

  In file included from
  /Users/admin/Downloads/dcmtk-3.6.2/config/tests/arith.cc:30:

  In file included from
  /Users/admin/Downloads/dcmtk-3.6.2/config/tests/../math.cc:29:

  In file included from
  /Users/admin/Downloads/dcmtk-3.6.2/ofstd/include/dcmtk/ofstd/ofstdinc.h:62:


  In file included from
  /Users/admin/Downloads/dcmtk-3.6.2/ofstd/include/dcmtk/ofstd/ofstream.h:30:


  In file included from
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/iostream:43:


  In file included from
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/ios:221:


  In file included from
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__locale:18:


  In file included from
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/mutex:191:


  In file included from
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__memory/shared_ptr.h:42:


  In file included from
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/atomic:2668:


  In file included from
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/cmath:317:



  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/math.h:507:10:
  note: '__builtin_isless' declared here

    return __builtin_isless((type)__x, (type)__y);
           ^

  In file included from
  /Users/admin/Downloads/dcmtk-3.6.2/config/tests/arith.cc:45:

  In file included from
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/xmmintrin.h:17:



  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:37:25:
  error: too few arguments to function call, expected 2, have 0

      __builtin_ia32_emms();
      ~~~~~~~~~~~~~~~~~~~~^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:54:19:
  error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'

      return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:71:12:
  error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'

      return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
             ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:133:19:
  error: use of undeclared identifier '__builtin_ia32_packsswb'

      return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:163:19:
  error: use of undeclared identifier '__builtin_ia32_packssdw'

      return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:193:19:
  error: use of undeclared identifier '__builtin_ia32_packuswb'

      return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:220:19:
  error: use of undeclared identifier '__builtin_ia32_punpckhbw'

      return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:243:19:
  error: use of undeclared identifier '__builtin_ia32_punpckhwd'

      return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:264:19:
  error: use of undeclared identifier '__builtin_ia32_punpckhdq'

      return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:291:19:
  error: use of undeclared identifier '__builtin_ia32_punpcklbw'

      return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:314:19:
  error: use of undeclared identifier '__builtin_ia32_punpcklwd'

      return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:335:19:
  error: use of undeclared identifier '__builtin_ia32_punpckldq'

      return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:356:19:
  error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean
  '__builtin_arm_addg'?

      return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:356:19:
  note: '__builtin_arm_addg' declared here


  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:356:19:
  error: first argument of MTE builtin function must be a pointer ('__v8qi'
  (vector of 8 'char' values) invalid)

      return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                    ^                    ~~~~~~~~~~~~

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:377:19:
  error: use of undeclared identifier '__builtin_ia32_paddw'; did you mean
  '__builtin_arm_addg'?

      return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:356:19:
  note: '__builtin_arm_addg' declared here

      return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                    ^

  
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/mmintrin.h:377:19:
  error: first argument of MTE builtin function must be a pointer ('__v4hi'
  (vector of 4 'short' values) invalid)

      return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
                    ^                    ~~~~~~~~~~~~

  fatal error: too many errors emitted, stopping now [-ferror-limit=]

  20 errors generated.



  ** BUILD FAILED **





  The following build commands failed:

  	CompileC
  /Users/admin/Desktop/New2/CMakeTmp/Arith/CMakeFiles/CMakeTmp/build/cmTC_7132d.build/Release/Objects-normal/arm64/arith.o
  /Users/admin/Downloads/dcmtk-3.6.2/config/tests/arith.cc normal arm64 c++
  com.apple.compilers.llvm.clang.1_0.compiler (in target 'cmTC_7132d' from
  project 'CMAKE_TRY_COMPILE')

  (1 failure)



Call Stack (most recent call first):
  CMakeLists.txt:53 (INSPECT_FUNDAMENTAL_ARITHMETIC_TYPES)


Configuring incomplete, errors occurred!

Please help me to solve this

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1461
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Specific Character set issue

#5 Post by Marco Eichelberg »

It looks like you are trying to compile DCMTK 3.6.2 on MacOS for ARM. That platform is only supported since DCMTK 3.6.8.
DCMTK 3.6.2, which is from 2017, predates the existence of MacOS for ARM by several years.

annapurne.s
Posts: 12
Joined: Wed, 2024-01-31, 10:42

Re: Specific Character set issue

#6 Post by annapurne.s »

Hi, I am using convertCharacterSet function to convert the dataset like this

dataset->convertCharacterSet(specificCharacterSet.c_str(), "ISO_IR 192");

But it returns this warnings,

W: Failed to open oficonv data file '/usr/local/share/dcmtk-3.6.8/esdb/esdb/esdb.alias.db', check environment variable DCMICONVPATH
W: Failed to open oficonv data file '/usr/local/share/dcmtk-3.6.8/esdb/esdb/esdb.alias', check environment variable DCMICONVPATH
W: Failed to open oficonv data file '/usr/local/share/dcmtk-3.6.8/esdb/esdb/esdb.dir.db', check environment variable DCMICONVPATH
W: Failed to open oficonv data file '/usr/local/share/dcmtk-3.6.8/esdb/esdb/esdb.dir', check environment variable DCMICONVPATH

What is the issue, I checked permission and path all are correct but if i print the path of DCMICONVPATH using NSLog(@"DCMICONVPATH: %s", getenv("DCMICONVPATH")); it returns empty.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1461
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Specific Character set issue

#7 Post by Marco Eichelberg »

DCMTK expects the data files for character set conversion in a certain place, in your case, for example, there should be a file '/usr/local/share/dcmtk-3.6.8/esdb/esdb/esdb.alias.db''.
If you need to use a different path, you can use the environment variable DCMICONVPATH to point to that directory.

annapurne.s
Posts: 12
Joined: Wed, 2024-01-31, 10:42

Re: Specific Character set issue

#8 Post by annapurne.s »

Hi, i am now using OFICONV foe character encoding. It's work file.

I have another issue in SpecificCharacterSet,
If more than one value avilable in this how to handle for eg: \ISO 2022 IR 13\ISO 2022 IR 87, \ISO 2022 IR 149

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1461
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Specific Character set issue

#9 Post by Marco Eichelberg »

The underlying code in DCMTK should handle this case just fine. No special handling needed if you want to convert that to UTF-8 (ISO_IR 192). Note, however, that the other direction, i.e. conversion of Unicode into more than one target character set, is not supported in DCMTK.

annapurne.s
Posts: 12
Joined: Wed, 2024-01-31, 10:42

Re: Specific Character set issue

#10 Post by annapurne.s »

Thank you for quick reply, How to get the SpecificCharacterSet from dataset if multiple exists and if two values is present which one is need to consider the first one?

Is the ISO 2022 IR 13 this type of SpecificCharacterSet is supported by DCMTK?. If yes, it is supported by OFICONV or libiconv.

And one more Question dataset-> convertToUTF8() is supports for all?

and what is the warning means "W: DcmSpecificCharacterSet: Escape sequences shall not be used in the first component group of a Person Name (PN), using them anyway" is need to consider?

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1461
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Specific Character set issue

#11 Post by Marco Eichelberg »

How to get the SpecificCharacterSet from dataset if multiple exists and if two values is present which one is need to consider the first one
This is explained in detail in DICOM Part 5. In brief: Every attribute value that is subject to specific character set (e.g. attributes of the value representation SH, LO, ST, LT PN etc.) starts with the character set specified as the first value of (0008,0005) SpecificCharacterSet. Within the string, certain escape sequences defined in ISO 2022 can be used between letters to switch to the other character sets (and back).
Escape sequences shall not be used in the first component group of a Person Name (PN)
This means that your file violates the DICOM standard. DICOM part 5, section 6.2.1.2 states that "ISO/IEC 2022 escapes for Code Extension shall not be used in [the first] component group" for PN attributes.
DICOM PN attributes may contain up to three different versions of the same person name, in different alphabets, separated by "=" characters. The first one, called "alphabetic", always uses a variety of the Latin alphabet and is used for compatibility with systems that do not support, for example, Japanese Kanji characters. The second one, called "ideographic", defines the meaning of the name and in the case of Japanese is written in Kanji characters (i.e. the letters adopted from Chinese to Japanese). The third one, called "phonetic", defines the pronounciation of the name, and in the case of Japanese is written in Katakana characters. DICOM requires that the first alphabet specified in SpecificCharacterSet contains the ASCII characters as a subset, so there should be any need to ever use ISO/IEC 2022 escape sequences within the alphabetic component group.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1461
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Specific Character set issue

#12 Post by Marco Eichelberg »

convertToUTF8() should be able to convert all valid DICOM character sets to UTF-8 when using the oficonv library.
When using GNU libiconv and ICU, only a subset of character sets is supported. In particular, the ICU-based implementation in DCMTK will not support the character sets for Japanese.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 0 guests