Forum: GNU Radio howto_square_ff require Gruel

Posted by Brooke Hayden (Guest)
on 2012-11-08 18:34
(Received via mailing list)
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
Posted by Josh Blum (Guest)
on 2012-11-08 19:04
(Received via mailing list)
On 11/08/2012 09:33 AM, Brooke Hayden 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
Posted by Martin Braun (CEL) (Guest)
on 2012-11-08 20:11
(Received via mailing list)
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 Hayden wrote:
> directory, but it still won't work.
>
>
> Thanks
>

> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

Dipl.-Ing. Martin Braun
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
Posted by Gong Zhang (Guest)
on 2012-11-09 02:34
(Received via mailing list)
Martin Braun (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.
Posted by Josh Blum (Guest)
on 2012-11-09 03:02
(Received via mailing list)
> 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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.