<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;h2&gt;Install Necessary Packages&lt;/h2&gt;
&lt;p&gt;From a terminal execute the following command&lt;/p&gt;
&lt;p&gt;sudo apt-get install git gitk git-gui g++ usrp libwxgtk2.8-dev libwxgtk2.8-dbg wx2.8-headers libwxbase2.8-dev libwxbase2.8-dbg libusb-dev make&lt;/p&gt;
&lt;p&gt;If you have a Linux distro other than Ubuntu, follow whatever distribution specific instructions to install the above packages.&lt;/p&gt;
&lt;h2&gt;Download the Source Code&lt;/h2&gt;
&lt;p&gt;Open a terminal and clone the source by executing the command:&lt;/p&gt;
&lt;p&gt;git clone git://github.com/gps-sdr/gps-sdr.git&lt;/p&gt;
&lt;p&gt;Note: this will put the code in a directory called &amp;#8216;&amp;#8217;gps-sdr&amp;#8217;&amp;#8217; from wherever you invoke the command. Or goto http://github.com/gps-sdr/gps-sdr/tree/master and download the latest tarball.&lt;/p&gt;
&lt;h2&gt;Install your &lt;span class=&quot;caps&quot;&gt;USRP&lt;/span&gt;/GN3S&lt;/h2&gt;
&lt;p&gt;Please follow the &lt;span class=&quot;caps&quot;&gt;USRP&lt;/span&gt; installation guide provided by the GNURadio project. Note: the gps-sdr is built and tested with the latest GNURadio libraries and packages provided with Ubuntu only, which may be incompatible with the latest GNURadio release! Installation of the GN3S also requires installation of GNURadio, specifically the &lt;span class=&quot;caps&quot;&gt;USRP&lt;/span&gt; section.&lt;/p&gt;
&lt;h2&gt;Build the Receiver&lt;/h2&gt;
&lt;p&gt;CD to the &amp;#8216;&amp;#8217;gps-sdr&amp;#8217;&amp;#8217; directory. Type &amp;#8220;make&amp;#8221; which should generate the following:&lt;/p&gt;
&lt;p&gt;gpssim@gpsdevc:~/workspace/gps-sdr$ make&lt;br /&gt;
g++ -O2 -D_FORTIFY_SOURCE=0 -g3 -m32 -Iaccessories -Iacquisition -Iincludes -Imain -Iobjects -Isimd -Iusrp -c main/main.cpp -o main.o &lt;br /&gt;
&amp;#8230;&lt;br /&gt;
&amp;#8230;&lt;br /&gt;
&amp;#8230;&lt;br /&gt;
g++ -D_FORTIFY_SOURCE=0 `wx-config &amp;#8212;cxxflags` -g3 -I. -Iinclude -I../includes -I../objects  -c gui_classes.cpp -o gui_classes.o&lt;/p&gt;
&lt;p&gt;Two executables, &lt;b&gt;gps-sdr&lt;/b&gt; and &lt;b&gt;gps-gse&lt;/b&gt; should have been built.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Error. Can anyone help?&lt;/p&gt;
&lt;p&gt;My first go at this, following the build guide I get&#8230;.Ubuntu 8.10 64 bit&lt;br /&gt;
gnuradio/gps-sdr/usrp$ make&lt;br /&gt;
g++ -O3 -D_FORTIFY_SOURCE=0 -I/home/pwakeman/gnuradio/usrp/firmware/include -I/home/pwakeman/gnuradio/usrp/host/lib -c gps-usrp.cpp -o gps-usrp.o&lt;br /&gt;
In file included from gps-usrp.cpp:21:&lt;br /&gt;
/usr/local/include/usrp_bytesex.h:37:2: warning: #warning Using non-portable code (likely wrong other than ILP32).&lt;br /&gt;
gps-usrp.cpp: In function &#8216;int echo_options(options*)&#8217;:&lt;br /&gt;
gps-usrp.cpp:115: error: cannot convert &#8216;usrp_standard_rx_sptr&#8217; to &#8216;usrp_standard_rx*&#8217; in initialization&lt;br /&gt;
gps-usrp.cpp: In function &#8216;void* record_thread(void*)&#8217;:&lt;br /&gt;
gps-usrp.cpp:401: error: cannot convert &#8216;usrp_standard_rx_sptr&#8217; to &#8216;usrp_standard_rx*&#8217; in initialization&lt;br /&gt;
make: &lt;strong&gt;*&lt;/strong&gt; [gps-usrp.o] Error 1&lt;/p&gt;</body>
  <created-at type="datetime">2009-11-25T03:09:25-08:00</created-at>
  <id type="integer">277433</id>
  <permalink>building-the-receiver</permalink>
  <repository-id type="integer">16636</repository-id>
  <title>Building the Receiver</title>
  <updated-at type="datetime">2009-09-13T06:45:45-07:00</updated-at>
  <user-id type="integer">126366</user-id>
</wiki>
