首页 > cef > CEF-CefClient编译流程
2017八月23

CEF-CefClient编译流程

CMAKE编译:

1.gif

编译cefclient,提示一个警告设置为错误的BUG

Error	2	error C2220: warning treated as error - no 'object' file generated	D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcomcli.h	88

将C/C++–>General–>Treat Warnings As Errors设置为NO

重新编译,提示一个链接BUG

LINK : fatal error LNK1181: cannot open input file '..\..\Debug\libcef.lib'

在cef_binary_3.2623.1397.gaf139d7_windows32\Release同目录新建一个cef_binary_3.2623.1397.gaf139d7_windows32\Debug目录,复制Release内文件

重新编译, 如果提示manifest错误,就把Manifest Tool–>Input and Output–>Embed Manifest 设置为NO

 manifest authoring warning 81010002

编译后,系统会自动把cef_binary_3.2623.1397.gaf139d7_windows32\Release和cef_binary_3.2623.1397.gaf139d7_windows32\Resources中的内容拷贝到cef_binary_3.2623.1397.gaf139d7_windows32\vs2008\cefclient\Debug目录中,参看cefclient的VS工程Build Events–>Post Build Event中内容

由cefclient的CMakeLists.txt指定:

  # Copy CEF binary and resource files to the target output directory.
  COPY_FILES("${CEF_TARGET}" "${CEF_BINARY_FILES}" "${CEF_BINARY_DIR}" "${CEF_TARGET_OUT_DIR}")
  COPY_FILES("${CEF_TARGET}" "${CEF_RESOURCE_FILES}" "${CEF_RESOURCE_DIR}" "${CEF_TARGET_OUT_DIR}")

   

同样编译cefsimple, 如果提示manifest错误,就把Manifest Tool–>Input and Output–>Embed Manifest 设置为NO

>mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\Debug\cefsimple.exe". Bpo

—》

至此,两个示例均已编译通过.

   

文章作者:hgy413
本文地址:https://hgy413.com/4192.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!

3 Responses to “CEF-CefClient编译流程”

  1. #1 g some 回复 | 引用 Post:2020-06-10 18:30

    I blog often and I truly appreciate your information. Your article has truly peaked my interest.
    I will book mark your website and keep checking for new information about
    once a week. I opted in for your RSS feed as well.

  2. #2 how g 回复 | 引用 Post:2020-06-11 18:21

    Have you ever thought about adding a little bit more than just your articles?
    I mean, what you say is fundamental and all.
    But think about if you added some great visuals or videos to give your posts more, “pop”!

    Your content is excellent but with images and clips,
    this website could definitely be one of the greatest in its niche.
    Awesome blog!

  3. #3 dospuntoseventos.cl 回复 | 引用 Post:2020-06-14 14:21

    constantly i used to read smaller content which as well clear their
    motive, and that is also happening with this article which I am reading at this time.

发表评论