Gamaru / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Android - runhooks fails - google-play-services_lib/res': No such file or directory #550

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
export GYP_DEFINES="OS=android"
gclient runhooks
.gclient file in parent directory 
/usr/local/google/home/fbarchard/src/build/libyuva might not be the file you 
want to use

________ running '/usr/bin/python -u libyuv/sync_chromium.py --target-revision 
70ee602b6c186707286f9b5836a28311fe92e91e' in 
'/usr/local/google/home/fbarchard/src/build/libyuva'
Chromium already up to date:  70ee602b6c186707286f9b5836a28311fe92e91e

________ running '/usr/bin/python libyuv/setup_links.py' in 
'/usr/local/google/home/fbarchard/src/build/libyuva'

________ running '/usr/bin/python libyuv/gyp_libyuv' in 
'/usr/local/google/home/fbarchard/src/build/libyuva'
Updating projects from gyp files...
find: 
`/usr/local/google/home/fbarchard/src/build/libyuva/libyuv/third_party/android_t
ools/sdk//extras/google/google_play_services/libproject/google-play-services_lib
/res': No such file or directory
gyp: Call to 'find 
/usr/local/google/home/fbarchard/src/build/libyuva/libyuv/third_party/android_to
ols/sdk//extras/google/google_play_services/libproject/google-play-services_lib/
r
es -type f' returned exit status 1 while in 
chromium/src/third_party/android_tools/android_tools.gyp.
Error: Command '/usr/bin/python libyuv/gyp_libyuv' returned non-zero exit 
status 1 in /usr/local/google/home/fbarchard/src/build/libyuva

Original issue reported on code.google.com by fbarch...@google.com on 20 Jan 2016 at 2:28

GoogleCodeExporter commented 8 years ago
What if you do 
1: wipe the local copy with:
rm -rf 
/usr/local/google/home/fbarchard/src/build/libyuva/libyuv/third_party/android_to
ols/sdk//extras/google/google_play_services/

2: make sure you get a new sync run for the Chromium copy:
rm chromium/.last_sync_chromium

3. Sync again:
gclient sync

Original comment by kjellan...@google.com on 20 Jan 2016 at 6:35

GoogleCodeExporter commented 8 years ago
I created a new client

solutions = [
  { "name"        : "libyuv",
    "url"         : "https://chromium.googlesource.com/libyuv/libyuv",
    "deps_file"   : "DEPS",
    "managed"     : True,
    "custom_deps" : {
    },
    "safesync_url": "",
  },
]
target_os = ["android", "unix"]

and ran gclient sync

after license...

Do you accept the license? [y/n]:
Your version of the Google Play services library is not up to date. You might 
run into issues building or running the app. Please run 
`src/build/android/play_services/update.py dow
nload` to retry downloading it.
> Hook '/usr/bin/python src/build/android/play_services/update.py download' 
took 829.46 secs

________ running '/usr/bin/python 
src/build/linux/sysroot_scripts/install-sysroot.py --running-as-hook' in 
'/usr/local/google/home/fbarchard/src/build/libyuva/libyuv/chromium'
...

find: 
`/usr/local/google/home/fbarchard/src/build/libyuva/libyuv/third_party/android_t
ools/sdk//extras/google/google_play_services/libproject/google-play-services_lib
/res': No such
 file or directory
gyp: Call to 'find 
/usr/local/google/home/fbarchard/src/build/libyuva/libyuv/third_party/android_to
ols/sdk//extras/google/google_play_services/libproject/google-play-services_lib/
r
es -type f' returned exit status 1 while in 
chromium/src/third_party/android_tools/android_tools.gyp.
Error: Command '/usr/bin/python libyuv/gyp_libyuv' returned non-zero exit 
status 1 in /usr/local/google/home/fbarchard/src/build/libyuva

fbarchard@fbarchard-linux:~/src/build/libyuva/libyuv$ 
./build/android/play_services/update.py download
Traceback (most recent call last):
  File "./build/android/play_services/update.py", line 21, in <module>
    import devil_chromium
  File "./build/android/play_services/../devil_chromium.py", line 15, in <module>
    from devil import devil_env
  File "./build/android/play_services/../devil/devil_env.py", line 31, in <module>
    from catapult_base import dependency_manager # pylint: disable=import-error
ImportError: No module named catapult_base

Original comment by fbarch...@google.com on 21 Jan 2016 at 7:18

GoogleCodeExporter commented 8 years ago
The script doesn't know it can be used in a non-Chromium manner.

Do like this:
cd chromium/src
./build/android/play_services/update.py download
cd ../..

Original comment by kjellan...@google.com on 22 Jan 2016 at 8:36

GoogleCodeExporter commented 8 years ago
updated documentation to show work around

Original comment by fbarch...@google.com on 18 Feb 2016 at 5:42