【问题标题】:how to create .exe from CEF source code on windows (without using Visual studio)如何在 Windows 上从 CEF 源代码创建 .exe(不使用 Visual Studio)
【发布时间】:2018-09-22 16:08:50
【问题描述】:

我已经从链接http://opensource.spotify.com/cefbuilds/index.html 下载了 CEF 二进制文件,因为使用 VS 2017 成功创建了一个 .sln 文件。 但是现在我们的要求是在windows上通过MinGW或者命令行编译cef二进制文件(不想用微软Visual Studio)。 有人可以帮我解决这个问题吗?

【问题讨论】:

    标签: windows chromium-embedded mingw-w64


    【解决方案1】:

    官方仅支持 Visual Studio 在 Windows 上构建 CEF。您不太可能在合理的时间内成功地使不同的编译器工作。

    还有一些方法可以通过命令行编译 VS 项目。示例:msbuild project.sln /Flags... 有关更多详细信息,请查看此 stackoverflow link

    如果您想为 Windows 编译 libcef (Chromium),尽管使用 Visual Studio 编译器,但整个构建完全是命令行。

    有一个名为 Visual Studio Community 的免费版 Visual Studio(以前是 Visual Studio Express): https://www.visualstudio.com/vs/community/

    此外,如果您是一家小公司,您可能想以 400 欧元/年的价格查看 Microsoft 的 Action Pack,其中包括 3 个 Visual Studio Prof. 订阅。

    查看 CEF wiki: https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md

    【讨论】:

      【解决方案2】:

      我没有足够的分数来评论 Eugen。也许有人可以编辑。

      我认为 Eugen 是对的,VS 是必须的。我建议也通过this link 来学习如何以编程方式在不同的操作系统上构建 CEF。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-03-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-08-14
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多