Editing InstallingGR

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 17: Line 17:
 
If the version shipped in your distribution is outdated please contact the corresponding maintainer to update it in the packaging system.
 
If the version shipped in your distribution is outdated please contact the corresponding maintainer to update it in the packaging system.
  
Here are examples of how to install GNU Radio in various Linux distributions. <b>Click the link under &quot;Distribution&quot; for how to install dependencies.</b>
+
Here are examples of how to install GNU Radio in various Linux distributions (click the link under &quot;Distribution&quot; for more installation details):
  
 
{|class="wikitable" style="margin: auto; width: 90%;"
 
{|class="wikitable" style="margin: auto; width: 90%;"
Line 117: Line 117:
 
=== Notes ===
 
=== Notes ===
  
* By default GNU Radio will be installed in the <code>/usr/local</code> directory.  See notes about [[InstallingGR#Common_cmake_flags|-DCMAKE_INSTALL_PREFIX]] to install it elsewhere.
+
* By default GNU Radio will be installed in the /usr/local directory.  See notes about -DCMAKE_INSTALL_PREFIX to install it elsewhere.
 
* Running and developing out-of-tree modules does not require GNU Radio to be installed from source.  
 
* Running and developing out-of-tree modules does not require GNU Radio to be installed from source.  
* <b>If you want to use GNU Radio with a USRP, you FIRST must clone and install UHD</b>. See the [https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux UHD Installation Page] for more info, <b>OR</b> follow the instructions in [[InstallingGRFromSource_on_Raspberry_Pi#Load_prerequisites|Install UHD from source]].
+
* If you are using Ubuntu, see [[UbuntuInstall#Install_Dependencies]] for installing dependencies.
 +
* If you want to use GNU Radio with a USRP, you <b>FIRST</b> must clone and install UHD. See [[https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux UHD Installation Page]] for more info.
 
* To install on a Raspberry Pi, see [[InstallingGRFromSource on Raspberry Pi]].
 
* To install on a Raspberry Pi, see [[InstallingGRFromSource on Raspberry Pi]].
 
* To build from source from within a conda environment, see [[CondaInstall#Building GNU Radio from source within a conda environment|the conda install guide]].
 
* To build from source from within a conda environment, see [[CondaInstall#Building GNU Radio from source within a conda environment|the conda install guide]].
  
=== For GNU Radio 3.9 and Master Branch ===
+
=== For the GNU Radio Master Branch ===
  
 
This section describes how to install GNU Radio 3.9 and the Master branch from source code.
 
This section describes how to install GNU Radio 3.9 and the Master branch from source code.
  
==== Installing Dependencies ====
+
==== Step 1: Installing Dependencies ====
  
 
Refer to [[InstallingGR#Linux|this page for your specific Linux distro]] to find how to install dependencies.  For example, on Ubuntu 20.04 [[UbuntuInstall#Focal_Fossa_.2820.04.29_through_Hirsute_Hippo_.2821.04.29|use this command]].
 
Refer to [[InstallingGR#Linux|this page for your specific Linux distro]] to find how to install dependencies.  For example, on Ubuntu 20.04 [[UbuntuInstall#Focal_Fossa_.2820.04.29_through_Hirsute_Hippo_.2821.04.29|use this command]].
  
==== Installing Volk ====
+
==== Step 2: Installing Volk ====
  
 
Since Volk is no longer considered as a submodule of GNU Radio (GNU Radio commit #80c04479da962d048d41165081b026aafdaa0316 ),<br> you <b>MUST FIRST</b> install Volk, and then install GNU Radio.  
 
Since Volk is no longer considered as a submodule of GNU Radio (GNU Radio commit #80c04479da962d048d41165081b026aafdaa0316 ),<br> you <b>MUST FIRST</b> install Volk, and then install GNU Radio.  
Line 151: Line 152:
 
* <code>sudo ldconfig</code>
 
* <code>sudo ldconfig</code>
  
==== Installing GNU Radio ====
+
==== Step 3: Installing GNU Radio ====
 
 
 
* <code>cd</code>
 
* <code>cd</code>
 
* <code>git clone https://github.com/gnuradio/gnuradio.git</code>
 
* <code>git clone https://github.com/gnuradio/gnuradio.git</code>
Line 162: Line 162:
 
<b>Note:</b> In the following command, you can add <code>-DCMAKE_INSTALL_PREFIX=XXX</code> to install GNU Radio into the PREFIX <code>XXX</code>; if not specified, then the PREFIX is <code>/usr/local</code>. See other CMake options in [[#Common_cmake_flags|Common cmake flags]].<br>
 
<b>Note:</b> In the following command, you can add <code>-DCMAKE_INSTALL_PREFIX=XXX</code> to install GNU Radio into the PREFIX <code>XXX</code>; if not specified, then the PREFIX is <code>/usr/local</code>. See other CMake options in [[#Common_cmake_flags|Common cmake flags]].<br>
 
* <code>cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../</code>
 
* <code>cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../</code>
* <code>make -j3</code> (e.g. if you want to use 3 CPU cores during the build.  To use 8 do -j8, to use 1, leave out the -j flag.)
+
* <code>make -j3</code> (e.g. if you want to use 3 CPU cores during the build.  To use 8 do -j8, to use 1 leave out the -j flag.)
 
<b>Note:</b> In the following command, it is very possible that not all tests pass. Generally any error is a sign of a missing dependency such as the Python interface to ZMQ or NumPy or SciPy, none of which are required for building GNU Radio but are required for testing.
 
<b>Note:</b> In the following command, it is very possible that not all tests pass. Generally any error is a sign of a missing dependency such as the Python interface to ZMQ or NumPy or SciPy, none of which are required for building GNU Radio but are required for testing.
 
* <code>make test</code>
 
* <code>make test</code>

Please note that all contributions to GNU Radio are considered to be released under the Creative Commons Attribution-ShareAlike (see GNU Radio:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)