Build issue with M76 version of webrtc on Windows

224 views
Skip to first unread message

John Curley

unread,
Feb 13, 2020, 2:54:32 AM2/13/20
to discuss-webrtc
I grabbed the "depot tools" from 2/12/2020. I have followed all of the WebRTC development steps. When I try to build a 64-bit release version of webrtc, I get the following error message. It is my assumption that all of the python stuff should be handled by "depot tools". Any ideas will be greatly appreciated.

 C:\Work\External\webrtc\webrtc-checkout\src>gn gen out/relaudio --args="is_debug=false target_winuwp_version=\"8.1\" target_cpu=\"x64\" target_winuwp_family=\"desktop\" use_rtti=true is_clang=false rtc_build_ssl=false rtc_ssl_root=\"C:/Work/External/openssl/insors/include\" rtc_build_tools=false rtc_include_tests=false rtc_build_examples=false rtc_build_libvpx=false rtc_libvpx_build_vp9=false rtc_include_builtin_video_codecs=false"
Done. Made 671 targets from 176 files in 2428ms
C:\Work\External\webrtc\webrtc-checkout\src>ninja -C out/relaudio webrtc
ninja: Entering directory `out/relaudio'
[219/2465] LIB obj/media/rtc_constants.lib
FAILED: obj/media/rtc_constants.lib
C:/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe ../../build/toolchain/win/tool_wrapper.py link-wrapper environment.x64 False lib.exe /nologo /ignore:4221 /OUT:obj/media/rtc_constants.lib @obj/media/rtc_constants.lib.rsp
Traceback (most recent call last):
  File "../../build/toolchain/win/tool_wrapper.py", line 31, in <module>
    import win32file    # pylint: disable=import-error
ImportError: No module named win32file
[228/2465] CXX obj/media/rtc_data/sctp_transport.obj
ninja: build stopped: subcommand failed.

Patrik Höglund

unread,
Feb 13, 2020, 6:09:52 AM2/13/20
to discuss-webrtc
Hmm. M76 is pretty old. I have no idea what provisioned win32file. It's not used anymore at HEAD. You will have a much easier time if you use WebRTC at HEAD :)

You can try installing win32file, but not into your system python but the provisioned one: C:/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe. Unfortunately I have no idea which modules this python.exe uses, probably not the ones associated with the system python. 

Maybe it's a better bet to try rolling back your depot_tools to a date close to the M76 branch point, like described in the notice here.

BR,
/ P

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/60095454-9dab-4702-814f-2b9984022c66%40googlegroups.com.

Alexandre GOUAILLARD

unread,
Feb 13, 2020, 7:35:42 AM2/13/20
to discuss...@googlegroups.com
that works for us:

python -m pip install pywin32



--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
President - CoSMo Software Consulting, Singapore
------------------------------------------------------------------------------------

John Curley

unread,
Feb 13, 2020, 8:23:53 AM2/13/20
to discuss-webrtc
Thank you Patrick and Alexandre for the suggestions. I was able to move past this issue by rolling back my depot_tools to a date close to the M76 branch point.

Alexandre GOUAILLARD

unread,
Feb 13, 2020, 9:36:17 AM2/13/20
to discuss...@googlegroups.com
beware of the auto update ...

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

Alexandre GOUAILLARD

unread,
Feb 13, 2020, 10:07:16 AM2/13/20
to discuss...@googlegroups.com
by the way, patrick, 
we had a discussion with henrik back then about this. I kind of remember that for chrome the depot_tools revision is pinned down (in the dips?), but not in chrome.
Is there a plan to do the same thing with webrtc?

Patrik Höglund

unread,
Feb 13, 2020, 10:17:20 AM2/13/20
to discuss-webrtc
Hi!

On Thu, Feb 13, 2020 at 4:07 PM Alexandre GOUAILLARD <agoua...@gmail.com> wrote:
by the way, patrick, 
we had a discussion with henrik back then about this. I kind of remember that for chrome the depot_tools revision is pinned down (in the dips?), but not in chrome.
Is there a plan to do the same thing with webrtc?


Yeah, I think that sounds like a good idea. It would make the build environment a bit more sane. There is no plan, file a bug and we might get to it.
 
On Thu, Feb 13, 2020 at 3:35 PM Alexandre GOUAILLARD <agoua...@gmail.com> wrote:
beware of the auto update ...

Yeah, that's why it suggests you should disable the auto-update in the notice :)
 
Reply all
Reply to author
Forward
0 new messages