我找不到../third_party/libevent/event-config.h到event-config.h for windows的路径或者如何为windows生成event-config.h

时间:2017-05-31 09:57:46

标签: build webrtc gn

美好的一天!

我尝试用chrome api构建应用程序。

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

  2. 我可以生成visual studio解决方案* .sln并编译所有项目。 $ gn gen --ide = vs out \ Default $ devenv out \ Default \ all.sln

  3. 然后我下载样本 $ git clone https://github.com/dreamer-dead/chromium-sample-app.git sample_app

  4. 并尝试构建项目

    $ gn gen --args = is_debug = true --root = .. / ../out/gn $ ninja -C ../out/gn sample_app

    我收到了消息 - 错误为您的平台生成了event-config.h

    1. 之后我检查了文件/third_party/libevent/event-config.h
    2. 事件的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?

      此致 弗拉基米尔

1 个答案:

答案 0 :(得分:0)

我犯了一个错误: /third_party/libevent/event-config.h与WebRTC无关。

问题是另一个问题:

  1. 我需要在环境(windows sdk)中设置LIBINCLUDE
  2. 我需要将PATH设置为正确版本的python。