Build webrtc library without libvpx

295 views
Skip to first unread message

JD Arnold

unread,
May 14, 2019, 4:18:45 PM5/14/19
to discuss-webrtc
So I was running into some odd crashes when using the libvpx code that is built into the webrtc library, so I went back to building my own. It seems like there should be a way to build the webrtc windows library without libvpx, given that there
are a few gn options. I was using this gn config line:

gn gen out/relnovpx --args="is_debug=false target_winuwp_version=\"8.1\" target_cpu=\"x86\" target_winuwp_family=\"desktop\" use_rtti=true is_clang=false rtc_build_ssl=false rtc_ssl_root=\"C:/insors/include\" rtc_build_tools=false rtc_include_tests=false rtc_build_examples=false rtc_build_libvpx=false rtc_libvpx_build_vp9=false "

But I get errors when trying to build:

C:\webrtc-checkout\src\modules/video_coding/codecs/vp8/libvpx_interface.h(17): fatal error C1083: Cannot open include file: 'vpx/vp8cx.h': No such file or directory
[806/2116] CXX obj/modules/video_coding/webrtc_vp8_temporal_layers/default_temporal_layers.obj
ninja
: build stopped: subcommand failed.


Is there a way, like with openssl, to tell the build where to find the vpx headers I am using? BTW, I don't actually use any of the video code in webrtc. I am just using the audio code, so I don't
even want to include any building of the video code in any case.

Jonathan

JD Arnold

unread,
May 14, 2019, 4:29:02 PM5/14/19
to discuss-webrtc
Nevermind - I figured it out!

I appended my libvpx folder to the end of INCLUDE:

set include=%include%;c:\libvpx\libvpx-master

Which I had tried before. But instead of just re-running ninja, I re-ran the 'gn' command and voila - it works!
Reply all
Reply to author
Forward
0 new messages