> 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 > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio