hi,
I installed root +fftw3 using macports but I do not understand where is the fftw3.h
as a matter of fact I would link this library with Eclipse program, but I am not able and the program does not compile
how to do?
regards
Antonio
hi,
I installed root +fftw3 using macports but I do not understand where is the fftw3.h
as a matter of fact I would link this library with Eclipse program, but I am not able and the program does not compile
how to do?
regards
Antonio
Have you tried to find it with spotlight ? (on the top bar on the right side)
yes
the file is in /opt/local/include folder
In Eclipse I put the path of this folder but it does not change the results
when I compile it gives me this error:
antonios-MacBook-Pro:Release antonio$ make all
Building target: sis3316_gui_test
Invoking: GCC C++ Linker
g++ -L/opt/local/libexec/root5/lib/root -L/opt/local/include/fftw3.h -o “sis3316_gui_test” ./src/sis3316_cern_root_class.o ./src/sis3316_class.o ./src/sis3316_ethernet_access_class.o ./src/sis3316_gui_test.o -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lpthread -lm -ldl -lGui -lfftw3
ld: warning: path ‘/opt/local/include/fftw3.h’ following -L not a directory
ld: library not found for -lfftw3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [sis3316_gui_test] Error 1
The right syntax would be:
-I /opt/local/include/
ok, but how could I include using Eclipse. I put the path in the include options but it seems to not find it
do ou know how to configure Eclipse properly for this?
do you get some error message now ? if yes, which one ?
this is the output
antonios-MacBook-Pro:Release antonio$ make all
Building target: sis3316_gui_test
Invoking: GCC C++ Linker
g++ -L/opt/local/libexec/root5/lib/root -o “sis3316_gui_test” ./src/sis3316_cern_root_class.o ./src/sis3316_class.o ./src/sis3316_ethernet_access_class.o ./src/sis3316_gui_test.o -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lpthread -lm -ldl -lGui -lfftw3
ld: library not found for -lfftw3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [sis3316_gui_test] Error 1
and here I attach the screenshots for the Eclipse option I use
ld: library not found for -lfftw3
==> you need to declare, using -L, the path where the fftw3 library sits.
solved
I was not linking the /opt/local/lib folder
thank you for the help
Hi,
I’m getting the same error as you. How did you successfully link the /opt/local/lib folder?