美好的一天!
我尝试使用铬API构建应用程序。
-
i安装铬源代码和工具https://chromium.googlesource.com/chromium/src//master/docs/windows_build_instructions.md
-
我可以生成Visual Studio解决方案 *.sln并编译所有项目。$ gn gen-IDE = vs out 默认$ devenv out default all.sln
-
然后我下载样本$ git克隆https://github.com/dreamer-dead/chromium-sample-app.git Sample_app
尝试构建项目
$ gn gen -args = is_debug = true -root = ../../../../out/gn$ ninja -c ../out/gn sample_app
我收到消息 - 错误为您的平台生成事件 - config.h
- 之后,我已经检查了文件/third_party/libevent/event-config.h
event-config.h
#if defined(__APPLE__)
#include "mac/event-config.h"
#elif defined(ANDROID)
#include "android/event-config.h"
#elif defined(__linux__)
#include "linux/event-config.h"
#elif defined(__FreeBSD__)
#include "freebsd/event-config.h"
#elif defined(__sun)
#include "solaris/event-config.h"
#else
#error generate event-config.h for your platform
#endif
我可以看到我没有Windows的event-config.h
问题 - 我如何为Windows生成event -config.h?
问候,vladimir
我犯了一个错误: /third_party/libevent/event-config.h
与WEBRTC无关。
问题是另一个:
- 我需要在环境(Windows SDK(中设置
LIB
和INCLUDE
。 - 我需要将
PATH
设置为Python的正确版本。