|
From: | Nasi |
Subject: | Re: [Discuss-gnuradio] FFTW3 error in GNURADIO |
Date: | Fri, 21 Mar 2014 14:42:02 +0400 |
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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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/
iQEcBAEBAgAGBQJTLBIEAAoJEBQ6EdjyzlHtSK8H/Az7oTYgKHEkG61/iKNzEb4r
hPQyX4Mwr0BfjVXoI976aRQK6L/tJxm56ofahEj788crhlVqtqnZSvg/EhIQGzln
G8OQFHIbcwRIe/5mVtTmWcjWimJAcJXs3aOglbkavp+vw8ZW55rSypT9cLrw+X04
fLctOOAg5NHJtUQnOeTLboAkcn3lvwBr6su4R1RYhdGbtSMjNaDTD5g1pNhKq0JH
AhbjDlLluFdnAuesOR9RBto74ncQGQzGHtnWHmI6CJp2qjM9f4wsE9DLycGGCM4W
nYZRSz0Dxqybw6SJ2rQQRqq7VnisaQvs4MZALnnJODZ/P+z8L6Yed3WsFUBjZWQ=
=IjoK
-----END PGP SIGNATURE-----
CMakeLists.txt
Description: Text document
CMakeLists.txt
Description: Text document
FindFFTW3.cmake
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |