Howto_square_ff require Gruel

Tom & Gong,

It seems I have the same problem as you two have been discussing.
I create a module (howto) using the gr_modtool and added hwto_square_ff
using ‘gr_modtool add’. I completed the tutorial, but cannot make
anything.
I went back and created a build directory and then ran cmake …/ as
described, but I reveice an error stating, “CMake error as
CMakeLists.txt:89 (message): Gruel required to compile”. I have the
FinfGruel cmake file in the cmake/Modules directory, but it still won’t
work.

Thanks

On 11/08/2012 09:33 AM, Brooke H. wrote:

FindGruel its looking for your install of gnuradio. Which is not found.
I think if you are using the default install prefix this is pretty much
automatic (/usr and /usr/local)

You can always manually tell cmake how to find Gruel headers and
libraries by using GRUEL_LIBRARIES GRUEL_INCLUDE_DIRS.

cmake source_dir -DGRUEL_LIBRARIES=path to library
-DGRUEL_INCLUDE_DIRS=path to include

Or using cmake-gui

-josh

Perhaps this is a bug, but I can’t reproduce that error, not with 3.6.1,
master,
next nor with any branch of gr_modtool.

Please tell us

  • where libgruel.so is (if it’s somewhere exotic, Josh’s answer is all
    you need)
  • which version of GNU Radio you’re using.

Also, try and build gr-howto-write-a-block to narrow down the error.

M

On Thu, Nov 08, 2012 at 12:33:30PM -0500, Brooke H. wrote:

directory, but it still won’t work.

Thanks


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page


Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

I have tryed the gr-howto-write-a-block in gnuradio-3.6.1 source code.As
I want to use it in grc,I add this
‘add_subdirectory(gr-howto-write-a-block)’ in
$PREFIX/gnuradio-3.6.1/CMakeList.txt.I think this is the point that
makes CMake fail. And libgruel.so exists in
$PREFIX/gnuradio-3.6.1/build/gruel/src/lib.

Basically, dont do that.

Every gr-* directory (gr-directory, gr-filter…) is an example of how
to create blocks as an in-tree build. However, gr-howto-write-a-block
is an example of how to create blocks as an out-of-tree build.

You must install gnuradio, and treat gr-howto-write-a-block as a top
level build system, and configure gr-howto-write-a-block with paths to
the installed gnuradio files.

-josh

Martin B. (CEL) wrote:

M

back and created a build directory and then ran cmake …/ as described, but I
reveice an error stating, “CMake error as CMakeLists.txt:89 (message): Gruel
required to compile”. I have the FinfGruel cmake file in the cmake/Modules
directory, but it still won’t work.

Thank
I have tryed the gr-howto-write-a-block in gnuradio-3.6.1 source code.As
I want to use it in grc,I add this
‘add_subdirectory(gr-howto-write-a-block)’ in
$PREFIX/gnuradio-3.6.1/CMakeList.txt.I think this is the point that
makes CMake fail. And libgruel.so exists in
$PREFIX/gnuradio-3.6.1/build/gruel/src/lib.