FFTW usage in a new signal processing block

Hello All,

I’m trying to use FFTW in the development of a new signal processing
block.
The ./boostrap and ./configure commands work fine, but when I type the
make
command, I get the following error:

/usr/src/gnuradio/gr-deteccao/lib/.libs/libgnuradio-deteccao.so:
undefined
reference to fftw_execute' /usr/src/gnuradio/gr-deteccao/lib/.libs/libgnuradio-deteccao.so: undefined reference tofftw_plan_dft_1d’
/usr/src/gnuradio/gr-deteccao/lib/.libs/libgnuradio-deteccao.so:
undefined
reference to `fftw_destroy_plan’
collect2: ld returned 1 exit status

It sounds weird because the fftw in already at the gnuradio files.

On Thu, Aug 25, 2011 at 09:57:30AM -0300, Felipe F. wrote:

/usr/src/gnuradio/gr-deteccao/lib/.libs/libgnuradio-deteccao.so: undefined
reference to `fftw_destroy_plan’
collect2: ld returned 1 exit status

It sounds weird because the fftw in already at the gnuradio files.

That doesn’t mean FFTW gets linked to your new blocks. Like any other
library, you still have to set the linker settings.

MB


Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association