discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Problem using FFT-class in my own written block (


From: jeroen
Subject: Re: [Discuss-gnuradio] Problem using FFT-class in my own written block (part II)
Date: Fri, 06 Dec 2013 14:43:27 +0100
User-agent: Roundcube Webmail/0.9.5

Marcus Müller schreef op 2013-12-06 13:38:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hej Jeroen,

2) In the top-level CMakeLists.txt I modified/added (just guessing
what to do...):

I wouldn't call your method "guessing"; you used strong indications! :D
Ok, now I see what your problem is: It's not that you don't link
against FFTW (the library that does the actual FFT calculations), but
that you don't link against gr-fft, the GNU Radio fft helpers and
wrappers and widgets!

Now everything makes sense. The point is: with 3.7 it's easy to use
certain GNU Radio components, just by adding[1]:
set(GR_REQUIRED_COMPONENTS RUNTIME FILTER)
to the master CMakeLists.txt.

For 3.6, I can't verify that right now, but doing
find_package(gnuradio-fft)
instead should do the trick (I hope the spelling is right, though.
Look into /usr/local/lib/pkgconfig/gnuradio* ). The resulting
variables should then be something like[2]:
GNURADIO_FFT_INCLUDE_DIRS (or LIBRARY_DIRS, respectively).
You might need to google the correct naming, though.

Jay!
Happy hacking


1:
http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConfig#Configuring-Our-Project-to-Use-GNU-Radio-Libraries
2: http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSocVCAAoJEAFxB7BbsDrLYeMH/iyINXohTKFSxNaZL5df6qdE
tpUni2POUwzfM32vcmdVovj6IQcKppEWz3Xugd8KAxtkSQYJd9+f7EZydIvnsG+R
/ToQ8ARBTDUsFZpe0HaKUGKTiY6Q8pI3SneOAug7/RMZffK8UcV/ObFyCn0ZEI7+
2phikCxt4XaQr+KqvA/242BPR3jPPiDil3Ok1ocsQpn/CuLf+NHTnSFQaSFGTPPQ
I/rw9c5GIy7Hn4s7I+KCjxdkJcZ/PXVJcfOveec3BzV03NTXjpV8tgr4cTj5aars
9o48MrnbGjdZO5irRmaUi7mDj7sAKGC3wWPmgCk9Iapo2lI+BIBZ16d7hCkVexs=
=bQt9
-----END PGP SIGNATURE-----

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

Sorry, does not work. There is a gnuradio-fft.pc so I tried:

    find_package(gnuradio-fft)

But it immediatly starts whining about not finding "gnuradio-fftConfig.cmake" or "gnuradio-fft-config.cmake". Well, neither of those two files exists in the GNU installation...

This is kind of frustrating, already spending like three full days on just trying to link an FFT library and searching the internet for doing that. It's absurd...

   Jeroen



reply via email to

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