2017-05-31 160 views
0

美好的一天!我无法在../third_party/libevent/event-config.h中找到event-config.h for windows的路径,或者如何为windows生成event-config.h

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

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

  2. 我可以生成Visual Studio解决方案*的.sln和编译所有项目。 $ GN根--ide = VS出来\默认 $ devenv的出\ DEFAULT \ all.sln

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

,并尝试建立项目

$ GN根--args = is_debug =真--root = ../../out/gn $忍者-C ../out/gn sample_app

,我已经得到了消息 - 错误属TE事件的config.h您的平台

  • 后,我已经签文件/third_party/libevent/event-config.h
  • 事件的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 
    

    我可以看到我有不是事件的config.h窗户

    问题 - 怎样才能事件的config.h为Windows?

    问候, 弗拉基米尔

    +0

    这与WebRTC有什么关系?我没有在代码或构建配置中看到任何引用。 – kjellander

    回答

    0

    我犯了一个错误: /third_party/libevent/event-config.h不相关的WebRTC。

    问题是另一个:

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