我正在尝试将uWebSockets作为依赖项添加到我的conan.txt中
conan install ..
返回以下错误:
ERROR: uwebsockets/18.3.0: Invalid configuration: uwebsockets requires a compiler that supports at least C++17
我该如何处理?
** Visual Studio 2017 Developer Command Prompt v15.9.25
-s compiler.version=15.9
会返回“无效”错误答案 0 :(得分:2)
默认情况下,柯南settings仅支持Visual Studio版本作为整数。
传递-s编译器。version= 15.9返回“无效”错误
它抱怨是因为您的自定义版本未在settings.yml
中列出,但是您可以在其中添加您的版本,其中有解释how to customize your settings的部分。
您只需要更新settings.yml
,并将15.9
添加到Visual Studio版本列表中,它就可以正常工作。
您可以更新默认的profile或基于该Visual Studio版本创建一个新的
。此外,15.9
不是15
,因此,由于软件包ID不兼容,您将需要从源构建所有依赖项。您可以使它们兼容,但是您需要在本地更改配方并重新构建。阅读compatible compilers部分以了解更多信息。