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

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

Open
vishal-tickinfo opened this issue Nov 13, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@vishal-tickinfo
Copy link

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.

@tanersener
Copy link
Collaborator

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

@tanersener tanersener added the invalid This doesn't seem right label Nov 13, 2024
@vishal-tickinfo
Copy link
Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants