JuliaIO / FFMPEG.jl

Julia Package for the FFMPEG builder binaries
MIT License
34 stars 13 forks source link

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

Open GiggleLiu opened 4 months ago

GiggleLiu commented 4 months ago

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 commented 2 weeks ago

What are you doing exactly to reproduce the bug above?