In my program test.C I use another program decov.C in which a deconvolution algorithm is implemented. This program is not written by myself but was part of the PhD of someone else, but during my thesis I could just use it (just #include <decov.C>). Unfortunately I do not have contact to the person, who wrote everything (left before I started the thesis). Now I want to use the deconvolution algorithm on a new computer, but it does not work.
The program includes root-packages as well as fftw3.h (which was available on the old pc, but not on the new computer).
#include <TCanvas.h> #include <fstream> #include <TProfile.h> #include <TMath.h> #include <TH2F.h> #include <TGraph.h> #include <iostream> #include <sstream> #include "/home/student/Software/fftw-3.2.2/api/fftw3.h"
Since I never used fftw3 before, I just downloaded it from http://www.fftw.org/ and installed it with:
./configure --prefix=/home/student/Software/fftw-3.2.2 --enable-shared=yes make --jobs=8 make install
After that I set the environment variables in the .bashrc:
export LD_LIBRARY_PATH=/home/student/Software/fftw-3.2.2/lib:$LD_LIBRARY_PATH export LD_RUN_PATH=/home/student/Software/fftw/lib
When I run test.C (which includes decov.C which includes fftw3.h), I get the error:
root test.C: Error: Invalid type 'fftw_plan' in declaration of 'plan_src,plan_psf,plan_mult'Error: Invalid type 'fftw_plan' in declaration of 'plan_src,plan_psf,plan_mult' LR.C:581: Error: Symbol fftw_plan plan_src,plan_psf,plan_mult is not defined in current scope decov.C:581: *** Interpreter error recovered ***
I think that I did not link everything in the right way. I read also something about compiling with shared libraries. However, I have already used the program decov.C (during my thesis), and there everything worked fine, even if I didn’t compile anything…
Frankly, I am confused… I do not understand how to use fftw3 in root.
I am not sure if I posted the question in the right section, please correct me. The question maybe sounds a bit stupid, but I really don’t what else to do or who to ask. Please help me.
_ROOT Version: 5.34.32
Platform: Not Provided
Compiler: Not Provided