Howto_square_ff require Gruel

Hi List,
I’m trying to check the example howto_square_ff with gr_modtool.I work
with ubuntu10.04,gnuradio 3.6.1 and cmake2.8.1.When I excute ‘cmake …/’
in /gnuradio3.6.1/build.I got the following:
– Configuring gr-wxgui support…
– Dependency ENABLE_GR_CORE = ON
– Dependency ENABLE_PYTHON = ON
– Dependency NUMPY_FOUND = TRUE
– Dependency WX_FOUND = TRUE
– Enabling gr-wxgui support.
– Override with -DENABLE_GR_WXGUI=ON/OFF
CMake Warning at gr-howto/CMakeLists.txt:85 (find_package):
Could not find module FindGruel.cmake or a configuration file for
package
Gruel.

Adjust CMAKE_MODULE_PATH to find FindGruel.cmake or set Gruel_DIR to the
directory containing a CMake configuration file for Gruel. The file will
have one of the following names:

GruelConfig.cmake
gruel-config.cmake

CMake Warning at gr-howto/CMakeLists.txt:86 (find_package):
Could not find module FindGnuradioCore.cmake or a configuration file for
package GnuradioCore.

Adjust CMAKE_MODULE_PATH to find FindGnuradioCore.cmake or set
GnuradioCore_DIR to the directory containing a CMake configuration file
for
GnuradioCore. The file will have one of the following names:

GnuradioCoreConfig.cmake
gnuradiocore-config.cmake

CMake Error at gr-howto/CMakeLists.txt:90 (message):
Gruel required to compile howto
Thanks.

Tom R. wrote:

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.

On Tue, Nov 6, 2012 at 8:39 AM, Gong Z. [email protected] wrote:

– Override with -DENABLE_GR_WXGUI=ON/OFF

CMake Error at gr-howto/CMakeLists.txt:90 (message):
Gruel required to compile howto
Thanks.

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

On Tue, Nov 6, 2012 at 8:46 PM, Gong Z. [email protected] wrote:

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- use “gr_modtool.py add” to add howto_ff. You should see that
gr-/cmake/Modules has a file “FindGruel.cmake” that the
component will use to find the installed GNU Radio packages and build
against them.

Tom

On Thu, 08 Nov 2012 17:13:54 +0800, Gong Z. wrote:

What you want to do is install GNU Radio first. Then use gr_modtool to
wanna is add the ‘howto’ module to gnuradio so I can use it in grc.As
you seen I excute cmake in ~/gnuradio.3.6.1/build but not
~/gnuradio/gr-howto/build.Thank you for your patience.

You do not need to add a module into gnuradio tree to make it usable in
grc. In a out-of-tree project, you just need to edit the module’s xml
file properly(gr_modtool can take care of the CMakeFiles.txt) and then
install it to proper directory by make install. Then in grc you should
be able to see your out-of-tree module in the list.


alick
Fedora 16 (Verne) user
https://fedoraproject.org/wiki/User:Alick

Tom R. wrote:

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- use “gr_modtool.py add” to add howto_ff. You should see that
gr-/cmake/Modules has a file “FindGruel.cmake” that the
component will use to find the installed GNU Radio packages and build
against them.

Tom

I’m quite sorry that I failed to explain my question clearly.what I
wanna is add the ‘howto’ module to gnuradio so I can use it in grc.As
you seen I excute cmake in ~/gnuradio.3.6.1/build but not
~/gnuradio/gr-howto/build.Thank you for your patience.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs