webrtcbuilds icon indicating copy to clipboard operation
webrtcbuilds copied to clipboard

Cross compiling

Open blizzardplus opened this issue 6 years ago • 2 comments

I'm trying to cross compile WebRTC to Windows on a Linux machine. This requires a win_toolchain. I used this script to produce the toolchain.

The toolchain is stored as a zip file. I was wondering if there is a way to feed this toolchain to the build.sh script as input.

Chromium instruction on cross-compiling is not clear how to use the toolchain.

blizzardplus avatar Mar 23 '18 21:03 blizzardplus

for the time being, and even though chromium itself has moved to clang for windows builds, the official way to build libwebrtc is with MSVC. that means no cross-compiling for windows for the time being as a standalone library.

You might to ask those questions on discuss-webrtc mailing list, and/or chromium-dev for more details.

On Fri, Mar 23, 2018 at 9:37 PM, Hooman [email protected] wrote:

I'm trying to cross compile WebRTC to Windows on a Linux machine. This requires a win_toolchain. I used this script https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/master/win_toolchain/package_from_installed.py to produce the toolchain.

The toolchain is stored as a zip file. I was wondering if there is a way to feed this toolchain to the build.sh script as input.

Chromium instruction on cross-compiling https://chromium.googlesource.com/chromium/src/+/master/docs/win_cross.md is not clear how to use the toolchain.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vsimon/webrtcbuilds/issues/82, or mute the thread https://github.com/notifications/unsubscribe-auth/AAT1nt8JGnfea7IXkkLxndQ-mPhjz3SKks5thWsqgaJpZM4S5aEc .

-- Alex. Gouaillard, PhD, PhD, MBA

President - CoSMo Software Consulting, Singapore

sg.linkedin.com/agouaillard

agouaillard avatar Mar 24 '18 00:03 agouaillard

@agouaillard it's not quite accurate, we were able to cross compile the shared library for a Windows target on a Linux machine, using the Chromium toolchain.

blizzardplus avatar Apr 10 '18 21:04 blizzardplus