[Top][All Lists]

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

Re: [Discuss-gnuradio] Out of Tree linker error... libgnuradio-MYMOD.so:

From: John Murphy
Subject: Re: [Discuss-gnuradio] Out of Tree linker error... libgnuradio-MYMOD.so: undefined reference to `gr::fft::fft_complex::execute()'
Date: Thu, 24 Jul 2014 16:26:51 -0400

> From: Marcus M?ller <address@hidden>
> you use gr-fft in your code, but then don't tell your linker to link
> against that, which leaves your libgnuradio-comso missing the symbols
> from gr::fft, which breaks linking test-comso.
> So what you need to do is edit your CMakeLists.txt in your module's root
> dir and replace
> by
> which will add the necessary linker directives, usually.
> Then you will need to add
> to your
> link_directories(...)
> further down.
> now, in your lib/ directory, edit the CMakeLists.txt
> and extend the  target_link_libraries(<yourmodule>...) directive with
> and do the same for the test-<yourmodule> target_link_libraries.

Needed to say a "Thanks Marcus" for this very complete answer. Saw this come 
thru the digest after I re-read where it indicates (some of) this in the wiki.
It seems to build without the GNURADIO_FFT_LIBRARY_DIRS or the 
GNURADIO_FFT_LIBRARIES entries, which I did not notice being indicated in the 
wiki page, unless somehow cmake already does that when you add the FFT part (I 
should probably go look at what is in those files now)? But if I run into 
trouble at runtime I will be sure to come back to try this.

reply via email to

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