我一直在遵循这本非常全面的指南,以在CefSharp中启用专有编解码器。不幸的是,我在第16步遇到了一个障碍。我已经使用automate-git.py构建了cef可再分发文件,并将它们复制到cef二进制repo中。然而,当我尝试使用build.ps1构建cef二进制文件时,我得到了以下错误,即找不到libcef_dll_wrapper.vcxproj。这是真的——那个文件不存在。我在它正在查找的目录中所拥有的文件如下:cef_binary_distribution文件夹
它应该存在吗?或者构建脚本在某种程度上是错误的?我是不是在automate-git.py期间搞砸了什么?
cef二进制构建的输出:
.build.ps1 vs2013
Bootstrapping
Starting to build targeting toolchain v120
Targeting v120 using configuration Debug on platform x86
Get-Content : Cannot find path
'D:gitChromiumcef-binarycef_binary_3.2526.1373.gb660893_windows32libcef_dlllibcef_dll_wrapper.vcxproj' because it does not exist.
At D:gitChromiumcef-binarybuild.ps1:224 char:6
+ (Get-Content $CefProject) | Foreach-Object {$_ -replace "<RuntimeLibrary>Mul ...
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (D:gitChromium...wrapper.vcxproj:String) [Get-Content], ItemNotFoundException: PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
Get-Content : Cannot find path
'D:gitChromiumcef-binarycef_binary_3.2526.1373.gb660893_windows32libcef_dlllibcef_dll_wrapper.vcxproj' because it does not exist.
At D:gitChromiumcef-binarybuild.ps1:225 char:6
+ (Get-Content $CefProject) | Foreach-Object {$_ -replace "<RuntimeLibrary>Mul ...
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (D:gitChromium...wrapper.vcxproj:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
True
Microsoft (R) Build Engine version 12.0.40629.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.
感谢您的帮助!
在CEF论坛和CefSharp谷歌小组上也被问及(没有足够的声誉来添加另一个链接)
答案简单得令人沮丧。
首先,按照上面amaitland的建议,确保cmake在你的路上。其次,为了避免任何进一步的问题,请确保您已经复制了64位和32位的cef二进制文件。