[Top][All Lists]

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

Re: [Discuss-gnuradio] Compile Problems

From: 'Eric Blossom'
Subject: Re: [Discuss-gnuradio] Compile Problems
Date: Fri, 16 Nov 2001 17:21:17 -0800
User-agent: Mutt/1.2.5i

On Fri, Nov 16, 2001 at 11:46:44AM -0800, Matt Ettus wrote:
> So compilation started for me, but fails....
> Making all in pam
> make[4]: Entering directory `/home/mettus/gr-build/src/pspectra/pam'
> c++ -DHAVE_CONFIG_H -I. -I/home/mettus/gnuradio/src/pspectra/pam -I../../.. 
> -I/home/mettus/gnuradio/src/gnu/lib/gr 
> -I/home/mettus/gnuradio/src/gnu/lib/grio 
> -I/home/mettus/gnuradio/src/gnu/lib/grgui 
> -I/home/mettus/gnuradio/src/pspectra/lib/vr 
> -I/home/mettus/gnuradio/src/pspectra/lib/vrp 
> -I/home/mettus/gnuradio/src/pspectra/lib/vrio 
> -I/home/mettus/gnuradio/src/pspectra/lib/vrgui -I/usr/lib/qt-2.3.0/include    
> -g -O2 -c /home/mettus/gnuradio/src/pspectra/pam/udp_rx.cc
> In file included from /home/mettus/gnuradio/src/pspectra/pam/udp_rx.cc:14:
> /home/mettus/gnuradio/src/pspectra/lib/vrio/VrFFTSink.h:22:18: fftw.h: No 
> such file or directory
> make[4]: *** [udp_rx.o] Error 1
> make[4]: Leaving directory `/home/mettus/gr-build/src/pspectra/pam'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/mettus/gr-build/src/pspectra'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/mettus/gr-build/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/mettus/gr-build'
> make: *** [all-recursive-am] Error 2
> It seems to not find fftw, which is installed:
> fftw-2.1.3-8
> fftw-devel-2.1.3-8
> The reason is that fftw.h no longer exists.  FFTW now uses sfftw or dfftw to 
> be more explicit about type:
> /usr/include/dfftw.h
> /usr/include/dfftw_threads.h
> /usr/include/drfftw.h
> /usr/include/drfftw_threads.h
> /usr/include/sfftw.h
> /usr/include/sfftw_threads.h
> /usr/include/srfftw.h
> /usr/include/srfftw_threads.h
> I would change to include the right one, but its not clear which one is 
> correct in this situation.
> Thanks for your help
> Matt

OK, I'm using 2.1.3 also, but built it myself from the distribution.
I believe that the difference is that I did not configure with the
non-default --enable-type-prefix option.  Note that it makes no sense
to install the single precision version on an x86 arch since the
arithmetic is always 80-bit anyway.

I've got two suggestions:

   (1) Create appropriate symlinks on your system.

       See the node "Installing FFTW in both single and double precision" 
       in the fftw info file for help with the symlinks.

       No need for the threaded version in our application either
       (unless you are on an SMP machine where the FFT is burning
       a complete CPU.)


   (2) Create the appropriate autoconf macros to sort this out (I
       recommend choosing double precision), and then create patches for
       configure.in, config.h.in and gnuradio/src/pspectra/lib/Makefile.am

       If you get it working in both cases, default and 
       --enable-type-prefix, I'll add the patch.

Do you have an SMP machine?


reply via email to

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