Files
GnuRadio/gr-jay/gr_mod.howto
T
jens a87d2f154e - moved
git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@372 b431acfa-c32f-4a4a-93f1-934dc6c82436
2018-12-16 07:48:58 +00:00

49 lines
1.3 KiB
Plaintext

#####################################################
# Create module
#####################################################
$ gr_modtool newmod <modname>
#####################################################
# General C++ block
#####################################################
gr-<modname>$ gr_modtool add -t general -l cpp <blockname>
or
#####################################################
# Sync C++ block
#####################################################
gr-<modname>$ gr_modtool add -t sync -l cpp <blockname>
# Build
$ mkdir build # We're currently in the module's top directory
$ cd build/
$ cmake ../ # Tell CMake that all its config files are one dir up
$ make # And start building (should work after the previous section)
# Test
gr-<modname>/build$ make test
gr-<modname>/build$ ctest -V -R square
# XML für GRC
gr-<modname>$ gr_modtool makexml <blockname>
# Install
gr-<modname>/build$ sudo make install
gr-<modname>/build$ sudo ldconfig
#####################################################
# Sync Python Module
#####################################################
gr-<modname>$ gr_modtool add -t sync -l python <blockname>
-------------------------------------------------------------
Source: https://wiki.gnuradio.org/index.php/OutOfTreeModules
-------------------------------------------------------------