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.
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
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.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.