summaryrefslogtreecommitdiff
path: root/INSTALL
blob: 6a8ce6afc1bed63b6856c05d5f669258fd405d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Start by making sure you can get data from your GPS, otherwise the later
steps will be very frustrating.  In this command

      stty -F /dev/ttyXXX ispeed 4800; cat </dev/ttyUSB0

replace ttyXXX with the filename of the port.  This will probably be
either /dev/ttyUSB0 or /dev/ttyS0.  When you run this command, you
should see text lines come to stdout (possibly after a short initial
burst of bnary garbage).  If you don't see this, you may have OS-level
problems with your serial support, but more likely have the wrong
device.  Look again.

You will need to have either Motif or LessTif installed.  If you're on a 
Linux system, you probably already have LessTif.  Source code is 
available from <http://www.lesstif.org/>.

Run ./autogen.sh (or sh autogen.sh if the script does not have execute
permission).  

Check the Makefile.

Run make:  libgps.a, gpsd, gps, and xgpsspeed will be built.
Copy the applications wherever you want them to live.

Copy the app-defaults files gps.ad and xgpsspeed.ad to your home
directory or to the system-wide X app-defaults directory.

The right thing to do is to start gpsd on a serial or USB port that
has the GPS connected to it.

Then start gps.  Calling it with no arguments will do the right thing
if you have gpsd running on the default port (2947).

You can also telnet to port 2947 for testing. When doing that, type a 'WR'
followed by <cr>. This should display both the raw NMEA sentences the daemon
receives from the GPS and their translations in GPSD protocol.