【发布时间】:2020-04-26 13:53:47
【问题描述】:
我尝试了多种在 Visual Studio 中安装 freeglut 的方法,但都无法正常工作。我有一个解决方案,但我不知道如何使用。解决方案是这样的 1.打开powershell。 2. git克隆https://github.com/Microsoft/vcpkg.git 3. 光盘 .\vcpkg 4. .\bootstrap-vcpkg.bat 5. .\vcpkg.exe 安装openssl 6. .\vcpkg.exe 集成安装 完成以上步骤后,就可以直接在VS中使用opengl了。有关 vcpkg 的更多信息,请参阅此处:https://github.com/Microsoft/vcpkg 我现在卡在第 4 步,命令在 powershell 中不起作用 它说
块引用
.\bootstrap-vcpkg.bat : 术语“.\bootstrap-vcpkg.bat”未被识别为 cmdlet、函数、脚本的名称 文件或可运行的程序。检查名称的拼写,或者如果包含路径,请验证路径是否正确 然后再试一次。 在行:1 字符:1 + .\bootstrap-vcpkg.bat + ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (.\bootstrap-vcpkg.bat:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
块引用
这里有什么问题?有什么办法可以解决这个问题?
【问题讨论】:
-
如果你展示你所做的并解释它是如何不起作用的,你更有可能获得帮助。那将是一个更好的 StackOverflow 问题。
-
我已经编辑了这个问题。我已经详细提到了这个问题
-
这里有什么问题?您从错误的文件夹中运行了该命令。确保将 powershell 中的目录更改为包含
bootstrap-vcpkg.bat的文件夹
标签: c++ visual-studio github vcpkg installation-package