【问题标题】:vcpkg does not install cairovcpkg 不安装 cairo
【发布时间】:2023-03-10 05:49:02
【问题描述】:

按照https://github.com/Microsoft/vcpkg/blob/master/README.md命令中的指令

.\vcpkg install cairo --triplet x64-windows

生产

Computing installation plan...
The following packages will be built and installed:
  * brotli[core]:x64-windows -> 1.0.9#1
  * bzip2[core]:x64-windows -> 1.0.8#1
    cairo[core,freetype]:x64-windows -> 1.16.0#9
  * dirent[core]:x64-windows -> 1.23.2
  * expat[core]:x64-windows -> 2020-08-18
  * fontconfig[core]:x64-windows -> 2.13.1#3
  * freetype[brotli,bzip2,core,png,zlib]:x64-windows -> 2.10.4
  * gettext[core]:x64-windows -> 0.21
  * json-c[core]:x64-windows -> 2019-09-10#1
  * libiconv[core]:x64-windows -> 1.16#8
  * libpng[core]:x64-windows -> 1.6.37#14
  * pixman[core]:x64-windows -> 0.38.4#2
  * pthread[core]:x64-windows -> 3.0.0
  * pthreads[core]:x64-windows -> 3.0.0-6
  * zlib[core]:x64-windows -> 1.2.11#9
Additional packages (*) will be modified to complete this operation.
No suitable Visual Studio instances were found

进一步检查

.\vcpkg 列表

结果

No packages are installed. Did you mean `search`?

我做错了什么? 非常感谢您的帮助

【问题讨论】:

  • > 没有找到合适的 Visual Studio 实例

标签: visual-studio-code cairo vcpkg


【解决方案1】:

我必须检查Visual Studio Installer 中的两个选项

1. MSVC C/C++ compiler and linker
2. English language pack

之后它工作了! :)

【讨论】:

    【解决方案2】:

    有同样的问题。然后在 git CMD 中运行 vcpkg 并得到以下结果:

    C:\Users\steve\vcpkg>vcpkg 安装 liblzma:x64-windows-static 计算安装方案... 将构建和安装以下软件包: liblzma[核心]:x64-windows-static -> 5.2.5#2 警告:由于英语语言包不可用,排除了以下 VS 实例。 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community 请安装英文语言包。 没有找到合适的 Visual Studio 实例

    安装了英文语言包,问题就消失了.vcpkg

    【讨论】:

      【解决方案3】:

      问题-您是否安装了“使用 C++ 进行桌面开发”?如果是这样,请创建一个直接指向 IDE 位置的用户/系统变量 VCPKG_VISUAL_STUDIO_PATH。如果没有,请这样做,这可能会解决问题。

      【讨论】:

        【解决方案4】:

        安装的英语语言包和桌面开发 C++ 包解决了我的问题。

        【讨论】:

          猜你喜欢
          • 2022-08-14
          • 2023-01-12
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2019-08-25
          • 2020-08-27
          相关资源
          最近更新 更多