当前位置:网站首页>libcef最新下载地址-在VS2015下编译为MD-动态链接
libcef最新下载地址-在VS2015下编译为MD-动态链接
2022-06-22 18:29:00 【插件开发】
libcef作为当下最流行的嵌入式浏览器,有着蓬勃发展的趋势,但是它的下载地址在不断变化,本文提供现今位置最新的下载地址:https://cef-builds.spotifycdn.com/index.html#windows64
另一方面将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.
1.下载解压CEF,我这里使用的是cef_binary_74.1.19+gb62bacf+chromium-74.0.3729.157_windows64;
2.下载安装CMake,我这里使用的是cmake-3.11,Generate之前需要修改CMake的两项,需要把CEF_RUNTIME_LIBRARY_FLAG由/MT改成/MD,并把USE_SANDBOX取消勾选,因为官方也说了,这个看起来负责安全的沙箱,只能用/MT编;
3.用VS15打开了生成的cef.sln;
4.这里只需要编libcef_dll_wrapper就可以了,生成的还是静态库,不要改成动态链接库,其他几个demo、test的项目也可以一块编了,生成解决方案遇到的全部问题:
(1)error C2039: “unique_ptr”: 不是“std”的成员,解决方法加#include
(2)error C2220: 警告被视为错误 - 没有生成“object”文件,解决方法配置属性=》C/C++=》常规=》将警告视为错误改为否 (/WX-)
(3)error C2001: 常量中有换行符,原因有日文,解决方法删掉…
合理的脚本代码可以有效的提高工作效率,减少重复劳动。
边栏推荐
- 数字货币钱包开发不知道怎么选?
- 堆排序(原理加代码)
- AB打包有的Shader没有触发IPreprocessShaders的回调
- Openpnp使用过程的一些问题记录
- Recommend an anatomy website
- what? Homekit, Micah, aqara and other ecosystems can also be linked with tmall elf ecology through zhiting?
- 0.1----- process of drawing PCB with AD
- Follow up course supplement of little turtle teacher "take you to learn C and take you to fly"
- vim中快速缩进用法
- 0816飞达的缺点(改进方向)
猜你喜欢

Solution of off grid pin in Altium Designer

Comparison of NAND flash particles SLC, MLC, TLC and QLC

小甲鱼老师《带你学C带你飞》的后续课程补充

Damp 3D printer consumables

将一维数据(序列)转化为二维数据(图像)的方法汇总GAFS, MTF, Recurrence plot,STFT

Xintang nuc980 usage record: basic description of development environment preparation and compilation configuration

Chapter I 100 hot questions (1-5)

0.0 - how can SolidWorks be uninstalled cleanly?

510000 prize pool invites you to join the war! The second Alibaba cloud ECS cloudbuild developer competition is coming

Experiment 7 trigger
随机推荐
Flutter series -dart basic grammar learning
修改antd tree组件,使其子类横向排列。
MySQL数据库DQL查询操作
常用技术注解
实践出真知:全网最强秒杀系统架构解密,不是所有的秒杀都是秒杀!!
第一章 力扣热题100道(1-5)
vim中快速缩进用法
Openpnp调试 ------ 0816飞达推0402编带
安装Office的一些工具
Intelligent procurement system solution for processing and manufacturing industry: help enterprises realize integrated and Collaborative Procurement in the whole process
delegate
数组对象实现一 一对比(索引和id相同的保留原数据,原数组没有的数据从默认列表加进去)
How to judge whether text is an array in the slot
51万奖池邀你参战!第二届阿里云ECS CloudBuild开发者大赛来袭
Explain in simple terms the bloom filter
记可视化项目代码设计的心路历程以及理解
Recommend an anatomy website
Quick indent usage in VIM
K个一组翻转链表[链表拆解/翻转/拼装]
ActiveReports报表实战应用教程(十九)——多数据源绑定