You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hi @tanersener I resolved this issue by using ffmpeg 7.0 version of library. Qt has inbuilt libraries of ffmpeg in there latest version of multimedia and Qt Documentation says that only ffmpeg 7.1 version is supported in the latest version of qt.
Note :- use only static library in mac or ios (this works fine with me).
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.
The text was updated successfully, but these errors were encountered: