Cef,chromium the abbreviation for the Embedded framework. CEF's official website introduces simplicity: A simple framework for embedding Chromium browser windows in other applications. Specifically, a framework that embeds browser functionality (page rendering, JS execution) into other applications. Interested to see here: HTTPS://BITBUCKET.ORG/CHROMIUMEMBEDDED/CEF.
The advantage of CEF is that the development of web and native hybrid applications is very convenient, much better than calling the Windows IE components, at least with the application to carry a stable version of the Chrominum, and IE version too much, your application relies on the user's operating system, various compatibility pits ...
It took a long time, and finally ran through the small example of cefsimple. Record the process.Tools
I extracted CEF Binary for Windows into this directory: D:\PROJECTS\CEF_BINARY_3.2357.1271.G8E0674E_WINDOWS32, we use Cefdir instead.
There is no VS project and solution in CEF binary now, you have to generate it yourself.Environment configuration and compilation process
The cefsimple example relies on libcef_dll_wrapper and needs to compile the Libcef_dll project first.Compiling Libcef_dll
I encountered some errors in compiling and found the solution, which is already included in the above steps.Compiling the Cefsimple sample
With the Libcef_dll_wrapper, you can compile the cefsimple.
I originally wanted to use CMake generation, the results toss half a day, CMake executed, but did not generate the corresponding cefsimple.vcxproj ... Had to create a VS project manually.
The process is as follows:
The runtime may crash and copy the contents of the Cefdir/resources directory to cef/release (or debug). CEF needs icudtl.dat, language files and so on.
Operating effects such as:
Cefdir Directory has a README.txt file, be sure to see, I compiled through after running the total crash, in the VS 1.1 point debug, see the program output, took a long time to find the resources of the problem!
OK, the environment is so good, then you can study the CEF SDK.
CEF Windows Development Environment Setup