我正在尝试使用最新的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我将openssl 1.1.1从dcmtk 3.6.6目录复制到C:\openssl-1.1.1i (我有3.6.6版本,但不允许使用它)
其他信息: Windows 10 Visual Studio 2017
有什么建议吗?
发布于 2021-05-15 04:09:16
无论是谁决定目录规范应该有两种类型的斜杠可接受,并且并不是所有的程序都支持这两种类型,谁都有希望在地狱中被烤焦。
问题是WITHOPENSSLINC必须使用正斜杠,而不是反斜杠。
问题已解决
https://stackoverflow.com/questions/67540238
复制相似问题