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文件中的配置是写的很标准
在尝试修改这部分命令时,没有有效的解决方法
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文件中的配置是写的很标准
在尝试修改这部分命令时,没有有效的解决方法
相关文章推荐
- iOS开发在popView的时候出现错误
- WEB常用攻击手段以及解决办法脑图
- Giraph++ 系统配置过程
- ehcache的使用
- mysql 行转列
- Jmeter中正则表达式提取器使用详解
- Android--向SD卡读写数据
- @Transient----------------springMVC
- cmd和python的mysql连接方法
- iOS9网络适配_改用更安全的HTTPS
- java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
- 网络共享与Hyper-V虚拟机交换文件的方法
- Ubuntu下启动pptp失败问题
- 程序员面试金典 2.3 访问单个节点的删除
- 如何在Git中撤销任何操作
- LeetCode H-Index
- android php 交互
- Ngrok内网穿透利器
- iOS 日历控件
- Avro序列化操作(1):环境搭建和Schema处理