compiling libwebrtc for arm linux

1,408 views
Skip to first unread message

Alexandre GOUAILLARD

unread,
Mar 12, 2015, 11:28:49 PM3/12/15
to discuss...@googlegroups.com
dear all,

I'm trying to cross compile libwebrtc on Ubuntu, for arm linux. I could not find official compilation guide, and most of what i could find online was either outdated or not working. I tried to set the target_os as linux in the .gclient file, i used the arm and armv7 flags, I tried to move the desk in a position that would deb more feng shui, nothing did it :-)

Would anyone have successfully compiled for arm linux (armv7), and would kindly share the recipe?

regards,

Alex.

--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
CTO - Temasys Communications, S'pore / Mountain View
President - CoSMo Software, Cambridge, MA
------------------------------------------------------------------------------------

Kaiduan Xie

unread,
Mar 13, 2015, 10:58:55 AM3/13/15
to discuss...@googlegroups.com
Alex,

I had not build webrtc for Linux arm, but I did port webrtc to another embedded OS. Here I would like to share some experience and assume ninja build system is used.

1. First I setup toolchain values for the OS in src/chromium/src/common.gypi, for example CC,CXX.
2. Like build for android, a file src/build/osa/envsetup.sh is created to setup path for the tool chain, I also setup AR_target, NM_target value for ar and nm command.
3. Some changes in the source code/gyp files may be needed depending on the OS and API supports.

The build process is same as that of build for Android listed below,

a) . build/osa/envsetup.sh
b) python webrtc/build/gyp_webrtc
c) ninja -C out/Debug -v webrtc_all

Hope this helps.

/Kaiduan

--

---
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.
For more options, visit https://groups.google.com/d/optout.

nazmus shakeeb

unread,
Mar 13, 2015, 11:46:23 AM3/13/15
to discuss...@googlegroups.com
Alex,

I have compiled a portion of WebRTC on linux armv6 using the instruction given in the following url.

The instruction really works on Raspberry Pi. It doesn't compile full WebRTC project. You can get some idea.

https://github.com/ipop-project/documentation/wiki/Building-the-code-for-Raspberry-Pi

Alexandre GOUAILLARD

unread,
Mar 13, 2015, 12:44:59 PM3/13/15
to discuss...@googlegroups.com
thanks guys, I m gonna try a few things over the week end and i will post my results here.
Given that libwertc is chromium in disguise, I was thinking about inspiring myself from this as well.

--

---
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.
For more options, visit https://groups.google.com/d/optout.

Alexandre GOUAILLARD

unread,
Mar 16, 2015, 4:32:00 AM3/16/15
to discuss...@googlegroups.com
as promised, some feedback. brief: I have not succeeded yet.

- I tried to use the info on the official arm linux build page of chromium, but it was not enough. I'm getting errors pointing to the fact the SDK for cross compilation was not installed.
- I quickly read the link provided by nazmus but it point to an outdated version of libwebrtc (3.52)

I will try to compile the version provided in the nazmus link and if sucessfull, inspire myself from the build.

In the meantime, if anybody has some update on linux arm, wether raspberry pi or not, please let me know ;-)

alex.

Vahid D

unread,
Mar 14, 2017, 9:52:58 PM3/14/17
to discuss-webrtc
Hi all;

I have the same problem. Does anybody have an answer? I'd be thankful.

Cheers,
Vahid

Alexandre GOUAILLARD

unread,
Mar 15, 2017, 2:01:05 AM3/15/17
to discuss...@googlegroups.com
are you trying to compile or cross-compile?

if you are compiling directly on an arm linux distribution, it should work out of the box nowadays.

--

---
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-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/ed9d2711-8f30-4de5-a00f-641c7756a964%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



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

Henrik Kjellander

unread,
Mar 19, 2017, 9:57:48 AM3/19/17
to discuss-webrtc
I'm afraid only ARM 32-bit Linux in Release mode compiles (we have a bot for that). 
for more details. Patches welcome :-)


-- sent from my Nexus 6P

Reply all
Reply to author
Forward
0 new messages