本文介绍了无法运行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:
- 从github上的。 (我使用的是)
- 打开VS2012中的 Xilium.CefGlue 解决方案
- 删除或不构建 CefGlue.Demo.GtkSharp 项目(它没有我感兴趣,我没有所需的库)
- 在配置管理器中,选择 Active Solution Platform为
x86
- 确保目标框架设置在项目之间进行协作。 (例如, CefGlue.Demo 和 CefGlue.Demo.WinForms 默认为v2.0,但它们取决于v4.5的 CefGlue )(为简单起见,我将它们全部设置为v4.0客户端配置文件,并且可以正常工作。)
- 构建解决方案-应该成功
- 从以下位置复制Xilium文件解压缩后的到输出文件夹(
bin\x86\Debug
或bin\x86\Release
)。最低要求似乎是:
-
libcef.dll
和icudt.dll
来自。\调试
或。\发布
-
cef.pak
和.out\Debug $中的
locales\
文件夹c $ c>或。\资源
-
- Get the code from Xilium.CefGlue on github. (The one I used was c3d674a3a8)
- Open the Xilium.CefGlue solution in VS2012
- Remove or don't build the CefGlue.Demo.GtkSharp project (it didn't interest me & I didn't have the needed libraries)
- In the Configuration Manager, select Active Solution Platform to be
x86
- 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.)
- Build solution — should succeed
- Copy Xilium files from the unzipped cef_binary_3.1453.1236_windows_xilium to the output folder (
bin\x86\Debug
orbin\x86\Release
). Minimum requirement seems to be:libcef.dll
andicudt.dll
from.\Debug
or.\Release
cef.pak
and thelocales\
folder from.out\Debug
or.\Resources
这篇关于无法运行Xilium。基于Visual Studio 2012构建的CefGlue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!