当前位置:网站首页>Latest download address of libcef - compiled as MD dynamic link under vs2015

Latest download address of libcef - compiled as MD dynamic link under vs2015

2022-06-22 19:54:00 Plug in development

  libcef As the most popular embedded browser , There is a trend of vigorous development , But its download address is constantly changing , This article provides the latest download address of the current location :https://cef-builds.spotifycdn.com/index.html#windows64
   On the other hand, it will libcef Change to dynamic link , This article refers to other resources on the Internet , It's easy for readers to read , From official documents , The contents are as follows :

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. Download decompression CEF, What I use here is cef_binary_74.1.19+gb62bacf+chromium-74.0.3729.157_windows64;
  2. Download and install CMake, What I use here is cmake-3.11,Generate It needs to be modified before CMake Two of , Need to put CEF_RUNTIME_LIBRARY_FLAG from /MT Change to /MD, And put USE_SANDBOX Uncheck the , Because the official said , This sandbox seems to be responsible for security , Only use /MT Ed ;
  3. use VS15 The generated cef.sln;
  4. Here we just need to make up libcef_dll_wrapper That's all right. , The generated library is still static , Do not change to dynamic link library , Others demo、test Projects can also be compiled together , All the problems encountered in building the solution :
  (1)error C2039: “unique_ptr”: No yes “std” Members of , Solution plus #include

  (2)error C2220: Warnings are treated as errors - No generation “object” file , Solution configuration properties =》C/C++=》 routine =》 Change the warning as an error to No (/WX-)
  (3)error C2001: Line breaks in constants , The reason is Japanese , Solution delete …

   Reasonable script code can effectively improve work efficiency , Reduce repetitive labor .

原网站

版权声明
本文为[Plug in development]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221829258708.html