Windows中集成libcef(MD)

下载地址

libcef最新的下载地址

官方文档

参考官方文档,内容如下:

Dynamic Linking (with a CEF DLL)
If you prefer to link CEF with your application dynamically then the process is faster. CEF provides a binary distribution on the downloads page that contains everything you need to link CEF with your application including source code for the libcef_dll_wrapper project. If your application does not use the /MT flag then you will need to rebuild the libcef_dll_wrapper project with the same flags as your application. Unlike with static linking, you will not need to rebuild all of CEF or Chromium in order to do this.

Download a CEF binary release from the project downloads page.
Run CMake with the additional -DCEF_RUNTIME_LIBRARY_FLAG=/MD command-line flag (/MD can be replaced with other flags as appropriate).
Open cef.sln in Visual Studio.
Right click on the libcef_dll_wrapper project and choose the "Project Only -> Build Only libcef_dll_wrapper" option.
Sandbox support (linking cef_sandbox.lib) is only possible when your application is built with the /MT flag.

编译

  • 下载解压需要的CEF版本包;
  • 使用cmake-gui(确保已正确安装cmake)生成工程文件,Generate 之前把 CEF_RUNTIME_LIBRARY_FLAG 由 / MT 改成 / MD,并把 USE_SANDBOX 取消勾选;
  • 用 VS 打开了生成的 cef.sln;
  • 编译 libcef_dll_wrapper。

ps:可能遇到问题:
error C2220: 警告被视为错误 - 没有生成 “object” 文件,解决方法配置属性 =》C/C++=》常规 =》将警告视为错误改为否 (/WX-)

使用

将Debug、Release、include、Resources以及刚刚编译的libcef_dll_wrapper中的库拷贝到需要使用的工程目录中,并配置好路径。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Windows Server 2008是微软推出的一款服务器操作系统,最初发布于2008年。然而,Windows Server 2008并没有内建支持USB 3.0技术。USB 3.0是一种新一代的通用串行总线技术,它提供了比之前的USB 2.0更快的数据传输速率和更好的性能。 尽管Windows Server 2008不直接支持USB 3.0,但可以通过以下方法来集成USB 3.0功能: 1. 通过安装第三方USB 3.0驱动程序:可以从USB 3.0控制器的制造商网站上下载并安装对应的驱动程序。这将允许Windows Server 2008系统识别和使用USB 3.0设备,但这可能需要手动安装和配置。 2. 使用硬件转接器:如果服务器的主板上没有内建的USB 3.0接口,可以考虑使用一个USB 3.0扩展卡或HBA(Host Bus Adapter),并将其插入服务器的PCI插槽。这样可以为服务器提供USB 3.0端口,从而实现USB 3.0设备的连接和使用。 需要注意的是,集成USB 3.0功能可能会涉及到一些技术和兼容性问题。在选择适合服务器和操作系统的USB 3.0解决方案之前,建议先了解服务器的硬件规格和操作系统的要求。此外,应该从可靠的供应商处获取适用的驱动程序和硬件设备。 总之,虽然Windows Server 2008本身没有内建支持USB 3.0技术,但可以通过安装第三方驱动程序或硬件转接器来集成USB 3.0功能。这将允许该服务器系统识别和使用USB 3.0设备,并享受到其提供的更快的数据传输速率和更好的性能。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值