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

run.sh can not execute correctly in sdk 15 #25

Open
sxyy opened this issue Mar 21, 2016 · 1 comment
Open

run.sh can not execute correctly in sdk 15 #25

sxyy opened this issue Mar 21, 2016 · 1 comment

Comments

@sxyy
Copy link

sxyy commented Mar 21, 2016

i run the run.sh in sdk 15 machine, but i find the following codes always.

cvt1512:minicap cvter$ ./run.sh autosize
+ ndk-build
[armeabi-v7a] Install        : minicap => libs/armeabi-v7a/minicap
[armeabi-v7a] Install        : minicap-nopie => libs/armeabi-v7a/minicap-nopie
[armeabi-v7a] Install        : minicap.so => libs/armeabi-v7a/minicap.so
[arm64-v8a] Install        : minicap => libs/arm64-v8a/minicap
[arm64-v8a] Install        : minicap-nopie => libs/arm64-v8a/minicap-nopie
[arm64-v8a] Install        : minicap.so => libs/arm64-v8a/minicap.so
[x86] Install        : minicap => libs/x86/minicap
[x86] Install        : minicap-nopie => libs/x86/minicap-nopie
[x86] Install        : minicap.so => libs/x86/minicap.so
[x86_64] Install        : minicap => libs/x86_64/minicap
[x86_64] Install        : minicap-nopie => libs/x86_64/minicap-nopie
[x86_64] Install        : minicap.so => libs/x86_64/minicap.so
++ adb shell getprop ro.product.cpu.abi
++ tr -d '\r'
+ abi=armeabi-v7a
++ adb shell getprop ro.build.version.sdk
++ tr -d '\r'
+ sdk=15
++ adb shell getprop ro.build.version.release
++ tr -d '\r'
+ rel=4.0.4
+ (( 15 >= 16 ))
+ bin=minicap-nopie
+ args=
+ '[' autosize = autosize ']'
+ set +o pipefail
++ adb shell dumpsys window
++ grep -Eo 'init=\d+x\d+'
++ head -1
++ cut -d= -f 2
+ size=1280x720
+ '[' 1280x720 = '' ']'
+ args='-P 1280x720@1280x720/0'
+ set -o pipefail
+ shift
+ dir=/data/local/tmp/minicap-devel
+ adb shell 'mkdir /data/local/tmp/minicap-devel 2>/dev/null'
+ adb push libs/armeabi-v7a/minicap-nopie /data/local/tmp/minicap-devel
211 KB/s (349928 bytes in 1.612s)
+ '[' -e jni/minicap-shared/aosp/libs/android-4.0.4/armeabi-v7a/minicap.so ']'
+ adb push jni/minicap-shared/aosp/libs/android-15/armeabi-v7a/minicap.so /data/local/tmp/minicap-devel
112 KB/s (5700 bytes in 0.049s)
+ adb shell LD_LIBRARY_PATH=/data/local/tmp/minicap-devel /data/local/tmp/minicap-devel/minicap-nopie -P 1280x720@1280x720/0
link_image[1936]: 28941 could not load needed library 'minicap.so' for '/data/local/tmp/minicap-devel/minicap-nopie' (link_image[1936]: 28941 could not load needed library 'libutils.so' for 'minicap.so' (link_image[1936]: 28941 could not load needed library 'libz.so' for 'libutils.so' (link_image[1936]: 28941 could not load needed library 'libc.so.6' for 'libz.so' (load_library[1091]: Library 'libc.so.6' not found))))CANNOT LINK EXECUTABLE
+ adb shell rm -r /data/local/tmp/minicap-devel
@sorccu
Copy link
Member

sorccu commented Oct 22, 2016

I think it has more to do with the device. The issue is quite old by now but if you have time, post here which device you were using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants