Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stellite androd build error #56

Open
ak47for opened this issue Dec 19, 2017 · 1 comment
Open

stellite androd build error #56

ak47for opened this issue Dec 19, 2017 · 1 comment
Assignees

Comments

@ak47for
Copy link

ak47for commented Dec 19, 2017

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_headers__jni_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

@ak47for
Copy link
Author

ak47for commented Dec 21, 2017

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_headers__jni_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
sys.exit(main(sys.argv))
File "../../base/android/jni_generator/jni_generator.py", line 1381, in main
GenerateJNIHeader(input_file, output_file, options)
File "../../base/android/jni_generator/jni_generator.py", line 1286, in GenerateJNIHeader
jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
File "../../base/android/jni_generator/jni_generator.py", line 648, in CreateFromClass
jni_from_javap = JNIFromJavaP(stdout.split('\n'), options)
File "../../base/android/jni_generator/jni_generator.py", line 572, in init
self.fully_qualified_class = self.fully_qualified_class.replace('.', '/')
AttributeError: 'JNIFromJavaP' object has no attribute 'fully_qualified_class'
[9/1713] CC obj/base/third_party/libevent/libevent/http.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
`
I have install openjdk-7,and unset CLASSPATH. but error is still there.

@haru398801 haru398801 self-assigned this Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants