discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Updating gr-specest to 3.7


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Updating gr-specest to 3.7
Date: Wed, 18 Sep 2013 15:19:10 -0400

On Wed, Sep 18, 2013 at 1:37 PM, Jared Clements
<address@hidden> wrote:
> Thanks Tom, that was able to get rid of the fftw linking errors.
> There are still a few gnuradio ones I'm seeing, have you seen these
> before?
>
> [ 57%] Building CXX object 
> lib/CMakeFiles/qa_arburg_impl.dir/qa_arburg_impl.cc.o
> Linking CXX executable qa_arburg_impl
> libgnuradio-specest.so: undefined reference to
> `gr::blocks::multiply_const_vff::make(std::vector<float,
> std::allocator<float> >)'
> libgnuradio-specest.so: undefined reference to
> `gr::filter::single_pole_iir_filter_ff::make(double, unsigned int)'
> libgnuradio-specest.so: undefined reference to
> `gr::blocks::keep_one_in_n::make(unsigned long, int)'
> libgnuradio-specest.so: undefined reference to
> `gr::fft::fft_vcc::make(int, bool, std::vector<float,
> std::allocator<float> > const&, bool, int)'
> libgnuradio-specest.so: undefined reference to
> `gr::blocks::complex_to_mag_squared::make(unsigned long)'
> libgnuradio-specest.so: undefined reference to
> `gr::filter::firdes::window(gr::filter::firdes::win_type, int,
> double)'
> libgnuradio-specest.so: undefined reference to
> `gr::blocks::stream_to_vector::make(unsigned long, unsigned long)'
> collect2: error: ld returned 1 exit status
> make[2]: *** [lib/qa_arburg_impl] Error 1
> make[1]: *** [lib/CMakeFiles/qa_arburg_impl.dir/all] Error 2
> make: *** [all] Error 2
>
> Here's the command that's erroring:
>
> /usr/bin/c++   -O3 -DNDEBUG
> CMakeFiles/qa_arburg_impl.dir/qa_arburg_impl.cc.o  -o qa_arburg_impl
> -L/usr/local/lib -rdynamic libgnuradio-specest.so
> -lboost_unit_test_framework libgnuradio-specest-fortran.so -llapack
> -lblas -larmadillo -lgnuradio-runtime -lgnuradio-pmt -lfftw3f
> -Wl,-rpath,/usr/local/lib:/home/jared/allsky/gnuradio/gr-specest/build/lib
>
> Am I missing a gnuradio link command that I should know about?
>
> Thanks,
>
> Jared

Jared,

Because it looks like it's trying to use blocks out of
gnuradio-filter, gnuradio-fft, and gnuradio-blocks, I think you'll
need to link against all of those libraries, too. Using the
GnuradioConfig cmake, you can set all of this up with:

set(GR_REQUIRED_MODULES RUNTIME BLOCKS FILTER FFT)
find_package(Gnuradio 3.7.0)

You'll then have access to the libraries using the following variables:
GNURADIO_RUNTIME_LIBRARIES
GNURADIO_BLOCKS_LIBRARIES
GNURADIO_FILTER_LIBRARIES
GNURADIO_FFT_LIBRARIES

Similarly, you'll have GNURADIO_<package>_INCLUDE_DIRS so you can set
your 'include_directories' in cmake.

-- 
Tom
Visit us at GRCon13 Oct. 1 - 4
http://www.trondeau.com/grcon13



reply via email to

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