How to solve the cmake configure error since the dcmtk-3.6.2 to dcmtk-3.6.7? Thanks

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
gaga
Posts: 4
Joined: Wed, 2022-11-30, 08:34

How to solve the cmake configure error since the dcmtk-3.6.2 to dcmtk-3.6.7? Thanks

#1 Post by gaga » Wed, 2022-11-30, 13:15

As we known, the dcmtk toolkit is very useful in medical image show. I am very happy to use it.
But I have some problem in compile dcmtk 3.6.7.
I want to compile the dcmtk on windows by cmake.

the infomation of my compile toolkit is as below.

Operation system: Microsoft Windows 10 Professional 10.0.19044 N/A Build 19044
CMake version: 3.25.0
Cmake : Visual Studio 17 2022 Community
CMakeSetup:Visual Studio 17 2022,the x64 platform, use the default native compilers.

There are many error in cmake, after I clicked the configure button.

Image
Image
Image
Image
Image
Image
Image

I found use visual studio 2010, cmake 2.8.2 to build the dcmtk-3.6.1_20170228 is success. But the Version of dcmtk-3.6.2, and the version after dcmtk-3.6.2 can not configure success.

I do my best to find why the errors occured. But I find no way.Please help me to slove this problem. Best wishes to you. :o :o

The log of I first click the configure button is like below.

Code: Select all

Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19044.
The C compiler identification is MSVC 19.34.31933.0
The CXX compiler identification is MSVC 19.34.31933.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - 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: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
Warning: XML support will be disabled because libxml2 directory is not specified. Correct path and re-enable DCMTK_WITH_XML.
Warning: PNG support will be disabled because libpng directory was not specified. Correct path and re-enable DCMTK_WITH_PNG.
Warning: TIFF support will be disabled because libtiff directory was not specified. Correct path and re-enable DCMTK_WITH_TIFF.
Warning: OPENSSL support will be disabled because openssl directory was not specified. Correct path and re-enable DCMTK_WITH_OPENSSL.
Warning: ZLIB support will be disabled because zlib directory was not specified. Correct path and re-enable DCMTK_WITH_ZLIB.
Warning: SNDFILE support will be disabled because libsndfile directory was not specified. Correct path and re-enable DCMTK_WITH_SNDFILE.
Warning: ICONV support will be disabled because libiconv directory was not specified. Correct path and re-enable DCMTK_WITH_ICONV.
Warning: OpenJPEG support will be disabled because openjpeg directory was not specified. Correct path and re-enable DCMTK_WITH_OPENJPEG.
Performing Test WITH_STDLIBC_ICONV
Performing Test WITH_STDLIBC_ICONV - Failed
Warning: ICU support will be disabled because the ICU were not found.
Warning: DOXYGEN support will be disabled because doxygen was not found.
Info: DCMTK will compile with built-in (compiled-in) default dictionary
Info: DCMTK will load dictionaries defined by DCMDICTPATH environment variable
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 without character set conversion support
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
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'D:/dcmtk-3.6.7-build/CMakeFiles/CheckTypeSize/SIZEOF_CHAR.bin'

  Recorded try_compile output location doesn't exist:

    D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-ie7oo5/Debug/cmTC_1feee.exe

Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
  CMake/GenerateDCMTKConfigure.cmake:186 (CHECK_TYPE_SIZE)
  CMake/dcmtkPrepare.cmake:625 (include)
  CMakeLists.txt:38 (include)


Check size of double
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'D:/dcmtk-3.6.7-build/CMakeFiles/CheckTypeSize/SIZEOF_DOUBLE.bin'

  Recorded try_compile output location doesn't exist:

    D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-aw2z49/Debug/cmTC_4e039.exe

Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
  CMake/GenerateDCMTKConfigure.cmake:187 (CHECK_TYPE_SIZE)
  CMake/dcmtkPrepare.cmake:625 (include)
  CMakeLists.txt:38 (include)


Check size of float
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'D:/dcmtk-3.6.7-build/CMakeFiles/CheckTypeSize/SIZEOF_FLOAT.bin'

  Recorded try_compile output location doesn't exist:

    D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-qvx2z4/Debug/cmTC_b2e20.exe

Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
  CMake/GenerateDCMTKConfigure.cmake:188 (CHECK_TYPE_SIZE)
  CMake/dcmtkPrepare.cmake:625 (include)
  CMakeLists.txt:38 (include)


Check size of int
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'D:/dcmtk-3.6.7-build/CMakeFiles/CheckTypeSize/SIZEOF_INT.bin'

  Recorded try_compile output location doesn't exist:

    D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-sh6wek/Debug/cmTC_c3727.exe

Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
  CMake/GenerateDCMTKConfigure.cmake:189 (CHECK_TYPE_SIZE)
  CMake/dcmtkPrepare.cmake:625 (include)
  CMakeLists.txt:38 (include)


Check size of long
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'D:/dcmtk-3.6.7-build/CMakeFiles/CheckTypeSize/SIZEOF_LONG.bin'

  Recorded try_compile output location doesn't exist:

    D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-pcd8y6/Debug/cmTC_bfa78.exe

Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
  CMake/GenerateDCMTKConfigure.cmake:190 (CHECK_TYPE_SIZE)
  CMake/dcmtkPrepare.cmake:625 (include)
  CMakeLists.txt:38 (include)


Check size of short
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'D:/dcmtk-3.6.7-build/CMakeFiles/CheckTypeSize/SIZEOF_SHORT.bin'

  Recorded try_compile output location doesn't exist:

    D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-otroi9/Debug/cmTC_276cb.exe

Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
  CMake/GenerateDCMTKConfigure.cmake:191 (CHECK_TYPE_SIZE)
  CMake/dcmtkPrepare.cmake:625 (include)
  CMakeLists.txt:38 (include)


Check size of void*
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'D:/dcmtk-3.6.7-build/CMakeFiles/CheckTypeSize/SIZEOF_VOID_P.bin'

  Recorded try_compile output location doesn't exist:

    D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-ejl2zc/Debug/cmTC_da07d.exe

Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
  CMake/GenerateDCMTKConfigure.cmake:192 (CHECK_TYPE_SIZE)
  CMake/dcmtkPrepare.cmake:625 (include)
  CMakeLists.txt:38 (include)


