<- [[:installation]] ====== fftw3.h header not found ====== //Brandt Belson, 2009-02-17 12:23 // Hi again, I'm now trying to compile channelflow on a linux computer, and running into a compiling error related to the fftw3 libraries. I have my fftw3 dynamic libaries in the directory /opt/fftw3.pgi/lib. These are the files: libfftw3.a libfftw3.so libfftw3.so.3.1.2 libfftw3.la libfftw3.so.3 pkgconfig My channelflow directory is: /bbelson/joshy_chflow/channelflow-1.3.3. I configure using the command (from the channelflow directory) ./configure --with-fftw3=/opt/fftw3.pgi, then type "make". I get the following message: [bbelson@head channelflow-1.3.3]$ make make all-recursive make[1]: Entering directory `/nfs/sequoia/bbelson/joshy_chflow/channelflow-1.3.3' Making all in channelflow make[2]: Entering directory `/nfs/sequoia/bbelson/joshy_chflow/channelflow-1.3.3/channelflow' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -fomit-frame-pointer -DNDEBUG -MT mathdefs.lo -MD -MP -MF .deps/mathdefs.Tpo -c -o mathdefs.lo mathdefs.cpp mkdir .libs g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -fomit-frame-pointer -DNDEBUG -MT mathdefs.lo -MD -MP -MF .deps/mathdefs.Tpo -c mathdefs.cpp -fPIC -DPIC -o .libs/mathdefs.o g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -fomit-frame-pointer -DNDEBUG -MT mathdefs.lo -MD -MP -MF .deps/mathdefs.Tpo -c mathdefs.cpp -o mathdefs.o >/dev/null 2>&1 mv -f .deps/mathdefs.Tpo .deps/mathdefs.Plo /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -fomit-frame-pointer -DNDEBUG -MT vector.lo -MD -MP -MF .deps/vector.Tpo -c -o vector.lo vector.cpp g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -fomit-frame-pointer -DNDEBUG -MT vector.lo -MD -MP -MF .deps/vector.Tpo -c vector.cpp -fPIC -DPIC -o .libs/vector.o vector.cpp:32:19: fftw3.h: No such file or directory vector.cpp: In constructor `channelflow::Vector::Vector(int)': vector.cpp:44: `fftw_malloc' undeclared (first use this function) vector.cpp:44: (Each undeclared identifier is reported only once for each function it appears in.) vector.cpp: In member function `void channelflow::Vector::resize(int)': vector.cpp:134: `fftw_free' undeclared (first use this function) make[2]: *** [vector.lo] Error 1 make[2]: Leaving directory `/nfs/sequoia/bbelson/joshy_chflow/channelflow-1.3.3/channelflow' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/nfs/sequoia/bbelson/joshy_chflow/channelflow-1.3.3' make: *** [all] Error 2 I get the same message when I try the configure commands ./configure --with-fftw3=/opt/fftw3.pgi/lib, ./configure --with-fftw3=/opt/fftw3.pgi/include, ./configure --includedir=/opt/fftw3.pgi, and ./configure --includedir=/opt/fftw3.pgi/lib. I'm using g++ to compile. I've been stuck on this, do you know what might be wrong? I'm especially confused because I thought that the fftw3 libraries were dynamically linked, but this is a compile error. ~~DISCUSSION~~