JuliaIO / VideoIO.jl

Reading and writing of video files in Julia via ffmpeg
https://juliaio.github.io/VideoIO.jl/stable
Other
126 stars 53 forks source link

Fedora: have_avdevice not defined #226

Closed hearnsj closed 4 years ago

hearnsj commented 4 years ago

After giving due praise on the Discourse.. I tried to use VideoIO on Julia 1.4.0-rc2.0 OS is Fedora 31 workstation, and the hardware is an HP Spectre laptop

I get this error: ERROR: LoadError: UndefVarError: have_avdevice not defined I am unsure if this is a permissions error on the /dev/vido0 or video1 devices, though the error is pretty clear.

(@v1.4) pkg> add VideoIO Resolving package versions... Installed ProgressMeter ─ v1.2.0 Updating ~/.julia/environments/v1.4/Project.toml [d6d074c3] + VideoIO v0.6.10 Updating ~/.julia/environments/v1.4/Manifest.toml [c27321d9] + Glob v1.2.0 [92933f4c] + ProgressMeter v1.2.0 [d6d074c3] + VideoIO v0.6.10

julia> using VideoIO [ Info: Precompiling VideoIO [d6d074c3-1acf-5d4c-9a43-ef38773959a2] ERROR: LoadError: UndefVarError: have_avdevice not defined Stacktrace: [1] getproperty(::Module, ::Symbol) at ./Base.jl:26 [2] top-level scope at /home/hearnsj/.julia/packages/VideoIO/TXO2W/src/VideoIO.jl:22 [3] include(::Module, ::String) at ./Base.jl:377 [4] top-level scope at none:2 [5] eval at ./boot.jl:331 [inlined] [6] eval(::Expr) at ./client.jl:449 [7] top-level scope at ./none:3 in expression starting at /home/hearnsj/.julia/packages/VideoIO/TXO2W/src/VideoIO.jl:22 ERROR: Failed to precompile VideoIO [d6d074c3-1acf-5d4c-9a43-ef38773959a2] to /home/hearnsj/.julia/compiled/v1.4/VideoIO/tZxJ7_sGFhn.ji. Stacktrace: [1] error(::String) at ./error.jl:33 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272 [3] _require(::Base.PkgId) at ./loading.jl:1029 [4] require(::Base.PkgId) at ./loading.jl:927 [5] require(::Module, ::Symbol) at ./loading.jl:922

IanButterworth commented 4 years ago

Should be fixed in 0.6.11. Try updating.

It was a bad compat bound for FFMPEG and a breaking change upstream in FFMPEG that was released.

hearnsj commented 4 years ago

Working with 0.6.11 on Fedor 31! Builds OK I can capture a frame from the webcam if I am in the video group