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

Error "cannot locate symbol "stpcpy" referenced by "libenc.so"" #234

Closed
rzhepish opened this Issue Nov 22, 2016 · 4 comments

Comments

Projects
None yet
3 participants
@rzhepish

rzhepish commented Nov 22, 2016

On Lenovo p780, MTK6589. ARM-v7a appears error while starting application.
Application crashes instantly during launch. Error message below:

11-18 17:20:12.770 18852-18852/net.ossrs.yasea.demo W/dalvikvm: threadid=1: calling UncaughtExceptionHandler 11-18 17:20:12.771 18852-18852/net.ossrs.yasea.demo E/AndroidRuntime: FATAL EXCEPTION: main Process: net.ossrs.yasea.demo, PID: 18852 java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "stpcpy" referenced by "libenc.so"... at java.lang.Runtime.loadLibrary(Runtime.java:371) at java.lang.System.loadLibrary(System.java:526) at net.ossrs.yasea.SrsEncoder.<clinit>(SrsEncoder.java:540) at net.ossrs.yasea.SrsPublisher.<init>(SrsPublisher.java:34) at net.ossrs.yasea.demo.MainActivity.onCreate(MainActivity.java:69) at android.app.Activity.performCreate(Activity.java:5277) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2322) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2410) at android.app.ActivityThread.access$800(ActivityThread.java:155) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1331) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:5395) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:837) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:653) at dalvik.system.NativeStart.main(Native Method)

@spurd0

This comment has been minimized.

Show comment
Hide comment
@spurd0

spurd0 Nov 22, 2016

Have same problem on Samsung s3 using Android 4.4.4.
Compile config:
compileSdkVersion 24
buildToolsVersion "24.0.3"
minSdkVersion 16
targetSdkVersion 22
what is your building config & android ver on Lenovo p780?
Are you using build with this fix?

spurd0 commented Nov 22, 2016

Have same problem on Samsung s3 using Android 4.4.4.
Compile config:
compileSdkVersion 24
buildToolsVersion "24.0.3"
minSdkVersion 16
targetSdkVersion 22
what is your building config & android ver on Lenovo p780?
Are you using build with this fix?

@begeekmyfriend

This comment has been minimized.

Show comment
Hide comment
@begeekmyfriend

begeekmyfriend Nov 22, 2016

Owner

Lenovo? Try x86 please. The scripts have been provided.

Owner

begeekmyfriend commented Nov 22, 2016

Lenovo? Try x86 please. The scripts have been provided.

@begeekmyfriend

This comment has been minimized.

Show comment
Hide comment
@begeekmyfriend

begeekmyfriend Nov 25, 2016

Owner

Now x86 jniLibs are provided.

Owner

begeekmyfriend commented Nov 25, 2016

Now x86 jniLibs are provided.

@begeekmyfriend

This comment has been minimized.

Show comment
Hide comment
@begeekmyfriend

begeekmyfriend Dec 13, 2016

Owner

I have found the reason that it is the libc header compatibility between API 21 and earlier platform.

Owner

begeekmyfriend commented Dec 13, 2016

I have found the reason that it is the libc header compatibility between API 21 and earlier platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment