无法运行Xilium。基于Visual Studio 2012构建的CefGlue [英] Can't run Xilium. CefGlue built on Visual Studio 2012

查看:143
本文介绍了无法运行Xilium。基于Visual Studio 2012构建的CefGlue的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

'大家好,我下载了 Xilium.CefGlue 并在Visual Studio(xilium-xilium.cefglue-b22787699e57)上构建了源代码,我也下载了 cef_binary_3.1453.1236_windows_xilium 并将 libcef.dll 复制到Xilium Winforms演示程序中,因为应用程序需要运行它,但是当我运行它时,我得到了出现以下错误:

'Hi all, I downloaded Xilium.CefGlue and built the source on Visual Studio (xilium-xilium.cefglue-b22787699e57), I also downloaded cef_binary_3.1453.1236_windows_xilium and copied the libcef.dll to the Xilium Winforms demo as the apps requires it to run but when I run it I get the following error:

An attempt was made to load a program with an incorrect format. 
Exception from HRESULT: 0x8007000B

我的目标是x86,我可以寻求帮助吗?
谢谢

I've targeted x86, can I get some help? Thanks

推荐答案

好的,这是我用来使VS 2012中的示例工作的步骤:

Ok, here's the steps I used to get the samples working in VS 2012:


  1. 从github上的 Xilium.CefGlue获取代码。 (我使用的是 c3d674a3a8

  2. 打开VS2012中的 Xilium.CefGlue 解决方案

  3. 删除或不构建 CefGlue.Demo.GtkSharp 项目(它没有我感兴趣,我没有所需的库)

  4. 在配置管理器中,选择 Active Solution Platform为 x86

  5. 确保目标框架设置在项目之间进行协作。 (例如, CefGlue.Demo CefGlue.Demo.WinForms 默认为v2.0,但它们取决于v4.5的 CefGlue )(为简单起见,我将它们全部设置为v4.0客户端配置文件,并且可以正常工作。)

  6. 构建解决方案-应该成功

  7. 从以下位置复制Xilium文件解压缩后的 cef_binary_3.1453.1236_windows_xilium 到输出文件夹( bin\x86\Debug bin\x86\Release )。最低要求似乎是:

    • libcef.dll icudt.dll 来自 。\调试 。\发布

    • cef.pak .out\Debug locales\ 文件夹c $ c>或 。\资源

  1. Get the code from Xilium.CefGlue on github. (The one I used was c3d674a3a8)
  2. Open the Xilium.CefGlue solution in VS2012
  3. Remove or don't build the CefGlue.Demo.GtkSharp project (it didn't interest me & I didn't have the needed libraries)
  4. In the Configuration Manager, select Active Solution Platform to be x86
  5. Ensure that the target framework settings cooperate between projects. (e.g. CefGlue.Demo & CefGlue.Demo.WinForms by default are v2.0, but they depend on CefGlue which is v4.5) (For simplicity I set them all to v4.0 Client profile and it worked.)
  6. Build solution — should succeed
  7. Copy Xilium files from the unzipped cef_binary_3.1453.1236_windows_xilium to the output folder (bin\x86\Debug or bin\x86\Release). Minimum requirement seems to be:
    • libcef.dll and icudt.dll from .\Debug or .\Release
    • cef.pak and the locales\ folder from .out\Debug or .\Resources

这篇关于无法运行Xilium。基于Visual Studio 2012构建的CefGlue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