Installing the Tutorials Modules: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
(mark as deprecated in GR 3.8)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
If you choose to download the completed tutorials flowgraphs, and install the custom blocks that are created as part of the tutorial, follow the instructions below.
== <p><b>NOTE:</b> This tutorial has been deprecated in GR 3.8.</p> ==


For instance, one way to separate it would be to make a folder for the solutions and one for the work as below:
<br>
If you choose to download the completed tutorials flowgraphs, and install the custom blocks that are created as part of the tutorial, follow the instructions below. For instance, one way to separate it would be to make a folder for the solutions and one for the work as below:


<pre>/home/user/gnuradio/tutorials/solutions
<pre>/home/user/gnuradio/tutorials/solutions
Line 14: Line 15:


=== Installing the Modules ===
=== Installing the Modules ===
Change directory into the cloned repository.
<pre>cd gr-tutorial</pre>


In the cloned repository, we can run the following set of commands to install the solutions:
In the cloned repository, we can run the following set of commands to install the solutions:
Line 20: Line 25:
cd build
cd build
cmake ..
cmake ..
make -j8
make
sudo make install
sudo make install
sudo ldconfig</pre>
sudo ldconfig</pre>

Latest revision as of 00:30, 6 June 2020

NOTE: This tutorial has been deprecated in GR 3.8.


If you choose to download the completed tutorials flowgraphs, and install the custom blocks that are created as part of the tutorial, follow the instructions below. For instance, one way to separate it would be to make a folder for the solutions and one for the work as below:

/home/user/gnuradio/tutorials/solutions
/home/user/gnuradio/tutorials/work

Cloning the Repository

To begin, we need to clone the git directory, so let's begin by opening the terminal and moving to the solutions directory we made before. To clone the solutions, we use git to clone the gr-tutorial repo as below:

$ git clone https://github.com/gnuradio/gr-tutorial

We should be able to see the exact same files and folders as those on the github repository. If we ever get lost, we can always copy the solutions file to our work directory and move on. Or, if we already have knowledge of how to create OOT modules in Python and C++, then we can simply install the custom modules and move on to the more advanced tutorials. For the complete flowgraphs, we can hover over the image to find the appropriate filename which can be found the examples directory of the tutorial.

Installing the Modules

Change directory into the cloned repository.

cd gr-tutorial

In the cloned repository, we can run the following set of commands to install the solutions:

mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig

If we want to do the tutorials ourselves, we can uninstall the modules by going to the build directory and running

sudo make uninstall
sudo ldconfig