vcpkg在命令行上设置错误

时间:2017-03-20 23:59:29

标签: c++ python-2.7 windows-7 dlib vcpkg

我正在尝试使用vcpkg tool

编译dlib 19.4

因为我在编译CMAKE和使用Boost.Python

时遇到了问题

修复dlib的编译器问题。

虽然我在运行基本步骤时遇到了问题

让vcpkg包工作:

(我还为此工具下载了Visual Studio 2017)

cmd output part 1 cmd output part 2 cmd output part 3

1 个答案:

答案 0 :(得分:1)

查看已执行的命令( git init ),您为 vcpkg 初始化了空的git存储库 - 这可能是错误的。尝试获取现有修订时,此 bootstrap.ps1 脚本在内部失败。 vcpkg 并不想驻留在任何git存储库中,它需要"它的" git存储库。 vcpkg 使用git作为分发平台,稍后执行更新。

因此,您应该将 vcpkg 存储库克隆到某个目录,例如:

 <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@android:color/black"
    >

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/btnNext"
        android:background="@android:color/black"
        >

        <com.google.android.youtube.player.YouTubePlayerView
            android:id="@+id/youtube_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:visibility="gone"

            />

    </RelativeLayout>
    <Button
        android:id="@+id/btnNext"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:padding="10dp"
        android:text="Next"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        />


</RelativeLayout>

https://github.com/Microsoft/vcpkg/

此外,我看到有关VS2017 C ++支持的错误。 VS2017是一个具有多种可选语言的IDE(即您只能安装C#支持)。请确保您使用C ++&#34;进行桌面开发。已安装工作负载 - 因为 vcpkg 适用于C ++。您可以通过再次运行安装程序随时更新安装(修改)。

https://docs.microsoft.com/en-us/visualstudio/install/install-visual-studio

相关问题