Hello,
I'm trying to build Skia for android, but unfortunately I'm stuck with the following issue:
[jenkins@jenkins skia]$ ./platform_tools/android/bin/android_ninja -d x86
ANDROID_HOME not set so we are setting it to a default value of ANDROID_SDK_ROOT
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "/opt/skia/skia/gyp_skia", line 157, in <module>
res = gyp.main(args)
File "/opt/skia/skia/third_party/externals/gyp/pylib/gyp/__init__.py", line 538, in main
return gyp_main(args)
File "/opt/skia/skia/third_party/externals/gyp/pylib/gyp/__init__.py", line 523, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "/opt/skia/skia/third_party/externals/gyp/pylib/gyp/generator/ninja.py", line 2415, in GenerateOutput
pool.map(CallGenerateOutputForConfig, arglists)
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/multiprocessing/pool.py", line 250, in map
return self.map_async(func, iterable, chunksize).get()
File "/opt/skia/skia/platform_tools/android/toolchains/x86-r12b-14/lib/python2.7/multiprocessing/pool.py", line 554, in get
raise self._value
AttributeError: 'module' object has no attribute 'md5'
Building this on a Centos 7.2 machine.
I installed the relative python dev package and all kinds of SSL related packages.
I got to the point where importing the hashlib on python on the host machine works.
But from the looks of things skia downloads its own copy of python which has difficulty finding the necessary crypto libraries.