discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] FFTW3 error in GNURADIO


From: Nasi
Subject: Re: [Discuss-gnuradio] FFTW3 error in GNURADIO
Date: Fri, 21 Mar 2014 15:02:08 +0400

It does not work anyway. I attach again files.



Fri, 21 Mar 2014 11:45:01 +0100 от Marcus Müller <address@hidden>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Your main CMakeLists.txt is still looking for the double FFTW3.
replace
find_package(FFTW3)
by
find_package(FFTW3f)
and use the FindFFTW3f.cmake from the gnuradio source tree.

You'll have to replace all occurences of FFTW3_ by FFTW3F_ in your
CMake files.


On 21.03.2014 11:42, Nasi wrote:
> Thanks for quick reply!
>
> It does not work even if I use float precision as fftwf_complex
> *in2, *out2; out2 = (fftwf_complex*)
> fftwf_malloc(NFFT*2*sizeof(fftwf_complex)); in2 = (fftwf_complex*)
> fftwf_malloc(NFFT*2*sizeof(fftwf_complex));
>
> I attach cmake files. It would be nice of you if you take a look.
>
> - NE
>
>
> Fri, 21 Mar 2014 11:18:45 +0100 от Marcus Müller
> <address@hidden>: The (F) was meant to say: Use
> FFTW3_LIBRARIES if you want to use the double precision version,
> use FFTW3F_LIBRARIES if you want the single (float, 'F') precision
> version of the library.
>
> Since you're using fftw_malloc (without f suffix), you're trying
> to use the double prec. version of the library, but you link
> against the single prec. version.
>
> Greetings, Marcus
>
> PS: The GNU Radio complex data type is identical to the float
> complex datatype used by FFTW3F. If you want to use that, use the
> float version of the library and replace fftw_malloc by
> fftwf_malloc and so on.
>
>
>
> On 21.03.2014 10:35, Nasi wrote:
>>>> Hi all,
>>>>
>>>> I am using ubuntu 13.04 and GNURADIO 3.7.
>>>>
>>>> In project https://github.com/BogdanDIA/gr-dvbt , in
>>>> reference_signals_impl.cc in /lib, I add inside one of the
>>>> functions:
>>>>
>>>> fftw_complex *in2, *out2; out2 = (fftw_complex*)
>>>> fftw_malloc(NFFT*2*sizeof(fftw_complex)); in2 =
>>>> (fftw_complex*) fftw_malloc(NFFT*2*sizeof(fftw_complex)); I
>>>> get this error: ~/gr-dvbt/apps$ sudo ./top_block_rx.py
>>>> Traceback (most recent call last): File "./top_block_rx.py",
>>>> line 23, in <module> import dvbt File
>>>> "/usr/local/lib/python2.7/dist-packages/dvbt/__init__.py",
>>>> line 45, in <module> from dvbt_swig import * File
>>>> "/usr/local/lib/python2.7/dist-packages/dvbt/dvbt_swig.py",
>>>> line 26, in <module> _dvbt_swig = swig_import_helper() File
>>>> "/usr/local/lib/python2.7/dist-packages/dvbt/dvbt_swig.py",
>>>> line 22, in swig_import_helper _mod =
>>>> imp.load_module('_dvbt_swig', fp, pathname, description)
>>>> ImportError: /usr/local/lib/libgnuradio-dvbt.so: undefined
>>>> symbol: fftw_malloc
>>>>
>>>> I read and did the articles:
>>>> http://lists.gnu.org/archive/html/discuss-gnuradio/2014-02/msg00479.html
>>>>
>>>>
and
>>>>
>>>>
http://gnuradio.4.n7.nabble.com/FFTW3-runtime-error-td46690.html
>>>> . However, in lib I cannot add ${FFTW3(F)_LIBRARIES} to your
>>>> lib/CMakeLists.txt. It gives me an error. Therefore I
>>>> replaced that with ${FFTW3F_LIBRARIES}.
>>>>
>>>> Where am I making mistake?
>>>>
>>>> - NE
>>>>
>>>>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTLBgtAAoJEBQ6EdjyzlHtBRMIAJCWlaJJFVM6FaD+GrY1YOHR
Q/pr1DLzCRWi6J+nRq5XL6abZYaO/PIA1eXyVYp1RKmmugFxPE79oJmh20rILhaX
xGmRuxMHUbKUU0q0CvoNe2lSUPfWkGgOmm97rClxIV869SUZYQULpWZFBtDtCRf3
Niqj1eCACPDJdd5mJoCiYtJGsXtbqcIfEcrk6GZd9g1HdVB4VoivFK/N9KiQebom
/knj6ecXhJSBwAQfnlS9vefonC+oSX9e1iYITyQjLIt/szqmQHlyir1vWXgigwAn
c581J1IhCZofud4GExZCWRWcEkFis9xPgdTr/KCIGvqkmk91MZJ0nWtXfNsXDNU=
=Ggzm
-----END PGP SIGNATURE-----

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



--
NE

Attachment: FindFFTW3f.cmake
Description: Binary data

Attachment: CMakeLists.txt
Description: Text document

Attachment: CMakeLists.txt
Description: Text document


reply via email to

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