您的位置:首页 > 其它

cef3 经过GYP生成2010的工程文件后还是有问题

2016-02-23 16:47 417 查看
在获取cef3 2272版本的源码包后解压

GYP环境构建设置好后

在源码包目录执行

gyp --depth . -D component=shared_library -G msvs_version=2010 -I cef_paths.gypi -I cef_paths2.gypi

c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include\WinDef.h

环境之间的方法冲突
http://blog.sina.com.cn/s/blog_53859e630102v0w6.html
-------------------------cef_string_types cef_basictypes 重定义char16

error C2371: “char16”: 重定义;不同的基类型cef_basictypes.h libcef_dll_wrapper

防止重定义

#ifndef char16

typedef wchar_t char16;

#endif

#ifndef CEF_INCLUDE_BASE_CEF_BASICTYPES_H_

typedef wchar_t char16;

#endif

F:\cef_binary_3.2272.32.gbda8dc7_windows32\cef_binary_3.2272.32.gbda8dc7_windows32\include\internal\cef_string_types.h

F:\cef_binary_3.2272.32.gbda8dc7_windows32\cef_binary_3.2272.32.gbda8dc7_windows32\include\base\cef_basictypes.h

F:\cef_binary_3.2272.32.gbda8dc7_windows32\cef_binary_3.2272.32.gbda8dc7_windows32\include\internal\cef_types.h

-------------------------
http://www.ikoumi.com/blog/article/cefimportantconcepts/
error C2664: “cef_string_utf16_set”: 不能将参数 1 从“const wchar_t *”转换为“const char16 *”
cef_string_wrappers.h libcef_dll_wrapper

F:\cef_binary_3.2272.32.gbda8dc7_windows32\cef_binary_3.2272.32.gbda8dc7_windows32\include\internal\cef_string_wrappers.h

然而在遇到

消息 82
未能找到特性“Condition”的架构信息。 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets
549 34
杂项文件

错误 84 error MSB6006: “cmd.exe”已退出,代码为 4。
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets
151 6
cefsimple

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets
http://blog.csdn.net/iammiaoyan/article/details/37578265
也未给出详细解决方法

后在日志发现

是vcxproj中的

<ItemGroup>

<CustomBuild Include="cefclient.gyp">

<FileType>Document</FileType>

<Command>call call xcopy \efy "Resources\*" "$(OutDir)"

if %errorlevel% neq 0 exit /b %errorlevel%

call call xcopy \efy "$(Configuration)\*.exe" "$(OutDir)"

if %errorlevel% neq 0 exit /b %errorlevel%

call call xcopy \efy "$(Configuration)\*.dll" "$(OutDir)"</Command>

<Message>copy_resources, and also copy_executables, and also copy_libraries</Message>

<Outputs>$(OutDir)\copy_resources.stamp;$(OutDir)\copy_executables.stamp;$(OutDir)\copy_libraries.stamp</Outputs>

</CustomBuild>

</ItemGroup>

命令似乎有问题

由于该文件是GYP管理生成的,无法确保vcxproj文件中的配置是写的很标准

在尝试修改这部分命令时,没有有效的解决方法
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: