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

FFMPEG fails to compile on Julia 1.10.3, Mac M2 CPU #61

Open
GiggleLiu opened this issue May 3, 2024 · 1 comment
Open

FFMPEG fails to compile on Julia 1.10.3, Mac M2 CPU #61

GiggleLiu opened this issue May 3, 2024 · 1 comment

Comments

@GiggleLiu
Copy link

Error message

ERROR: LoadError: InitError: could not load library "/Users/liujinguo/.julia/artifacts/6095fcd268ea712c0f786f5ff1a45bf0eb7b005e/lib/libavdevice.58.13.100.dylib"
dlopen(/Users/liujinguo/.julia/artifacts/6095fcd268ea712c0f786f5ff1a45bf0eb7b005e/lib/libavdevice.58.13.100.dylib, 0x0001): Library not loaded: @rpath/libssl.3.dylib
  Referenced from: <5CE352A0-5EC6-3D2D-BDBF-A9642EF62321> /Users/liujinguo/.julia/artifacts/6095fcd268ea712c0f786f5ff1a45bf0eb7b005e/lib/libavdevice.58.13.100.dylib
  Reason: tried: '/Users/liujinguo/.julia/artifacts/6095fcd268ea712c0f786f5ff1a45bf0eb7b005e/lib/./libssl.3.dylib' (no such file), '/Users/liujinguo/.julia/artifacts/6095fcd268ea712c0f786f5ff1a45bf0eb7b005e/lib/./libssl.3.dylib' (no such file), '/Users/liujinguo/.julia/juliaup/julia-1.10.3+0.aarch64.apple.darwin14/lib/julia/libssl.3.dylib' (no such file), '/Users/liujinguo/.julia/juliaup/julia-1.10.3+0.aarch64.apple.darwin14/lib/julia/../libssl.3.dylib' (no such file), '/Users/liujinguo/.julia/juliaup/julia-1.10.3+0.aarch64.apple.darwin14/lib/libssl.3.dylib' (no such file), '/usr/local/lib/libssl.3.dylib' (no such file), '/usr/lib/libssl.3.dylib' (no such file, not in dyld cache)
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl ./libdl.jl:117
  [2] dlopen(s::String, flags::UInt32)
    @ Base.Libc.Libdl ./libdl.jl:116
  [3] macro expansion
    @ ~/.julia/packages/JLLWrappers/pG9bm/src/products/library_generators.jl:63 [inlined]
  [4] __init__()
    @ FFMPEG_jll ~/.julia/packages/FFMPEG_jll/wpaSV/src/wrappers/aarch64-apple-darwin.jl:39

It seems the required library is not found.

Temporary Solution

Hope the following temporary solution can help users having the same compiling issue.

brew install openssl
sudo ln -s /opt/homebrew/opt/openssl/lib/libssl.3.dylib /usr/local/lib/
sudo ln -s /opt/homebrew/opt/openssl/lib/libcrypto.3.dylib /usr/local/lib/
@giordano
Copy link
Member

What are you doing exactly to reproduce the bug above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants