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

Problem running webrtc_get #18

Closed smithaaron closed 10 years ago

smithaaron commented 10 years ago

I'm on OSX and using the vagrant vm started form the android directory.

When I run webrtc_get it finishes with this

Updated to revision 7413.
Syncing projects: 100% (3/3), done.                      

________ running '/usr/bin/python -c import os, sys;script = os.path.join('trunk', 'check_root_dir.py');_ = os.system('%s %s' % (sys.executable, script)) if os.path.exists(script) else 0' in '/home/vagrant/webrtc'
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                      A C T I O N     R E Q I R E D
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

It looks like you have a legacy checkout where the solution's top-level
directory is named 'trunk'. From now on, it must be named 'src'.

What you need to do is to:

1. Edit your .gclient file and change the solution name from 'trunk' to 'src'
2. Rename your 'trunk' directory to 'src'
3. Re-run gclient sync (or gclient runhooks)

________ running '/usr/bin/python -u src/sync_chromium.py --target-revision 2d714fae183152299b3cbf0056eab5fe8bb75e87' in '/home/vagrant/webrtc'
/usr/bin/python: can't open file 'src/sync_chromium.py': [Errno 2] No such file or directory
Error: Command /usr/bin/python -u src/sync_chromium.py --target-revision 2d714fae183152299b3cbf0056eab5fe8bb75e87 returned non-zero exit status 2 in /home/vagrant/webrtc

What am I supposed to do here? There's already a directory named 'src' at the same level as 'trunk'.

aaalaniz commented 10 years ago

@smithaaron thanks for the find! I believe the issue has been resolved with these latest changes https://github.com/pristineio/webrtc-build-scripts/commit/4881a5bc0ee2fdcfefbacafa8c7e848a1b9c5787.

As the prompt commands, go ahead and execute the following before updating your build scripts and building again.

Edit your .gclient file and change the solution name from 'trunk' to 'src'

    gclient config --name=src http://webrtc.googlecode.com/svn/trunk
    echo "target_os = ['unix', 'android']" >> .gclient

Rename your 'trunk' directory to 'src''

    mv trunk src

Re-run gclient sync

    gclient sync

I'm closing the issue.