I’m trying to run a macro on Win11 with TF1Convolution that uses FFT.
However, I get the following errors:
“cling::DynamicLibraryManager::loadLibrary(): LoadLibrary: returned 126: The specified module could not be found.
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libFFTW.dll for TFFTRealComplex
cling::DynamicLibraryManager::loadLibrary(): LoadLibrary: returned 126: The specified module could not be found.
Error in <TVirtualFFT::FFT>: handler not found
Warning in <TF1Convolution::MakeFFTConv>: Cannot use FFT, probably FFTW package is not available. Switch to numerical convolution”
I get the same errors (besides the last line) when trying to run the FFT tutorial macro tutorials/fft/FFT.C
I believe that my ROOT build (which was downloaded as a binary) has FFT support. I have libFFTW.dll under root/bin. The command “\root\bin>root-config --has-fftw3” returns “yes”.
I also downloaded the FFTW3 DLLs, e.g. libfftw3-3.dll from the web.
Both root\bin and the directory with the FFTW3 DLLs are added to the PATH.
Does anyone have an idea what could be the problem?
ROOT Version: 6.26.14 Platform: Win11 Compiler: Not Provided
Welcome to the ROOT Community!
This seems odd. Have you tried to manually load the library at the prompt with gSystem->Load? Can you find the library?
Adding @bellenot in the loop.
I have FFTW 3.3.5 and the correct architecture (x64).
I cannot load the library from the prompt either:
“root [0] gSystem->Load(“libFFTW.dll”)
cling::DynamicLibraryManager::loadLibrary(): LoadLibrary: returned 126: The specified module could not be found.
(int) -1”