尝试使用 openssl 构建 dcmtk

Trying to build dcmtk with openssl

我正在尝试使用最新的 cmake GUI 构建 dcmtk 版本 3.6.5。如果我不包括 openssl 支持,我可以很好地构建东西。尝试使用 openssl 支持进行构建时,我收到以下消息:

Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
Performing Test OPENSSL_VERSION_CHECK
Performing Test OPENSSL_VERSION_CHECK - Success
Info: DCMTK OPENSSL support will be enabled
Info: DCMTK will compile with 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 enabled
Info: Wide char main function for command line tools will be disabled
Info: Building DCMTK without character set conversion support

CMake Error at CMake/CheckFunctionWithHeaderExists.cmake:16 (set):
      Syntax error in cmake code at
    
        C:/Users/SCHEFJX2/Desktop/DCMTK Conversion/3.6.5/dcmtk-3.6.5/CMake/CheckFunctionWithHeaderExists.cmake:17
    
      when parsing string
    
        -DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES};crypt32;debug;C:\openssl-1.1.1i/lib/dcmtkssl_d.lib;optimized;C:\openssl-1.1.1i/lib/dcmtkssl_o.lib;debug;C:\openssl-1.1.1i/lib/dcmtkcrypto_d.lib;optimized;C:\openssl-1.1.1i/lib/dcmtkcrypto_o.lib
    
      Invalid character escape '\o'.
    Call Stack (most recent call first):
      CMake/GenerateDCMTKConfigure.cmake:707 (CHECK_FUNCTIONWITHHEADER_EXISTS)
      CMake/dcmtkPrepare.cmake:516 (include)
      CMakeLists.txt:22 (include)

我将 WITHOPENSSLINC 设置为 C:\openssl-1.1.1i 我把dcmtk 3.6.6目录下的openssl 1.1.1复制到C:\openssl-1.1.1i(我有3.6.6的版本但是不让用)

其他信息: Windows 10 Visual Studio 2017

有什么建议吗?

无论谁决定目录规范应该有两种类型的斜线并且不是所有程序都支持这两种斜线,希望在地狱里烤。

问题是 WITHOPENSSLINC 必须使用正斜杠而不是反斜杠。

问题已解决