In Ubuntu Complied skia for Android Error, Help me Please.

186 views
Skip to first unread message

郭明月

unread,
Apr 15, 2017, 5:05:17 AM4/15/17
to skia-discuss
I had download the depot_tools 、 skia 、Android ndk;

 According to the https://skia.org/ of the guidance.

Do step and step;

then :
$ bin/gn gen out/arm64    --args='ndk="/home/mingyue/android_ndk" target_cpu="arm64"'
Done.Made 80 targets form 36 files in 71ms; //But the out/arm64/obj/third_party folder is empty. Have a error ?
$ ninja -C out/arm64
ninja: error: '../../third_party/externals/spirv-tools/utils/update_build_version.py', 
needed by 'obj/third_party/spirv-tools/spirv_build_version.inputdeps.stamp', missing and no known rule to make it
mingyue@ubuntu:~/git/skia$ bin/gn gen out/arm64    --args='ndk="/home/mingyue/android-ndk-r14b" target_cpu="arm64"'
How I solve this error? thinks!




Mike Klein

unread,
Apr 15, 2017, 7:34:21 AM4/15/17
to skia-discuss
Hmm.  Seems like maybe something went wrong syncing third-party dependencies.  Can you share what prints out when you run python tools/git-sync-deps?  Here's what mine looks like:

~/skia (master) $ python tools/git-sync-deps
common                               @ 9737551d7a52c3db3262db5856e6bcd62c462b92
third_party/externals/dng_sdk        @ 96443b262250c390b0caefbf3eed8463ba35ecae
third_party/externals/piex           @ 8f540f64b6c170a16fb7e6e52d61819705c1522a
third_party/externals/microhttpd     @ 748945ec6f1c67b7efc934ab0808e1d32f2fb98d
third_party/externals/zlib           @ 4576304a4b9835aa8646c9735b079e1d96858633
third_party/externals/sfntly         @ b18b09b6114b9b7fe6fc2f96d8b15e8a72f66916
third_party/externals/jsoncpp        @ 1.0.0
third_party/externals/freetype       @ 447a0b62634802d8acdb56008cff5ff4e50be244
third_party/externals/spirv-tools    @ 1fb8c37b5718118b49eec59dc383cfa3f98643c0
third_party/externals/icu            @ ec9c1133693148470ffe2e5e53576998e3650c1d
third_party/externals/libjpeg-turbo  @ 6de58e0d28014caf2fc1370145f22fd6d65f63e3
third_party/externals/harfbuzz       @ 1.4.2
third_party/externals/spirv-headers  @ 2d6ba39368a781edd82eff5df2b6bc614e892329
third_party/externals/libwebp        @ v0.6.0
buildtools                           @ e6b510a9daf822bbe9f922c200c58150803d2fd8
third_party/externals/angle2         @ 57f17473791703ac82add77c3d77d13d8e2dfbc4
third_party/externals/sdl            @ 9b526d28cb2d7f0ccff0613c94bb52abc8f53b6f
third_party/externals/expat          @ android-6.0.1_r55
third_party/externals/imgui          @ 6384eee34f08cb7eab8d835043e1738e4adcdf75

You might also want to try clearing that all out (rm -rf third_party/externals) and syncing it again fresh.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.

郭明月

unread,
Apr 16, 2017, 9:44:29 PM4/16/17
to skia-discuss
I  do it first.  But it seems to have some mistakes.

mingyue@ubuntu:~/git/skia$ python tools/git-sync-deps
common                               @ 9737551d7a52c3db3262db5856e6bcd62c462b92
buildtools                           @ e6b510a9daf822bbe9f922c200c58150803d2fd8
third_party/externals/expat          @ android-6.0.1_r55
third_party/externals/piex           @ 8f540f64b6c170a16fb7e6e52d61819705c1522a
third_party/externals/microhttpd     @ 748945ec6f1c67b7efc934ab0808e1d32f2fb98d
third_party/externals/freetype       @ 447a0b62634802d8acdb56008cff5ff4e50be244
third_party/externals/spirv-headers  @ 2d6ba39368a781edd82eff5df2b6bc614e892329
third_party/externals/zlib           @ 4576304a4b9835aa8646c9735b079e1d96858633
third_party/externals/dng_sdk        @ 96443b262250c390b0caefbf3eed8463ba35ecae
third_party/externals/harfbuzz       @ 1.4.2
third_party/externals/libjpeg-turbo  @ 6de58e0d28014caf2fc1370145f22fd6d65f63e3
third_party/externals/icu            @ ec9c1133693148470ffe2e5e53576998e3650c1d
third_party/externals/jsoncpp        @ 1.0.0
error: RPC failed; result=56, HTTP code = 200
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Exception in thread Thread-9:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "tools/git-sync-deps", line 132, in git_checkout_to_directory
    [git, 'clone', '--quiet', repo, directory])
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['git', 'clone', '--quiet', 'https://github.com/ocornut/imgui.git', 'third_party/externals/imgui']' returned non-zero exit status 128

Exception in thread Thread-12:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "tools/git-sync-deps", line 132, in git_checkout_to_directory
    [git, 'clone', '--quiet', repo, directory])
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['git', 'clone', '--quiet', 'https://chromium.googlesource.com/webm/libwebp.git', 'third_party/externals/libwebp']' returned non-zero exit status 128

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "tools/git-sync-deps", line 132, in git_checkout_to_directory
    [git, 'clone', '--quiet', repo, directory])
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['git', 'clone', '--quiet', 'https://chromium.googlesource.com/angle/angle.git', 'third_party/externals/angle2']' returned non-zero exit status 128

third_party/externals/spirv-tools    @ 1fb8c37b5718118b49eec59dc383cfa3f98643c0
third_party/externals/sfntly         @ b18b09b6114b9b7fe6fc2f96d8b15e8a72f66916
third_party/externals/sdl            @ 9b526d28cb2d7f0ccff0613c94bb52abc8f53b6f

I use vpn do it in ubuntu And set git proxy; Is the reason for network instability?  I tried it many times, but that's it. thank you for your reply!



在 2017年4月15日星期六 UTC+8下午7:34:21,Mike Klein写道:

郭明月

unread,
Apr 16, 2017, 11:08:54 PM4/16/17
to skia-discuss
Think you very much!  Clear and try again. It is ok!


在 2017年4月15日星期六 UTC+8下午7:34:21,Mike Klein写道:
Hmm.  Seems like maybe something went wrong syncing third-party dependencies.  Can you share what prints out when you run python tools/git-sync-deps?  Here's what mine looks like:

Mike Klein

unread,
Apr 17, 2017, 7:04:50 AM4/17/17
to skia-discuss
Glad to hear it!
Reply all
Reply to author
Forward
0 new messages