Migrating the Library Using C Language
If the KML_FFT binary dynamic library is obtained, perform the following steps:
- Replace the interface with the "fftw" prefix with the "kml_fft" prefix globally, and the interface with the "fftwf" prefix with the "kml_fftf" prefix. If the macro definition constant defined in the FFTW header file is used, replace the "FFTW" prefix with the "KML_FFT" prefix. Replace #include <fftw.h> with #include <kfft.h>.
- Replace -lfftw/-lfftwf with -lkfft/-lkfftf in the compilation options.
- Add environment variables. /PATH_TO_KFFT indicates the installation path.
export LD_LIBRARY_PATH=/PATH_TO_KFFT:$LD_LIBRARY_PATH
Parent topic: Migrating a Library from FFTW to KML_FFT