arthenica / ffmpeg-kit

FFmpeg Kit for applications. Supports Android, Flutter, iOS, Linux, macOS, React Native and tvOS. Supersedes MobileFFmpeg, flutter_ffmpeg and react-native-ffmpeg.
https://arthenica.github.io/ffmpeg-kit
GNU Lesser General Public License v3.0
4.53k stars 604 forks source link

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "sws_freeContext" m4 macbook #1065

Open vishal-tickinfo opened 1 week ago

vishal-tickinfo commented 1 week ago

Description cannot locate symbol "sws_freeContext" while using ffmpeg open source code add the qtavplayer path in the project file according to readme of QtAVPlayer

Expected behavior set the lib of all in prebuilt of ffmpeg into the Qt directory in all android architecture but it could not locate the particular symbol.

Current behavior crashed during the run time

Logs E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread E AndroidRuntime: Process: com.datavideo.bcviewassist, PID: 30074 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "sws_freeContext" referenced by "/data/app/~~NUkaTFpkNqaR6e_xvV0vfw==/com.datavideo.bcviewassist-FNqY9EiouqygcGQUwbf6nQ==/lib/arm64/libplugins_multimedia_ffmpegmediaplugin_arm64-v8a.so"... E AndroidRuntime: at java.lang.Runtime.load0(Runtime.java:933) E AndroidRuntime: at java.lang.System.load(System.java:1729) E AndroidRuntime: at org.qtproject.qt.android.QtLoader.loadLibraryHelper(QtLoader.java:493) E AndroidRuntime: at org.qtproject.qt.android.QtLoader.lambda$loadLibraries$1$org-qtproject-qt-android-QtLoader(QtLoader.java:566) E AndroidRuntime: at org.qtproject.qt.android.QtLoader$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) E AndroidRuntime: at org.qtproject.qt.android.QtThread.lambda$run$0(QtThread.java:57) E AndroidRuntime: at org.qtproject.qt.android.QtThread$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) E AndroidRuntime: at org.qtproject.qt.android.QtThread$1.run(QtThread.java:25) E AndroidRuntime: at java.lang.Thread.run(Thread.java:1012) I Process : Sending signal. PID: 30074 SIG: 9

Environment

Other Add any other context about the problem here.

tanersener commented 1 week ago

This project does not produce a libplugins_multimedia_ffmpegmediaplugin_arm64-v8a.so file that produces this error.