Looking for __FUNCTION__
Looking for __FUNCTION__ - found
Looking for __FUNCTION__
Looking for __FUNCTION__ - found
Looking for __PRETTY_FUNCTION__
Looking for __PRETTY_FUNCTION__ - not found
Looking for __PRETTY_FUNCTION__
Looking for __PRETTY_FUNCTION__ - not found
Looking for __func__
Looking for __func__ - found
Looking for __func__
Looking for __func__ - found
Looking for C++ include windows.h
Looking for C++ include windows.h - found
Looking for C++ include winsock.h
Looking for C++ include winsock.h - 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 - not 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 - not 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 - not found
Looking for C++ include malloc.h
Looking for C++ include malloc.h - 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 - 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 - not 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 - not found
Looking for C++ include new.h
Looking for C++ include new.h - found
Looking for C++ include pwd.h
Looking for C++ include pwd.h - not found
Looking for C++ include semaphore.h
Looking for C++ include semaphore.h - not 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 streambuf.h
Looking for C++ include streambuf.h - not found
Looking for C++ include strings.h
Looking for C++ include strings.h - not 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 - not found
Looking for C++ include sys/errno.h
Looking for C++ include sys/errno.h - not found
Looking for C++ include sys/dir.h
Looking for C++ include sys/dir.h - not found
Looking for C++ include sys/file.h
Looking for C++ include sys/file.h - not 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 - not found
Looking for C++ include sys/resource.h
Looking for C++ include sys/resource.h - not found
Looking for C++ include sys/select.h
Looking for C++ include sys/select.h - not found
Looking for C++ include sys/syscall.h
Looking for C++ include sys/syscall.h - not 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 - not 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 - found
Looking for C++ include sys/utsname.h
Looking for C++ include sys/utsname.h - not found
Looking for C++ include sys/wait.h
Looking for C++ include sys/wait.h - not found
Looking for C++ include sys/socket.h
Looking for C++ include sys/socket.h - not found
Looking for C++ include thread.h
Looking for C++ include thread.h - not found
Looking for C++ include process.h
Looking for C++ include process.h - 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 - not 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 - not 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 - not found
Looking for C++ include arpa/inet.h
Looking for C++ include arpa/inet.h - not 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 - not found
Looking for C++ include libc.h
Looking for C++ include libc.h - not 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 C++ include iterator
Looking for C++ include iterator - found
Looking for C++ include poll.h
Looking for C++ include poll.h - not found
Looking for include files sys/types.h, netinet/in_systm.h
Looking for include files sys/types.h, netinet/in_systm.h - not found
Looking for include files sys/types.h, netinet/in.h
Looking for include files sys/types.h, netinet/in.h - not found
Looking for include files sys/types.h, netinet/tcp.h
Looking for include files sys/types.h, netinet/tcp.h - not found
Looking for C++ include libpng/png.h
Looking for C++ include libpng/png.h - not found
Looking for connect
Looking for connect - found
Looking for accept
Looking for accept - found
Looking for access
Looking for access - found
Looking for atoll
Looking for atoll - found
Looking for bcmp
Looking for bcmp - not found
Looking for bcopy
Looking for bcopy - not found
Looking for bind
Looking for bind - 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 - not found
Looking for fork
Looking for fork - not found
Looking for fseeko
Looking for fseeko - not 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 - not found
Looking for getgrnam
Looking for getgrnam - not 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 - not found
Looking for getlogin
Looking for getlogin - not found
Looking for getlogin_r
Looking for getlogin_r - not found
Looking for getpid
Looking for getpid - found
Looking for getpwnam
Looking for getpwnam - not found
Looking for getrusage
Looking for getrusage - not found
Looking for getsockname
Looking for getsockname - found
Looking for getsockopt
Looking for getsockopt - found
Looking for gettimeofday
Looking for gettimeofday - not found
Looking for getuid
Looking for getuid - not found
Looking for gmtime_r
Looking for gmtime_r - not found
Looking for index
Looking for index - not found
Looking for isinf
Looking for isinf - found
Looking for isnan
Looking for isnan - found
Looking for itoa
Looking for itoa - found
Looking for listen
Looking for listen - found
Looking for localtime_r
Looking for localtime_r - not found
Looking for lockf
Looking for lockf - not found
Looking for lstat
Looking for lstat - not found
Looking for malloc_debug
Looking for malloc_debug - not 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 - not found
Looking for mktemp
Looking for mktemp - found
Looking for rindex
Looking for rindex - not found
Looking for select
Looking for select - found
Looking for setsockopt
Looking for setsockopt - found
Looking for setuid
Looking for setuid - not found
Looking for sleep
Looking for sleep - not 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 - not found
Looking for strlcpy
Looking for strlcpy - not 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 - not found
Looking for usleep
Looking for usleep - not found
Looking for wait3
Looking for wait3 - not found
Looking for waitpid
Looking for waitpid - not found
Looking for _findfirst
Looking for _findfirst - found
Looking for nanosleep
Looking for nanosleep - not found
Looking for prototype of feenableexcept
Looking for prototype of feenableexcept - not found.
Looking for prototype of isinf(0.)
Looking for prototype of isinf(0.) - found
Looking for prototype of isnan(0.)
Looking for prototype of isnan(0.) - found
Looking for prototype of finite
Looking for prototype of finite - not found.
Looking for prototype of std::isinf(0.)
Looking for prototype of std::isinf(0.) - found
Looking for prototype of std::isnan(0.)
Looking for prototype of std::isnan(0.) - 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 - not 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 - not found.
Looking for prototype of gethostname
Looking for prototype of gethostname - found
Looking for prototype of waitpid
Looking for prototype of waitpid - not found.
Looking for prototype of wait3
Looking for prototype of wait3 - not found.
Looking for prototype of usleep
Looking for prototype of usleep - not 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 - found
Looking for prototype of vfprintf_s
Looking for prototype of vfprintf_s - 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 - 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 - 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 - not found.
Looking for prototype of connect
Looking for prototype of connect - found
Looking for prototype of mkstemp
Looking for prototype of mkstemp - not 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 - not found.
Looking for prototype of strncasecmp
Looking for prototype of strncasecmp - not found.
Looking for prototype of strerror_r
Looking for prototype of strerror_r - not found.
Looking for prototype of SYS_gettid
Looking for prototype of SYS_gettid - not 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 - not found.
Looking for prototype of __sync_add_and_fetch((int*)0,0)
Looking for prototype of __sync_add_and_fetch((int*)0,0) - not found.
Looking for prototype of __sync_sub_and_fetch((int*)0,0)
Looking for prototype of __sync_sub_and_fetch((int*)0,0) - not found.
Looking for prototype of InterlockedIncrement((long*)0)
Looking for prototype of InterlockedIncrement((long*)0) - found
Looking for prototype of InterlockedDecrement((long*)0)
Looking for prototype of InterlockedDecrement((long*)0) - found
Looking for prototype of _fpclassf(0.0f)
Looking for prototype of _fpclassf(0.0f) - 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) - not 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) - not 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) - not found.
Looking for prototype of readdir_r((DIR*)0,(dirent*)0)
Looking for prototype of readdir_r((DIR*)0,(dirent*)0) - not found.
Looking for prototype of nanosleep
Looking for prototype of nanosleep - not found.
Looking for prototype of &passwd::pw_gecos
Looking for prototype of &passwd::pw_gecos - not found.
Looking for prototype of TryAcquireSRWLockShared((PSRWLOCK)0)
Looking for prototype of TryAcquireSRWLockShared((PSRWLOCK)0) - found
Looking for prototype of fp_except_t definition
Looking for prototype of fp_except_t definition - not 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 - not found.
Looking for prototype of uint definition
Looking for prototype of uint definition - not 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 char16_t definition
Looking for prototype of char16_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 - not found.
Looking for prototype of pclose
Looking for prototype of pclose - not found.
Looking for prototype of sigjmp_buf definition
Looking for prototype of sigjmp_buf definition - not found.
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 whether char is signed
Checking whether char is signed -- no
Checking signedness of char -- unsigned
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 -- no
Checking whether variable length arrays are supported
Checking whether variable length arrays are supported -- no
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
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'D:/dcmtk-3.6.7-build/CMakeFiles/CheckTypeSize/SIZEOF_FPOS_T.bin'

  Recorded try_compile output location doesn't exist:

    D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-ean6pu/Debug/cmTC_132a6.exe

Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
  CMake/GenerateDCMTKConfigure.cmake:992 (CHECK_TYPE_SIZE)
  CMake/GenerateDCMTKConfigure.cmake:1112 (DCMTK_CHECK_ENABLE_LFS)
  CMake/dcmtkPrepare.cmake:625 (include)
  CMakeLists.txt:38 (include)


Checking whether large file support (LFS) is available -- no
Info: Building DCMTK without large file support, files >4GB may be inaccesible!
Checking whether __alignof__ is supported
Checking whether __alignof__ is supported -- no
Checking whether __alignof is supported
Checking whether __alignof is supported -- yes
Checking whether __attribute__((aligned)) is supported
Checking whether __attribute__((aligned)) is supported -- no
Checking whether __attribute__((aligned)) supports templates
Checking whether __attribute__((aligned)) supports templates -- no
Checking whether __declspec(align) is supported
Checking whether __declspec(align) is supported -- yes
Checking whether the compiler supports default constructor detection via SFINAE
Checking whether the compiler supports default constructor detection via SFINAE -- no
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
Checking whether the compiler supports static_assert
Checking whether the compiler supports static_assert -- yes
Checking whether the compiler supports [[deprecated]]
Checking whether the compiler supports [[deprecated]] -- yes
Checking whether the compiler supports [[deprecated("message")]]
Checking whether the compiler supports [[deprecated("message")]] -- yes
Checking whether the compiler supports __attribute__((deprecated))
Checking whether the compiler supports __attribute__((deprecated)) -- no
Checking whether the compiler supports __attribute__((deprecated("message")))
Checking whether the compiler supports __attribute__((deprecated("message"))) -- no
Checking whether the compiler supports __declspec(deprecated)
Checking whether the compiler supports __declspec(deprecated) -- yes
Checking whether the compiler supports __declspec(deprecated("message"))
Checking whether the compiler supports __declspec(deprecated("message")) -- yes
Checking whether the iterator category input is declared
Checking whether the iterator category input is declared -- yes
Checking whether the iterator category output is declared
Checking whether the iterator category output is declared -- yes
Checking whether the iterator category forward is declared
Checking whether the iterator category forward is declared -- yes
Checking whether the iterator category bidirectional is declared
Checking whether the iterator category bidirectional is declared -- yes
Checking whether the iterator category random_access is declared
Checking whether the iterator category random_access is declared -- yes
Checking whether the iterator category contiguous is declared
Checking whether the iterator category contiguous is declared -- no
Info: C++11 features disabled
Info: C++14 features disabled
Info: C++17 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 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:1436 (message):
  Change Dir: D:/dcmtk-3.6.7-build/CMakeTmp/Arith/CMakeFiles/CMakeTmp

  

  Run Build Command(s):C:/Program Files/Microsoft Visual
  Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe
  cmTC_ca2b4.vcxproj /p:Configuration=Release /p:Platform=x64
  /p:VisualStudioVersion=17.0 /v:m && MSBuild version 17.4.0+18d5aef85 for
  .NET Framework


    Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31933 for x64

    arith.cc

    Copyright (C) Microsoft Corporation.  All rights reserved.

    cl /c /I"D:\dcmtk-3.6.7-build\config\include" /I"D:\dcmtk-3.6.7\ofstd\include" /I"D:\dcmtk-3.6.7\ofstd\libsrc" /W1 /WX- /diagnostics:column /O2 /Ob2 /D _MBCS /D WIN32 /D _WINDOWS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /EHsc /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_ca2b4.dir\Release\\" /Fd"cmTC_ca2b4.dir\Release\vc143.pdb" /external:W1 /Gd /TP /errorReport:queue "D:\dcmtk-3.6.7\config\tests\arith.cc"


  D:\dcmtk-3.6.7\ofstd\include\dcmtk/ofstd/oftypes.h(174,1): fatal error
  C1189: #error: Unsupported platform (invalid pointer size)
  [D:\dcmtk-3.6.7-build\CMakeTmp\Arith\CMakeFiles\CMakeTmp\cmTC_ca2b4.vcxproj]



  

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


