discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] howto_square_ff require Gruel


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] howto_square_ff require Gruel
Date: Wed, 7 Nov 2012 11:22:11 -0500

On Tue, Nov 6, 2012 at 8:46 PM, Gong Zhang <address@hidden> wrote:
> Tom Rondeau wrote:
>>
>> I assume you have an installed and working copy of GNU Radio on your
>> system? Did you happen to change the install prefix when building?
>> Usually, you just have to add the path to the gruel.pc file to
>> PKG_CONFIG_PATH. You'll find it in $prefix/lib/pkgconfig. If
>> pkg-config can't find GRULE, it won't know how to find the headers or
>> link to the libs. You can test with:
>>
>> pkg-config --modversion gruel
>>
>> If that gives you a response like '3.6.3git' (or whatever version you
>> have installed), things are working.
>>
>> Tom
>>
>
> I test with 'pkg-config --modversion gruel'.It seems my version is 3.6.1.
> But the problem remains.

Oh, I see what's happening; I didn't look closely enough at your first message.

You don't really want to use gr_modtool to add new components to GNU
Radio. It's meant to be used to build separate projects that will work
with and installed GNU Radio. See, gr_modtool creates a project with
cmake files that look for installed GNU Radio libs and headers,
including gruel, so it has it's own FindGruel.cmake module that GNU
Radio does not have (because Gruel is part of GNU Radio).

What you want to do is install GNU Radio first. Then use gr_modtool to
build an out-of-tree project; that is, not inside of the GNU Radio
source code. Use "gr_modtool.py newmod" and then in gr-<your new
module> use "gr_modtool.py add" to add howto_ff. You should see that
gr-<yours>/cmake/Modules has a file "FindGruel.cmake" that the
component will use to find the installed GNU Radio packages and build
against them.

Tom



reply via email to

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