discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How to link gnuradio library with applications ou


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] How to link gnuradio library with applications outside of gnuradio/usrp?
Date: Wed, 17 Aug 2011 15:48:20 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11

Hi Marcus M (cool name, actually),

gr_complex is an STL complex<float>, so you won't need the complete GR core to use it: gnuradio-core/src/lib/runtime/gr_complex.h:typedef std::complex<float> gr_complex;

gri_fft requires only gr_complex (see above) and gr_sys_paths, which is essentially replaceable by string literals. (and boost filesystem&threads and fftw of course, but those are not part of GR)

By the way: You'll be benchmarking FFTW (float implementation) complex2real fft, why would you want to use it wrapped in gri_fft? Using FFTW is -after all- three lines of code, using the benchmarking
functions one line more.

Hope this was helpful,

greetings
Marcus Müller


Am 17.08.2011 13:03, schrieb Alexandru Csete:
On Wed, Aug 17, 2011 at 5:08 AM, Marcus M<address@hidden>  wrote:
Actually I wanted to profile some classes that I wrote for my gnuradio
application. In these classes I use gr_complex and the gri_fftw class. As I
do not know how to use gprof in a gnuradio application I thought I will use
the classes outside of gnuradio to run the profile tests. So that's why I
want to link the gr_complex and gri_fftw in the test application.
Hi Marcus,

Both are in the gnuradio-core package and you can use pkg-config to
get the appropriate flags:

pkg-config --libs gnuradio-core

You can use the above directly in the linker command by surrounding it
with back-quotes(?)

`pkg-config --libs gnuradio-core`

Alex

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





reply via email to

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