首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试使用openssl构建dcmtk

尝试使用openssl构建dcmtk
EN

Stack Overflow用户
提问于 2021-05-15 03:52:54
回答 1查看 79关注 0票数 0

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

代码语言:javascript
复制
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

有什么建议吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-05-15 04:09:16

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

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

问题已解决

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67540238

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档