Configuring incomplete, errors occurred!
See also "D:/dcmtk-3.6.7-build/CMakeFiles/CMakeOutput.log".
See also "D:/dcmtk-3.6.7-build/CMakeFiles/CMakeError.log".


The cmake log when i second click the click the configure button is as below

Code: Select all

Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19044.
Info: DCMTK will compile with built-in (compiled-in) default dictionary
Info: DCMTK will load dictionaries defined by DCMDICTPATH environment variable
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 without character set conversion support
Info: Building DCMTK without large file support, files >4GB may be inaccesible!
Info: C++11 features disabled
Info: C++14 features disabled
Info: C++17 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
CMake Error at CMake/GenerateDCMTKConfigure.cmake:1436 (message):
  Change Dir: D:/dcmtk-3.6.7-build/CMakeTmp/Arith/CMakeFiles/CMakeTmp

  

  Run Build Command(s):C:/Program Files/Microsoft Visual
  Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe
  cmTC_bfe4a.vcxproj /p:Configuration=Release /p:Platform=x64
  /p:VisualStudioVersion=17.0 /v:m && MSBuild version 17.4.0+18d5aef85 for
  .NET Framework


    Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31933 for x64

    arith.cc

    Copyright (C) Microsoft Corporation.  All rights reserved.

    cl /c /I"D:\dcmtk-3.6.7-build\config\include" /I"D:\dcmtk-3.6.7\ofstd\include" /I"D:\dcmtk-3.6.7\ofstd\libsrc" /W1 /WX- /diagnostics:column /O2 /Ob2 /D _MBCS /D WIN32 /D _WINDOWS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /EHsc /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_bfe4a.dir\Release\\" /Fd"cmTC_bfe4a.dir\Release\vc143.pdb" /external:W1 /Gd /TP /errorReport:queue "D:\dcmtk-3.6.7\config\tests\arith.cc"


  D:\dcmtk-3.6.7\ofstd\include\dcmtk/ofstd/oftypes.h(174,1): fatal error
  C1189: #error: Unsupported platform (invalid pointer size)
  [D:\dcmtk-3.6.7-build\CMakeTmp\Arith\CMakeFiles\CMakeTmp\cmTC_bfe4a.vcxproj]



  

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


Configuring incomplete, errors occurred!
See also "D:/dcmtk-3.6.7-build/CMakeFiles/CMakeOutput.log".
See also "D:/dcmtk-3.6.7-build/CMakeFiles/CMakeError.log".
The CmakeCache.txt is as below

Code: Select all

# This is the CMakeCache file.
# For build in directory: d:/dcmtk-3.6.7-build
# It was generated by CMake: C:/Program Files/CMake/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Build command line applications and test programs.
BUILD_APPS:BOOL=ON

//Build with shared libraries.
BUILD_SHARED_LIBS:BOOL=OFF

//Build a single DCMTK library.
BUILD_SINGLE_SHARED_LIBRARY:BOOL=OFF

//Path to a program.
CMAKE_AR:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/lib.exe

//Semicolon separated list of supported configuration types, only
// supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything
// else will be ignored.
CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release;MinSizeRel;RelWithDebInfo

//msvc compiler flags
CMAKE_CXX_FLAGS:STRING=/DWIN32 /D_WINDOWS /W3 /GR /EHsc

//msvc compiler flags
CMAKE_CXX_FLAGS_DEBUG:STRING=/MTd /Zi /Ob0 /Od /RTC1

//msvc compiler flags
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=/MT /O1 /Ob1 /DNDEBUG

//msvc compiler flags
CMAKE_CXX_FLAGS_RELEASE:STRING=/MT /O2 /Ob2 /DNDEBUG

//msvc compiler flags
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=/MT /Zi /O2 /Ob1 /DNDEBUG

//Libraries linked by default with all C++ applications.
CMAKE_CXX_STANDARD_LIBRARIES:STRING=kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib

//msvc compiler flags
CMAKE_C_FLAGS:STRING=/DWIN32 /D_WINDOWS /W3

//msvc compiler flags
CMAKE_C_FLAGS_DEBUG:STRING=/MTd /Zi /Ob0 /Od /RTC1

//msvc compiler flags
CMAKE_C_FLAGS_MINSIZEREL:STRING=/MT /O1 /Ob1 /DNDEBUG

//msvc compiler flags
CMAKE_C_FLAGS_RELEASE:STRING=/MT /O2 /Ob2 /DNDEBUG

//msvc compiler flags
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=/MT /Zi /O2 /Ob1 /DNDEBUG

//Libraries linked by default with all C applications.
CMAKE_C_STANDARD_LIBRARIES:STRING=kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib

//Library postfix for debug builds. Usually left blank.
CMAKE_DEBUG_POSTFIX:STRING=

//Flags used by the linker during all build types.
CMAKE_EXE_LINKER_FLAGS:STRING=/machine:x64

//Flags used by the linker during DEBUG builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL

//Flags used by the linker during MINSIZEREL builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

//Flags used by the linker during RELEASE builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during RELWITHDEBINFO builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

//Value Computed by CMake.
CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=D:/dcmtk-3.6.7-build/CMakeFiles/pkgRedirects

//User executables (bin)
CMAKE_INSTALL_BINDIR:PATH=bin

//Read-only architecture-independent data (DATAROOTDIR)
CMAKE_INSTALL_DATADIR:PATH=

//Read-only architecture-independent data root (share)
CMAKE_INSTALL_DATAROOTDIR:PATH=share

//Documentation root (DATAROOTDIR/doc/PROJECT_NAME)
CMAKE_INSTALL_DOCDIR:PATH=

//C header files (include)
CMAKE_INSTALL_INCLUDEDIR:PATH=include

//Info documentation (DATAROOTDIR/info)
CMAKE_INSTALL_INFODIR:PATH=

//Object code libraries (lib)
CMAKE_INSTALL_LIBDIR:PATH=lib

//Program executables (libexec)
CMAKE_INSTALL_LIBEXECDIR:PATH=libexec

//Locale-dependent data (DATAROOTDIR/locale)
CMAKE_INSTALL_LOCALEDIR:PATH=

//Modifiable single-machine data (var)
CMAKE_INSTALL_LOCALSTATEDIR:PATH=var

//Man documentation (DATAROOTDIR/man)
CMAKE_INSTALL_MANDIR:PATH=

//C header files for non-gcc (/usr/include)
CMAKE_INSTALL_OLDINCLUDEDIR:PATH=/usr/include

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/DCMTK

//Run-time variable data (LOCALSTATEDIR/run)
CMAKE_INSTALL_RUNSTATEDIR:PATH=

//System admin executables (sbin)
CMAKE_INSTALL_SBINDIR:PATH=sbin

//Modifiable architecture-independent data (com)
CMAKE_INSTALL_SHAREDSTATEDIR:PATH=com

//Read-only single-machine data (etc)
CMAKE_INSTALL_SYSCONFDIR:PATH=etc

//Path to a program.
CMAKE_LINKER:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/link.exe

//Flags used by the linker during the creation of modules during
// all build types.
CMAKE_MODULE_LINKER_FLAGS:STRING=/machine:x64

//Flags used by the linker during the creation of modules during
// DEBUG builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL

//Flags used by the linker during the creation of modules during
// MINSIZEREL builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

//Flags used by the linker during the creation of modules during
// RELEASE builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during the creation of modules during
// RELWITHDEBINFO builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

//Path to a program.
CMAKE_MT:FILEPATH=CMAKE_MT-NOTFOUND

//Value Computed by CMake
CMAKE_PROJECT_DESCRIPTION:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=DCMTK

//RC compiler
CMAKE_RC_COMPILER:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/SDK/ScopeCppSDK/vc15/VC/bin/rc.exe

//Flags for Windows Resource Compiler during all build types.
CMAKE_RC_FLAGS:STRING=-DWIN32

//Flags for Windows Resource Compiler during DEBUG builds.
CMAKE_RC_FLAGS_DEBUG:STRING=-D_DEBUG

//Flags for Windows Resource Compiler during MINSIZEREL builds.
CMAKE_RC_FLAGS_MINSIZEREL:STRING=

//Flags for Windows Resource Compiler during RELEASE builds.
CMAKE_RC_FLAGS_RELEASE:STRING=

//Flags for Windows Resource Compiler during RELWITHDEBINFO builds.
CMAKE_RC_FLAGS_RELWITHDEBINFO:STRING=

//Flags used by the linker during the creation of shared libraries
// during all build types.
CMAKE_SHARED_LINKER_FLAGS:STRING=/machine:x64

//Flags used by the linker during the creation of shared libraries
// during DEBUG builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL

//Flags used by the linker during the creation of shared libraries
// during MINSIZEREL builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

//Flags used by the linker during the creation of shared libraries
// during RELEASE builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during the creation of shared libraries
// during RELWITHDEBINFO builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=OFF

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=OFF

//Flags used by the linker during the creation of static libraries
// during all build types.
CMAKE_STATIC_LINKER_FLAGS:STRING=/machine:x64

//Flags used by the linker during the creation of static libraries
// during DEBUG builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of static libraries
// during MINSIZEREL builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of static libraries
// during RELEASE builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of static libraries
// during RELWITHDEBINFO builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=OFF

//Value Computed by CMake
DCMTK_BINARY_DIR:STATIC=D:/dcmtk-3.6.7-build

//Compile DCMTK using the Multithreaded DLL runtime library.
DCMTK_COMPILE_WIN32_MULTITHREADED_DLL:BOOL=OFF

//Denotes whether DCMTK will use built-in (compiled-in), external
// (file), or no default dictionary on startup
DCMTK_DEFAULT_DICT:STRING=builtin

//Select character set conversion implementation.
DCMTK_ENABLE_CHARSET_CONVERSION:STRING=<disabled>

//Enable use of native C++11 features (eg. move semantics).
DCMTK_ENABLE_CXX11:STRING=INFERRED

//whether to use lfs/lfs64 or not
DCMTK_ENABLE_LFS:STRING=off

//Enable building/installing of manpages.
DCMTK_ENABLE_MANPAGES:BOOL=OFF

//Configure DCMTK with support for DICOM private tags coming with
// DCMTK.
DCMTK_ENABLE_PRIVATE_TAGS:BOOL=OFF

//Enable use of native STL classes and algorithms instead of DCMTK's
// own implementations.
DCMTK_ENABLE_STL:BOOL=OFF

//Enable use of STL algorithm.
DCMTK_ENABLE_STL_ALGORITHM:STRING=INFERRED

//Enable use of STL limit.
DCMTK_ENABLE_STL_LIMITS:STRING=INFERRED

//Enable use of STL list.
DCMTK_ENABLE_STL_LIST:STRING=INFERRED

//Enable use of STL map.
DCMTK_ENABLE_STL_MAP:STRING=INFERRED

//Enable use of STL memory.
DCMTK_ENABLE_STL_MEMORY:STRING=INFERRED

//Enable use of STL stack.
DCMTK_ENABLE_STL_STACK:STRING=INFERRED

//Enable use of STL string.
DCMTK_ENABLE_STL_STRING:STRING=INFERRED

//Enable use of STL system_error.
DCMTK_ENABLE_STL_SYSTEM_ERROR:STRING=INFERRED

//Enable use of STL tuple.
DCMTK_ENABLE_STL_TUPLE:STRING=INFERRED

//Enable use of STL type traits.
DCMTK_ENABLE_STL_TYPE_TRAITS:STRING=INFERRED

//Enable use of STL vector.
DCMTK_ENABLE_STL_VECTOR:STRING=INFERRED

//Generate a tag file with DOXYGEN.
DCMTK_GENERATE_DOXYGEN_TAGFILE:BOOL=OFF

//Value Computed by CMake
DCMTK_IS_TOP_LEVEL:STATIC=ON

//Statically link all libraries and tools with the runtime and
// third party libraries.
DCMTK_LINK_STATIC:BOOL=OFF

//List of modules that should be built.
DCMTK_MODULES:STRING=ofstd;oflog;dcmdata;dcmimgle;dcmimage;dcmjpeg;dcmjpls;dcmtls;dcmnet;dcmsr;dcmsign;dcmwlm;dcmqrdb;dcmpstat;dcmrt;dcmiod;dcmfg;dcmseg;dcmtract;dcmpmap;dcmect

//Modify the default compiler flags selected by CMake.
DCMTK_OVERWRITE_WIN32_COMPILER_FLAGS:BOOL=ON

//Create ELF binaries while statically linking all third party
// libraries and libstdc++.
DCMTK_PORTABLE_LINUX_BINARIES:BOOL=OFF

//Value Computed by CMake
DCMTK_SOURCE_DIR:STATIC=D:/dcmtk-3.6.7

//The directory to search for precompiled DCMTK support libraries.
DCMTK_SUPPORT_LIBRARIES_DIR:PATH=D:/

//Postfix for libraries that change their ABI when using OpenSSL.
DCMTK_TLS_LIBRARY_POSTFIX:STRING=

//Enable reading dictionary that is defined through DCMDICTPATH
// environment variable.
DCMTK_USE_DCMDICTPATH:BOOL=ON

//Control whether libraries are searched via CMake's find_package()
// mechanism or a Windows specific fallback
DCMTK_USE_FIND_PACKAGE:BOOL=FALSE

//Build with wide char file I/O functions.
DCMTK_WIDE_CHAR_FILE_IO_FUNCTIONS:BOOL=OFF

//Build command line tools with wide char main function.
DCMTK_WIDE_CHAR_MAIN_FUNCTION:BOOL=OFF

DCMTK_WITH_DOXYGEN:BOOL=OFF

DCMTK_WITH_ICONV:BOOL=OFF

DCMTK_WITH_ICU:BOOL=OFF

DCMTK_WITH_OPENJPEG:BOOL=OFF

DCMTK_WITH_OPENSSL:BOOL=OFF

DCMTK_WITH_PNG:BOOL=OFF

DCMTK_WITH_SNDFILE:BOOL=OFF

DCMTK_WITH_STDLIBC_ICONV:BOOL=OFF

//Configure DCMTK with support for multi-threading.
DCMTK_WITH_THREADS:BOOL=ON

DCMTK_WITH_TIFF:BOOL=OFF

DCMTK_WITH_XML:BOOL=OFF

DCMTK_WITH_ZLIB:BOOL=OFF

//Dot tool for use with Doxygen
DOXYGEN_DOT_EXECUTABLE:FILEPATH=DOXYGEN_DOT_EXECUTABLE-NOTFOUND

//Doxygen documentation generation tool (https://www.doxygen.nl)
DOXYGEN_EXECUTABLE:FILEPATH=DOXYGEN_EXECUTABLE-NOTFOUND

//ICU data library (debug)
ICU_DATA_LIBRARY_DEBUG:FILEPATH=ICU_DATA_LIBRARY_DEBUG-NOTFOUND

//ICU data library (release)
ICU_DATA_LIBRARY_RELEASE:FILEPATH=ICU_DATA_LIBRARY_RELEASE-NOTFOUND

//ICU derb executable
ICU_DERB_EXECUTABLE:FILEPATH=ICU_DERB_EXECUTABLE-NOTFOUND

//ICU genbrk executable
ICU_GENBRK_EXECUTABLE:FILEPATH=ICU_GENBRK_EXECUTABLE-NOTFOUND

//ICU genccode executable
ICU_GENCCODE_EXECUTABLE:FILEPATH=ICU_GENCCODE_EXECUTABLE-NOTFOUND

//ICU gencfu executable
ICU_GENCFU_EXECUTABLE:FILEPATH=ICU_GENCFU_EXECUTABLE-NOTFOUND

//ICU gencmn executable
ICU_GENCMN_EXECUTABLE:FILEPATH=ICU_GENCMN_EXECUTABLE-NOTFOUND

//ICU gencnval executable
ICU_GENCNVAL_EXECUTABLE:FILEPATH=ICU_GENCNVAL_EXECUTABLE-NOTFOUND

//ICU gendict executable
ICU_GENDICT_EXECUTABLE:FILEPATH=ICU_GENDICT_EXECUTABLE-NOTFOUND

//ICU gennorm2 executable
ICU_GENNORM2_EXECUTABLE:FILEPATH=ICU_GENNORM2_EXECUTABLE-NOTFOUND

//ICU genrb executable
ICU_GENRB_EXECUTABLE:FILEPATH=ICU_GENRB_EXECUTABLE-NOTFOUND

//ICU gensprep executable
ICU_GENSPREP_EXECUTABLE:FILEPATH=ICU_GENSPREP_EXECUTABLE-NOTFOUND

//ICU icu-config executable
ICU_ICU-CONFIG_EXECUTABLE:FILEPATH=ICU_ICU-CONFIG_EXECUTABLE-NOTFOUND

//ICU icuinfo executable
ICU_ICUINFO_EXECUTABLE:FILEPATH=ICU_ICUINFO_EXECUTABLE-NOTFOUND

//ICU icupkg executable
ICU_ICUPKG_EXECUTABLE:FILEPATH=ICU_ICUPKG_EXECUTABLE-NOTFOUND

//ICU include directory
ICU_INCLUDE_DIR:PATH=ICU_INCLUDE_DIR-NOTFOUND

//ICU makeconv executable
ICU_MAKECONV_EXECUTABLE:FILEPATH=ICU_MAKECONV_EXECUTABLE-NOTFOUND

//ICU Makefile.inc data file
ICU_MAKEFILE_INC:FILEPATH=ICU_MAKEFILE_INC-NOTFOUND

//ICU pkgdata executable
ICU_PKGDATA_EXECUTABLE:FILEPATH=ICU_PKGDATA_EXECUTABLE-NOTFOUND

//ICU pkgdata.inc data file
ICU_PKGDATA_INC:FILEPATH=ICU_PKGDATA_INC-NOTFOUND

//ICU uconv executable
ICU_UCONV_EXECUTABLE:FILEPATH=ICU_UCONV_EXECUTABLE-NOTFOUND

//ICU uc library (debug)
ICU_UC_LIBRARY_DEBUG:FILEPATH=ICU_UC_LIBRARY_DEBUG-NOTFOUND

//ICU uc library (release)
ICU_UC_LIBRARY_RELEASE:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/SDK/ScopeCppSDK/vc15/SDK/lib/icuuc.lib

//Path to a file.
WITH_LIBICONVINC:PATH=WITH_LIBICONVINC-NOTFOUND

//Path to a file.
WITH_LIBPNGINC:PATH=WITH_LIBPNGINC-NOTFOUND

//Path to a file.
WITH_LIBTIFFINC:PATH=WITH_LIBTIFFINC-NOTFOUND

//Path to a file.
WITH_LIBXMLINC:PATH=WITH_LIBXMLINC-NOTFOUND

//Path to a file.
WITH_OPENJPEGINC:PATH=WITH_OPENJPEGINC-NOTFOUND

//Path to a file.
WITH_OPENSSLINC:PATH=WITH_OPENSSLINC-NOTFOUND

//Path to a file.
WITH_SNDFILEINC:PATH=WITH_SNDFILEINC-NOTFOUND

//Path to a file.
WITH_ZLIBINC:PATH=WITH_ZLIBINC-NOTFOUND


########################
# INTERNAL cache entries
########################

//__attribute__((aligned)) supports templates
ATTRIBUTE_ALIGNED_SUPPORTS_TEMPLATES:INTERNAL=0
//ADVANCED property for variable: BUILD_SINGLE_SHARED_LIBRARY
BUILD_SINGLE_SHARED_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=d:/dcmtk-3.6.7-build
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=25
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=0
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cmake.exe
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cpack.exe
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=C:/Program Files/CMake/bin/ctest.exe
//Result of TRY_COMPILE
CMAKE_CXX_ABI_COMPILED:INTERNAL=TRUE
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES
CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_STANDARD_LIBRARIES
CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_DEBUG_POSTFIX
CMAKE_DEBUG_POSTFIX-ADVANCED:INTERNAL=1
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Visual Studio 17 2022
//Generator instance identifier.
CMAKE_GENERATOR_INSTANCE:INTERNAL=C:/Program Files/Microsoft Visual Studio/2022/Community
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this

The Part CMakeError.log as below

Code: Select all

Performing C++ SOURCE FILE Test WITH_STDLIBC_ICONV failed with the following output:
Change Dir: D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-96ih8x

Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_4d079.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && MSBuild version 17.4.0+18d5aef85 for .NET Framework

  Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31933 for x64

  src.cxx

  Copyright (C) Microsoft Corporation.  All rights reserved.

  cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D DEBUG /D WITH_STDLIBC_ICONV /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MTd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_4d079.dir\Debug\\" /Fd"cmTC_4d079.dir\Debug\vc143.pdb" /external:W1 /Gd /TP /errorReport:queue "D:\dcmtk-3.6.7-build\CMakeFiles\CMakeScratch\TryCompile-96ih8x\src.cxx"

D:\dcmtk-3.6.7-build\CMakeFiles\CMakeScratch\TryCompile-96ih8x\src.cxx(1,10): fatal  error C1083: Cannot open include file: 'iconv.h': No such file or directory [D:\dcmtk-3.6.7-build\CMakeFiles\CMakeScratch\TryCompile-96ih8x\cmTC_4d079.vcxproj]



Source file was:
#include <iconv.h>
int main(){iconv_t cd = iconv_open("","");iconv(cd,0,0,0,0);iconv_close(cd);return 0;}

Determining if the __PRETTY_FUNCTION__ exist failed with the following output:
Change Dir: D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-zox76x

Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_852b9.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && MSBuild version 17.4.0+18d5aef85 for .NET Framework

  Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31933 for x64

  CheckSymbolExists.c

D:\dcmtk-3.6.7-build\CMakeFiles\CMakeScratch\TryCompile-zox76x\CheckSymbolExists.c(7,38): error C2065: '__PRETTY_FUNCTION__': undeclared identifier [D:\dcmtk-3.6.7-build\CMakeFiles\CMakeScratch\TryCompile-zox76x\cmTC_852b9.vcxproj]

  Copyright (C) Microsoft Corporation.  All rights reserved.

  cl /c /W1 /WX- /diagnostics:column /O2 /Ob2 /D _MBCS /D WIN32 /D _WINDOWS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_852b9.dir\Release\\" /Fd"cmTC_852b9.dir\Release\vc143.pdb" /external:W1 /Gd /TC /errorReport:queue "D:\dcmtk-3.6.7-build\CMakeFiles\CMakeScratch\TryCompile-zox76x\CheckSymbolExists.c"



File CheckSymbolExists.c:
/* */

int main(int argc, char** argv)
{
  (void)argv;
#ifndef __PRETTY_FUNCTION__
  return ((int*)(&__PRETTY_FUNCTION__))[argc];
#else
  (void)argc;
  return 0;
#endif
}
Determining if the __PRETTY_FUNCTION__ exist failed with the following output:
Change Dir: D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-1n8vic

Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_91df2.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && MSBuild version 17.4.0+18d5aef85 for .NET Framework

  Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31933 for x64

  CheckSymbolExists.cxx

  Copyright (C) Microsoft Corporation.  All rights reserved.

  cl /c /W1 /WX- /diagnostics:column /O2 /Ob2 /D _MBCS /D WIN32 /D _WINDOWS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /EHsc /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_91df2.dir\Release\\" /Fd"cmTC_91df2.dir\Release\vc143.pdb" /external:W1 /Gd /TP /errorReport:queue "D:\dcmtk-3.6.7-build\CMakeFiles\CMakeScratch\TryCompile-1n8vic\CheckSymbolExists.cxx"

D:\dcmtk-3.6.7-build\CMakeFiles\CMakeScratch\TryCompile-1n8vic\CheckSymbolExists.cxx(7,19): error C2065: '__PRETTY_FUNCTION__': undeclared identifier [D:\dcmtk-3.6.7-build\CMakeFiles\CMakeScratch\TryCompile-1n8vic\cmTC_91df2.vcxproj]



File CheckSymbolExists.cxx:
/* */

int main(int argc, char** argv)
{
  (void)argv;
#ifndef __PRETTY_FUNCTION__
  return ((int*)(&__PRETTY_FUNCTION__))[argc];
#else
  (void)argc;
  return 0;
#endif
}
Determining if the include file dirent.h exists failed with the following output:
Change Dir: D:/dcmtk-3.6.7-build/CMakeFiles/CMakeScratch/TryCompile-vu57qi

Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_21bc6.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && MSBuild version 17.4.0+18d5aef85 for .NET Framework

  Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31933 for x64

  CheckIncludeFile.cxx

  Copyright (C) Microsoft Corporation.  All rights reserved.

  cl /c /W1 /WX- /diagnostics:column /O2 /Ob2 /D _MBCS /D WIN32 /D _WINDOWS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /EHsc /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_21bc6.dir\Release\\" /Fd"cmTC_21bc6.dir\Release\vc143.pdb" /external:W1 /Gd /TP /errorReport:queue "D:\dcmtk-3.6.7-build\CMakeFiles\CMakeScratch\TryCompile-vu57qi\CheckIncludeFile.cxx"
Last edited by gaga on Fri, 2022-12-02, 03:07, edited 1 time in total.

gaga
Posts: 4
Joined: Wed, 2022-11-30, 08:34

Re: How to solve the cmake configure error since the dcmtk-3.6.2. Thanks

#2 Post by gaga » Fri, 2022-12-02, 03:03

Hello

I solved this problem just use CMake 3.25.1 to configure and generate.

What I do in CMake 3.25.1 is totally same as what I do In CMake 3.25.0.

I thought this may be a bug(or feature?) of CMake.

Thank you all.

Michael Onken
DCMTK Developer
Posts: 1933
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: How to solve the cmake configure error since the dcmtk-3.6.2 to dcmtk-3.6.7? Thanks

#3 Post by Michael Onken » Fri, 2022-12-02, 09:48

Hi,

i never saw this behaviour. Did you use the same build dir for the CMake 3.5.1 build? The only idea I had was that you were not allowed to write to the build directory (where DCMTK CMake files will create a file during the "Configure" step, and also later on on "Generate" of course).

If it is really a problem with 3.5.0 it's good you reported it so we and other users know now :-)

By the way: Just try using an up-to-date version of CMake. When DCMTK 3.6.2 was released, at least CMake version 3.7.2 was already available. Also, try to use an up-to-date DCMTK version (3.6.7 right now) as well.

Best regards,
Michael

gaga
Posts: 4
Joined: Wed, 2022-11-30, 08:34

Re: How to solve the cmake configure error since the dcmtk-3.6.2 to dcmtk-3.6.7? Thanks

#4 Post by gaga » Fri, 2022-12-02, 11:51

Hi, dear Mr. Michael.

May be the picture below can show what I do.(If you can't see the picture below, please leave me a message, I will replace a image hosting.)

As the picture show, I make a folder named "cmake" at D disk. And download cmake source, cmake binary, and the most important, the dcmtk source from official websize.

The folder I make for building "dcmtk-DCMTK-3.6.7" the is "dcmtk-DCMTK-3.6.7-use-cmake-3.25.0-windows-x86_64-build" for cmake-3.25.0 and "dcmtk-DCMTK-3.6.7-use-cmake-3.25.1-windows-x86_64-build" for cmake-3.25.1.

The build(exactly is configure) result is that I show in this topic, that cmake-3.25.0 failed and cmake-3.25.1 success. All with Windows 10 x64 professional editon and visual studio 2022 community.

I tryed from dcmtk-3.6.2 to dcmtk-3.6.7, all configure failed by cmake-3.25.0.

But dcmtk-3.6.1_20170228 can be configure success by cmake-3.25.0.

The most amazing thing is that I can use cmake-2.8.3(With visual studio 2010) to configure dcmtk-3.6.2 success. The dcmtk-3.6.2 can't configure success even in cmake-3.25.0.But some other source need newer cmake, so I cann't use cmake-2.8.3 long time.

I even try to new install windows and visual studio from 2010 to visual studio 2019. Use CMake-3.25.0 in configure dcmtk-DCMTK-3.6.7 all failed.

Fortunately, Cmake-3.25.1 is released at 2022-11-30.

So I try to use Cmake-3.25.1 to confirure and generate the dcmtk-DCMTK-3.6.7 success. And also compile success with visual studio 2022.

I compare the source of Cmake-3.25.1 and Cmake-3.25.0.

I found that the file "CheckTypeSize.cmake" has tiny difference as the picture show below.

This file is very important in checksize, I think may be this caused.

That's all I do. May be you can try to build dcmtk-DCMTK-3.6.7 with cmake-3.25.0 and cmake-3.25.1 to judge what I said if you have time.

Thank you very much.

Image

Michael Onken
DCMTK Developer
Posts: 1933
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: How to solve the cmake configure error since the dcmtk-3.6.2 to dcmtk-3.6.7? Thanks

#5 Post by Michael Onken » Thu, 2022-12-15, 10:17

Hi,

sorry for the waiting time; actually I think it's just a CMake bug that has been fixed meanwhile, so I don't think it's worth to care about that specific CMake version. However, thank you for taking time to analyze this! I guess users with a similar problem can benefit from it.

Best regards,
Michael

gaga
Posts: 4
Joined: Wed, 2022-11-30, 08:34

Re: How to solve the cmake configure error since the dcmtk-3.6.2 to dcmtk-3.6.7? Thanks

#6 Post by gaga » Sat, 2022-12-17, 16:29

Thank you, Mr. Michael.

Best wishes to you.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest