【发布时间】:2021-08-04 23:27:02
【问题描述】:
我正在尝试使用最新的 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版本,但是不能用)
其他信息: 视窗 10 视觉工作室 2017
有什么建议吗?
【问题讨论】:
-
这看起来不喜欢反斜杠。尝试使用正斜杠作为路径分隔符(只是猜测),例如
C:/OpenSSL....