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
Platform: macOS/`
Architecture: arm64-v8a,arm64, `
Version of ffmpeg : v6.0LTS
Source branch: main, development
Xcode version: 16.1
Cocoapods version: 1.10.3
Android Studio version: 34
Android NDK version: 26.
flutter doctor:
react-native info:
qt creator version 6.8.0
Other
Add any other context about the problem here.
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
macOS
/`arm64-v8a
,arm64
, `v6.0LTS
main
,development
16.1
1.10.3
34
26.
Other Add any other context about the problem here.