Giter VIP home page Giter VIP logo

Comments (5)

giordano avatar giordano commented on June 3, 2024 1

Alternatively, clear LD_LIBRARY_PATH when running julia, unless needed for some specific packages, for example

LD_LIBRARY_PATH="" julia

from ffmpeg.jl.

gipert avatar gipert commented on June 3, 2024 1

Ciao @giordano, indeed, I eventually figured out that my Geant4 installation (from the Arch Linux AUR repo) was adding /usr/lib to LD_LIBRARY_PATH... nasty! I just removed /etc/profile.d/geant4_profile.sh then.

from ffmpeg.jl.

gipert avatar gipert commented on June 3, 2024

Looks the same issue as in #36, a workaround is to manually point LD_LIBRARY_PATH to the artifact folder where libavformat.so is.

from ffmpeg.jl.

IanButterworth avatar IanButterworth commented on June 3, 2024

I've just hit this problem on a system where LD_LIBRARY_PATH isn't set, and it isn't fixed by LD_LIBRARY_PATH="" julia

Is there another mechanism other than LD_LIBRARY_PATH that can bring system ffmpeg in?

from ffmpeg.jl.

IanButterworth avatar IanButterworth commented on June 3, 2024

I just realized I was hitting this because on Julia < 1.8 there's a bug where the module import order isn't guaranteed (fixed by JuliaLang/julia#45861).

I was using a dep that used a system lib that imported ffmpeg, and thought that having using VideoIO before using that lib should have fixed it, but in some cases the order was messed up.

I fixed it by manually controlling when my package that used a system lib initializes, rather than automatically in its __init__()

Pretty nasty bug to debug

from ffmpeg.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.