pristineio / webrtc-build-scripts

A set of build scripts useful for building WebRTC libraries for Android and iOS.
BSD 3-Clause "New" or "Revised" License
1.13k stars 447 forks source link

building for Android fails #13

Closed rogerso closed 10 years ago

rogerso commented 10 years ago

This is for revision 6958.

build_apprtc eventually fails to setup the build environment with the following:

Setting up build environment for Android
-bash: <~>/webrtc/trunk/build/install-build-deps-android.sh: No such file or directory
-bash: <~>/webrtc/trunk/build/android/envsetup.sh: No such file or directory

Then it becomes stuck:

[0:01:00] Still working on:
[0:01:00]   src
[0:01:10] Still working on:
[0:01:10]   src
[0:01:20] Still working on:
[0:01:20]   src
....
ex3ndr commented 10 years ago

same here, there are no build folder in trunk.

thebehera commented 10 years ago

So the same issue is occurring on iOS builds as of revision 6838. 6837 works fine. There was a change in the way the webrtc project is synced with chromium therefore causing a failure. I need to do more analysis on what changed before I can post a fix on the repo but for now this is one of the messages I see when building 6839.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

A C T I O N R E Q I R E D

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Because chromium/src is transitioning to Git (from SVN), we needed to

change the way that the WebRTC standalone checkout works. Instead of

individually syncing subdirectories of Chromium in SVN, we're now

syncing Chromium (and all of its DEPS, as defined by its own DEPS file),

into the chromium/src directory.

As such, all Chromium directories which are currently pulled by DEPS are

now replaced with a symlink into the full Chromium checkout.

To avoid disrupting developers, we've chosen to not delete your

directories forcibly, in case you have some work in progress in one of

them :).

ACTION REQUIRED:

Before running gclient sync|runhooks again, you must run:

trunk/setup_links.py --force

Which will replace all directories which now must be symlinks, after

prompting with a summary of the work-to-be-done.

ArikYa commented 10 years ago

I just spend some hours on this issue, and the short answer is that you just need patience and let it run. The code it tries to pull from the Chromium project is about 11G, but if you use the latest, they removed some unnecessary directories. It still took me over 30 minutes on a server with great internet speed

rogerso commented 10 years ago

Confirmed that build_apprtc 6837 works. build_apprtc with revisions later than 6837 fails to pull the build directory even after letting it run overnight.

ArikYa commented 10 years ago

What revision did you try? They removed the unnecessary pull at revision 6984. What is your internet speed? I plan to do a small tweak to the script today to avoid the "no such file" error when building for Android

rogerso commented 10 years ago

I only tried revision 6958. I was at home in Hong Kong with a 1000 Mbps FTTH line. I will try again after work tonight to see whether the scripts do not have this issue with r6984 and if so, will close this bug.

ArikYa commented 10 years ago

Let me know how r6984 goes. One thing to notice is that the git pull through client is slower than direct pull from Chromium. I’m not sure why that is, but I also commented on the WebRTC forums asking to have some progress indication while the pull is working.

rogerso commented 10 years ago

Actually I tried it with r7004 which was the latest by the time I got home. Together with 0e80ecf build_apprtc was successful. I am closing this issue. Thank you!

rogerso commented 10 years ago

BTW, even with r7004 it still wanted to pull from chromium which still took over 30 minutes...