I am facing this issue, I have provided the information that has been used to solve this issue. https://github.com/JuliaMath/FFTW.jl/issues/110
It’s local issue to my system and works fine for another contributor there.
(@v1.6) pkg> activate .
Activating environment at `~/julia-related/MusicProcessing.jl/Project.toml`
julia> using Revise
julia> using MusicProcessing
julia> using FFTW
julia> pathof(FFTW)
"/home/ashwani/.julia/packages/FFTW/Iu2GG/src/FFTW.jl"
julia> FFTW.libfftw3
"/home/ashwani/.julia/artifacts/81791030d1dcd08bf0c67b3e8224cb573d0f5a0a/lib/libfftw3.so"
julia> FFTW.libfftw3f
"/home/ashwani/.julia/artifacts/81791030d1dcd08bf0c67b3e8224cb573d0f5a0a/lib/libfftw3f.so"
julia> using Libdl
julia> Libdl.dlsym(Libdl.dlopen(FFTW.libfftw3), :fftw_threads_set_callback)
Ptr{Nothing} @0x00007fb0086c2c40
julia> using SHA
julia> bytes2hex(open(FFTW.libfftw3) do f; sha2_256(f); end)
"39042b7f2893eec46e184d358125be75eb196045b844421b2e9f7a90d80b25fa"
julia> bytes2hex(open(FFTW.libfftw3f) do f; sha2_256(f); end)
"da8463cf4325e73178e97fcd69b62f31707132aed390650ca8679881a6637de2"
# this is where issue is in my system
julia> Libdl.dlsym(Libdl.dlopen(FFTW.libfftw3f), :fftw_threads_set_callback)
ERROR: could not load symbol "fftw_threads_set_callback":
/home/ashwani/.julia/artifacts/81791030d1dcd08bf0c67b3e8224cb573d0f5a0a/lib/libfftw3f.so: undefined symbol: fftw_threads_set_callback
julia> audio_one_channel = SampleBuf(rand(1000), 10)
1000-element SampleBuf{Float64, 1}:
0.7188992365329432
0.9291267382769475
0.9235711252208105
0.7298652018343716
⋮
0.7817233868027189
0.9691375556064439
0.009171005643992869
julia> speedup(audio_one_channel, 1.5)
# also this doesn't make much sense yet to me
ERROR: could not load library "libfftw3"
libfftw3.so: cannot open shared object file: No such file or directory
Stacktrace:
[1] plan_dft_c2r_1d!
@ ~/julia-related/MusicProcessing.jl/src/complex.jl:22 [inlined]
[2] irfft!(dest::Vector{Float64}, src::Ptr{ComplexF64}, nfft::Int64)
@ MusicProcessing ~/julia-related/MusicProcessing.jl/src/complex.jl:35
[3] istft(stft::Matrix{ComplexF64}, samplerate::Float64, windowsize::Int64, hopsize::Int64; nfft::Int64, window::typeof(DSP.Windows.hanning))
@ MusicProcessing ~/julia-related/MusicProcessing.jl/src/TFR.jl:117
[4] istft
@ ~/julia-related/MusicProcessing.jl/src/TFR.jl:101 [inlined]
[5] #speedup#3
@ ~/julia-related/MusicProcessing.jl/src/audio.jl:99 [inlined]
[6] speedup (repeats 3 times)
@ ~/julia-related/MusicProcessing.jl/src/audio.jl:97 [inlined]
[7] top-level scope
@ REPL[15]:1
version info:
julia> versioninfo()
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)