help-octave
[Top][All Lists]
Advanced

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

Re: fft support on octave


From: niraj pandey
Subject: Re: fft support on octave
Date: Tue, 17 Dec 2019 17:40:50 +0530

This give me the following error.

./configure --prefix=/home/niraj/fftw --enable-shared --enable-float --enable-long-double --enable-sse
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
configure: error: --enable-single/--enable-long-double conflict

After that I tried with the following option and build fftw.

  /configure --prefix=/home/niraj/fftw --enable-shared --enable-long-double   

But now when I configure octave it says:

configure:68908: $PKG_CONFIG --exists --print-errors "fftw3"
Package fftw3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `fftw3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fftw3' found

I found inly fftw3l.pc only in lib dir.

[niraj@vlsj-ctrh7dev octave-5.1.0]$ ls -lrt /home/niraj/fftw/lib/pkgconfig/
total 4
-rw-r--r-- 1 niraj cadence1 242 Dec 17 03:46 fftw3l.pc
[niraj@vlsj-ctrh7dev octave-5.1.0]$

Attaching log file here

Thanks
Niraj

On Sun, Dec 15, 2019 at 6:58 AM Kai Torben Ohlhus <address@hidden> wrote:


On 12/14/19 1:24 AM, niraj pandey wrote:
> On Fri, Dec 13, 2019 at 4:45 PM niraj pandey <address@hidden
> <mailto:address@hidden>> wrote:
>
>
>
>     On Fri, Dec 13, 2019 at 2:22 PM Kai Torben Ohlhus
>     <address@hidden <mailto:address@hidden>> wrote:
>
>         On 12/13/19 5:39 PM, niraj pandey wrote:> On Fri, Dec 13, 2019
>         at 1:19
>         PM Kai Torben Ohlhus <address@hidden <mailto:address@hidden>
>         > <mailto:address@hidden <mailto:address@hidden>>> wrote:
>         >
>         >
>         >
>         >     On 12/13/19 3:48 PM, niraj pandey wrote:
>         >     > On Fri, Dec 13, 2019 at 12:14 PM Kai Torben Ohlhus
>         >     <address@hidden <mailto:address@hidden>
>         <mailto:address@hidden <mailto:address@hidden>>>
>         >     >> On 12/13/19 3:14 PM, niraj pandey wrote:
>         >     >>> Hi ,
>         >     >>>
>         >     >>> Could you pls help me how to build octave with fft
>         support. I
>         >     used the
>         >     >>> following command to build octave but still getting issue.
>         >     >>>
>         >     >>>
>         >     >>> octave:1> fft(0:255)
>         >     >>> error: fft: support for FFTW was unavailable or
>         disabled when
>         >     liboctave
>         >     >>> was built
>         >     >>>
>         >     >>>
>         >     >>> ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC
>         CXXFLAGS=-fPIC
>         >     >>> --enable-shared --with-gui --with-qt
>         >     >>> --with-blas=/v5.1.0/BLAS-3.8.0/blas_LINUX.a
>         >     >>> --with-lapack=/v5.1.0/lapack-3.8.0/liblapack.a
>         --enable-float
>         >     >>> --enable-sse --with-fftw3-includedir=/tmp/fftw/include/
>         >     >>> --with-fftw3-libdir=/tmp/fftw/lib
>         >     >>>
>         >     >>> Config.log says:   configure:69014: WARNING: FFTW3
>         library not
>         >     found.
>         >     >>> The slower FFTPACK library will be used instead.
>         >     >>>
>         >     >>> Thanks
>         >     >>> Niraj
>         >     >>
>         >     >> Dear Niraj,
>         >     >>
>         >     >> Still I do not understand why you deploy libraries in
>         the "/tmp"
>         >     >> directory, which is on usual Linux system a volatile
>         TeMPorary
>         >     >> directory.  Can't you use your user's /home/niraj
>         directory for all
>         >     >> libraries instead?  This might be one root of trouble.
>         >     >>
>         >     >> Can you describe, how you installed the FFTW3 library
>         on your system?
>         >     >>
>         >     >> HTH,
>         >     >> Kai
>         >     >>
>         >     >
>         >     > Hello Kai,
>         >     >
>         >     > I used the following command to install FFTW3.
>         >     >
>         >     > ./configure --prefix=/home/niraj/fftw --enable-float
>         --enable-sse
>         >     >
>         >     > To install the tool on /tmp area first is just check all the
>         >     > dependencies required by that tool . Once I identify all the
>         >     > dependencies I install the tool on production area
>         through some
>         >     > automated process :)
>         >     >
>         >     > Thanks
>         >     > Niraj
>         >
>         >     Can you submit a small portion of config.log around the error
>         >
>         >     >>> configure:69014: WARNING: FFTW3 library not found.
>         >
>         >     Usually there is a program which is compiled during
>         ./configure and this
>         >     normally contains the compiler output which might be
>         helpful to get to
>         >     the root of the trouble.
>         >
>         >     Best,
>         >     Kai
>         >
>         >
>         > Hi Kai,
>         >
>         > PFA config.log files for fftw and octave .
>         >
>         > Thanks
>         > Niraj
>         >
>
>
>         Please always answer below the text.  The interesting portion is
>         this:
>
>         $ ./configure --prefix=/home/niraj/oc CFLAGS=-fPIC CXXFLAGS=-fPIC
>         --enable-shared --with-gui --with-qt
>         --with-blas=common/pkgs/octave/v5.1.0/BLAS-3.8.0/blas_LINUX.a
>         --with-lapack=common/pkgs/octave/v5.1.0/lapack-3.8.0/liblapack.a
>         --enable-float --enable-sse
>         --with-fftw3-includedir=/tmp/fftw/include/
>         --with-fftw3-libdir=/tmp/fftw/lib
>
>         configure:68911: $? = 1
>         configure:68936: checking fftw3.h usability
>         configure:68936: gcc -std=gnu11 -c -fPIC -pthread -fopenmp
>         -I/tmp/fftw/include/  conftest.c >&5
>         configure:68936: $? = 0
>         configure:68936: result: yes
>         configure:68936: checking fftw3.h presence
>         configure:68936: gcc -std=gnu11 -E -I/tmp/fftw/include/  conftest.c
>         configure:68936: $? = 0
>         configure:68936: result: yes
>         configure:68936: checking for fftw3.h
>         configure:68936: result: yes
>         configure:68947: checking for fftw_plan_dft_1d in -lfftw3
>         configure:68978: gcc -std=gnu11 -o conftest -fPIC -pthread -fopenmp
>         -I/tmp/fftw/include/  -L/tmp/fftw/lib -L/tmp/fftw/lib
>         -Wl,-rpath=/tmp/fftw/lib conftest.c -lfftw3  -lm  >&5
>         /usr/bin/ld: cannot find -lfftw3
>         collect2: error: ld returned 1 exit status
>         configure:68978: $? = 1
>
>         Is there in `/tmp/fftw/lib` some `libfftw3.so` or is it in
>         `/tmp/fftw/lib64`?
>
>         HTH,
>         Kai
>
>
>
>     I do not see any libfftw3.so library there. Instead of that I found
>     "libfftw3f.so" under lib.
>
>     Thanks
>     Niraj
>
>
> Sharing logs zip file here.
>
> Thanks
> Niraj
>


When reading the configure script of fftw

   ./configure --help
       [...]
       --enable-shared[=PKGS]  build shared libraries [default=no]
       [...]
       --enable-single         compile fftw in single precision
       --enable-float          synonym for --enable-single
       --enable-long-double    compile fftw in long-double precision
       [...]

you should change your configure flags to:

   ./configure --prefix=/tmp/fftw --enable-shared \
      --enable-float --enable-long-double --enable-sse

HTH,
Kai


--
Success occurs when opportunity and preparation meet

Attachment: new_log.zip
Description: Zip compressed data


reply via email to

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