How to use Chromium Embedded Framework with Visual Studio 2017 (C++)?

☆樱花仙子☆ 提交于 2019-12-03 10:08:58

问题


I would like to use CEF with VS 2017 using C++ (not C#, so CEFSharp won't work here). I can't quite understand how to do this. From what I have read, it seems like I need to build the source into a .sln file and then modify the existing code, however their site also says there are binaries available to download, which is confusing me.

How do I program in C++ using CEF and VS 2017?


回答1:


  1. Download CEF3 binaries, and extract archive to folder
  2. Download and install CMake
  3. Open CMake, and set:
    • Where is the source code: folder
    • Where to build the binaries: folder/build
  4. Press Configure
  5. Press Generate
  6. Open solution in folder/build/cef.sln
  7. Build Debug/Release
  8. Reference in your project folder/build/libcef_dll_wrapper/[Debug|Release]/libcef_dll_wrapper.lib
  9. Copy files to your bin folder:
    • folder/[Debug|Release]
    • folder/Resources


来源:https://stackoverflow.com/questions/45142685/how-to-use-chromium-embedded-framework-with-visual-studio-2017-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!