help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error compiling Octave 3.4.3


From: bd satish
Subject: Error compiling Octave 3.4.3
Date: Sat, 3 Dec 2011 22:16:04 +0200

Hi,

Octave 3.4.3 (on Debian x86_64) fails to compile because of missing  fftw3.h.

make[3]: Entering directory `/home/debian/foss/octave-3.4.3/src'
./DLD-FUNCTIONS/config-module.sh ..
../src/DLD-FUNCTIONS/module.mk is unchanged
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-g -O2 -DHAVE_CONFIG_H -Wall -W -Wshadow -Wold-style-cast -Wformat
-Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2
-pthread -g -O2 -MT DLD-FUNCTIONS/liboctinterp_la-fftw.lo -MD -MP -MF
DLD-FUNCTIONS/.deps/liboctinterp_la-fftw.Tpo -c DLD-FUNCTIONS/fftw.cc
-fPIC -DPIC -o DLD-FUNCTIONS/liboctinterp_la-fftw.o
In file included from DLD-FUNCTIONS/fftw.cc:29:0:
../liboctave/oct-fftw.h:29:19: fatal error: fftw3.h: No such file or directory
compilation terminated.
make[3]: *** [DLD-FUNCTIONS/liboctinterp_la-fftw.lo] Error 1
make[3]: Leaving directory `/home/debian/foss/octave-3.4.3/src'


The problem is that the "-I/path/to/fftw3"   flag is not added to the
above compilation statement (as you can see) even though I specified
explicitly during 'configure' and indeed 'configure' succeeded finding
it:


./configure --prefix=$HOME/foss/installed/octave --with-pic
--with-fftw3-includedir=/home/debian/foss/installed/fftw/include
--with-fftw3-libdir=/home/debian/foss/installed/fftw/lib
--disable-shared --disable-dl --enable-static
--with-blas="-L/home/debian/foss/installed/lapack -lblas"
--with-lapack="-L/home/debian/foss/installed/lapack -llapack"


I verified that the path mentioned in "--with-fftw3-includedir" is
indeed valid and fftw3.h exists in that directory but looks like this
is not added to CXXFLAGS ( or CPPFLAGS) and hence compilation fails.



-- Satish.BD


reply via email to

[Prev in Thread] Current Thread [Next in Thread]