Difference between revisions of "Installing the Tutorials Modules"

From GNU Radio
Jump to: navigation, search
(breaking this off of the main tutorial since most students should do it themselves)
 
m (Installing the Modules)
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
<pre>/home/user/gnuradio/tutorials/solutions
 
<pre>/home/user/gnuradio/tutorials/solutions
 
/home/user/gnuradio/tutorials/work</pre>
 
/home/user/gnuradio/tutorials/work</pre>
=== 2.1.1. Cloning the Repository ===
+
 
 +
=== 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:
 
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:
Line 12: Line 13:
 
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.
 
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.
  
=== 2.1.2. 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 19: Line 24:
 
cd build
 
cd build
 
cmake ..
 
cmake ..
make -j8
+
make
 
sudo make install
 
sudo make install
 
sudo ldconfig</pre>
 
sudo ldconfig</pre>
Line 26: Line 31:
 
<pre>sudo make uninstall
 
<pre>sudo make uninstall
 
sudo ldconfig</pre>
 
sudo ldconfig</pre>
 +
 +
[[Guided_Tutorial_GRC | Back to the tutorial]]

Revision as of 20:40, 2 April 2020

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

Back to the tutorial