Open ak47for opened 6 years ago
The above issue is resolved by add shell=True;
But,another error occured:
chromium is already exists: /home/suwenye/longzhi/stellite/third_party/chromium_android check chromium ... check chromium tag ... copy .gclient ... copy modified_files ... copy chromium/src/.gn ... copy node_binder files ... Running: ln -s /home/suwenye/longzhi/stellite/node_binder copy stellite files... Running: ln -s /home/suwenye/longzhi/stellite/stellite copya stellite build fakefiles ... Running: ln -s /home/suwenye/longzhi/stellite/build_android/src/tools/vim/chromium.ycm_extra_conf.py /home/suwenye/longzhi/stellite/.ycm_extra_conf.py generate ninja script ... Running: /home/suwenye/longzhi/stellite/third_party/depot_tools/gn gen /home/suwenye/longzhi/stellite/build_android/src/out_android_armv6/obj /home/suwenye/longzhi/stellite/build_android/.gclient_entries missing, .gclient file in parent directory /home/suwenye/longzhi/stellite/build_android might not be the file you want to use. Done. Made 1223 targets from 133 files in 426ms Running: ninja -C /home/suwenye/longzhi/stellite/build_android/src/out_android_armv6/obj stellite_http_client ninja: Entering directory
/home/suwenye/longzhi/stellite/build_android/src/out_android_armv6/obj'
[4/1713] ACTION //base:android_runtime_jni_headersjni_Runtime(//build/toolchain/android:clang_arm)
FAILED: gen/android_runtime_jni_headers/base/jni/Runtime_jni.h
python ../../base/android/jni_generator/jni_generator.py --depfile gen/base/android_runtime_jni_headers__jni_Runtime.d --jar_file ../../third_party/android_tools/sdk/platforms/android-23/android.jar --input_file java/lang/Runtime.class --optimize_generation=1 --ptr_type=long --output_dir gen/android_runtime_jni_headers/base/jni --includes ../../../../../../base/android/jni_generator/jni_generator_helper.h --native_exports_optional
Traceback (most recent call last):
File "../../base/android/jni_generator/jni_generator.py", line 1388, in
lz@lz:~/work/code/stellite$ ./tools/build.py --target-platform=android --target stellite_http_client build chromium is already exists: /home/lz/work/code/stellite/third_party/chromium_android check chromium ... check chromium tag ... copy .gclient ... copy modified_files ... copy chromium/src/.gn ... copy node_binder files ... Running: ln -s /home/lz/work/code/stellite/node_binder copy stellite files... Running: ln -s /home/lz/work/code/stellite/stellite copya stellite build fakefiles ... Running: ln -s /home/lz/work/code/stellite/build_android/src/tools/vim/chromium.ycm_extra_conf.py /home/lz/work/code/stellite/.ycm_extra_conf.py generate ninja script ... Running: /home/lz/work/code/stellite/third_party/depot_tools/gn gen /home/lz/work/code/stellite/build_android/src/out_android_armv6/obj Done. Made 1223 targets from 133 files in 748ms Running: ninja -C /home/lz/work/code/stellite/build_android/src/out_android_armv6/obj stellite_http_client ninja: Entering directory `/home/lz/work/code/stellite/build_android/src/out_android_armv6/obj' [5/1778] ACTION //base:android_runtime_jni_headersjni_Runtime(//build/toolchain/android:clang_arm) FAILED: gen/android_runtime_jni_headers/base/jni/Runtime_jni.h python ../../base/android/jni_generator/jni_generator.py --depfile gen/base/android_runtime_jni_headers__jni_Runtime.d --jar_file ../../third_party/android_tools/sdk/platforms/android-23/android.jar --input_file java/lang/Runtime.class --optimize_generation=1 --ptr_type=long --output_dir gen/android_runtime_jni_headers/base/jni --includes ../../../../../../base/android/jni_generator/jni_generator_helper.h --native_exports_optional Traceback (most recent call last): File "../../base/android/jni_generator/jni_generator.py", line 1387, in
sys.exit(main(sys.argv))
File "../../base/android/jni_generator/jni_generator.py", line 1380, in main
GenerateJNIHeader(input_file, output_file, options)
File "../../base/android/jni_generator/jni_generator.py", line 1285, in GenerateJNIHeader
jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
File "../../base/android/jni_generator/jni_generator.py", line 645, in CreateFromClass
stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 711, in init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[10/1778] CXX obj/base/base_paths/base_paths_android.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "./tools/build.py", line 2037, in
sys.exit(main(sys.argv[1:]))
File "./tools/build.py", line 2026, in main
build.build()
File "./tools/build.py", line 1384, in build
build.build_target(self.target)
File "./tools/build.py", line 1007, in build_target
self.execute(command)
File "./tools/build.py", line 723, in execute
raise Exception('command execution are failed')
Exception: command execution are failed