- moved
git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@372 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
#####################################################
|
||||
# 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
|
||||
-------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user