[hamradio-commits] [gnss-sdr] 62/126: Updated info on homebrew install

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Sat Dec 26 18:38:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

carles_fernandez-guest pushed a commit to branch next
in repository gnss-sdr.

commit af3d706fd38103a434cf394ff8526f7e645ad556
Author: Cillian O'Driscoll <cillian.odriscoll at gmail.com>
Date:   Sun Aug 9 22:23:10 2015 +0100

    Updated info on homebrew install
---
 CMakeLists.txt |  3 +++
 README.md      | 39 +++++++++++++++++++++++++++++++++++++--
 2 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e728ba8..3dd64a0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -364,6 +364,9 @@ if(NOT GNURADIO_RUNTIME_FOUND)
        message("You can install it easily via Macports.")
        message("Open a terminal and type:")
        message("sudo port install gnuradio ")
+       message("Alternatively you can use homebrew.")
+       message("brew tap odrisci/gnuradio")
+       message("brew install gnuradio" )
        message(FATAL_ERROR "GNU Radio 3.7.3 or later is required to build gnss-sdr")
    endif(OS_IS_MACOSX)
 endif(NOT GNURADIO_RUNTIME_FOUND)
diff --git a/README.md b/README.md
index 34c93c5..7311bfa 100644
--- a/README.md
+++ b/README.md
@@ -390,7 +390,11 @@ Agree to Xcode license:
 $ sudo xcodebuild -license
 ~~~~~~ 
 
-Then, you need a package manager. For example, you can [install Macports](http://www.macports.org/install.php "Macports"). If you are upgrading from a previous installation, please follow the [migration rules](http://trac.macports.org/wiki/Migration).
+Software pre-requisites can be installed using either [Macports](#macports) or [Homebrew](#homebrew).
+
+####<a name"macports">Macports</a>
+
+First, [install Macports](http://www.macports.org/install.php). If you are upgrading from a previous installation, please follow the [migration rules](http://trac.macports.org/wiki/Migration).
 
 In a terminal, type:
 
@@ -416,12 +420,43 @@ and you can activate a certain version (2.7 works well) by typing:
 $ sudo port select --set python python27
 ~~~~~~ 
 
+#### <a name="homebrew">Homebrew</a>
+
+Instructions for installing gnuradio using [homebrew](http://www.brew.sh) can be found [here](http://github.com/odrisci/homebrew-gnuradio) - please ensure to install all dependencies as required.
+
+Install Armadillo and dependencies:
+
+~~~~~~
+$ brew tap homebrew/science
+$ brew install cmake hdf5 arpack superlu
+$ brew install armadillo
+$ brew install glog gflags
+~~~~~~
+
+#### Build GNSS-SDR
+
 Finally, you are ready to clone the GNSS-SDR repository and build the software:
 
 ~~~~~~ 
 $ git clone https://github.com/gnss-sdr/gnss-sdr
 $ cd gnss-sdr/build
+~~~~~~
+
+If using Macports, run:
+
+~~~~~~
+$ cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_PREFIX_PATH=/opt/local -DUSE_MACPORTS_PYTHON=/opt/local/bin/python ../
+~~~~~~
+
+If using homebrew, run:
+
+~~~~~~
 $ cmake ../
+~~~~~~
+
+Finally, run:
+
+~~~~~~
 $ make
 ~~~~~~ 
 
@@ -431,7 +466,7 @@ This will create three executables at gnss-sdr/install, namely ```gnss-sdr```, `
 $ sudo make install
 ~~~~~~ 
 
-
+Note, it is advisable not to run the install step in a homebrew environment.
 
 The documentation can be built by:
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list