我找不到../third_party/libevent/event-config.h path to event-config.h for windows 或 how how generated ev



美好的一天!

我尝试使用铬API构建应用程序。

  1. i安装铬源代码和工具https://chromium.googlesource.com/chromium/src//master/docs/windows_build_instructions.md

  2. 我可以生成Visual Studio解决方案 *.sln并编译所有项目。$ gn gen-IDE = vs out 默认$ devenv out default all.sln

  3. 然后我下载样本$ 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

  1. 之后,我已经检查了文件/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无关。

问题是另一个:

  1. 我需要在环境(Windows SDK(中设置LIBINCLUDE
  2. 我需要将PATH设置为Python的正确版本。

最新更新