-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathINSTALL
109 lines (89 loc) · 3.04 KB
/
INSTALL
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Install instructions
====================
Dependencies
------------
To compile igotu2gpx, you need:
- qt4 (http://www.qtsoftware.com/)
- boost (http://www.boost.org/)
- pkg-config (on Linux and Mac OS X systems)
- chrpath (on Linux, optional, makes it possible to run the program without
installation)
- marble (http://edu.kde.org/marble, optional, openstreetmap display of tracks)
- openssl (on Windows already on install time, otherwise only at runtime, http://openssl.org)
- libusb 1.0 (on Mac OS X systems, http://libusb.sourceforge.net/)
- libusb or libusb 1.0 (on Linux, http://libusb.sourceforge.net/), or the kernel driver (see below)
On a Ubuntu system, this should get you the dependencies:
----
sudo aptitude install libqt4-dev libboost-dev \
libusb-1.0-0-dev libmarble-dev chrpath
----
Compiling
---------
Linux
~~~~~
On a Linux system, you can compile with:
----
qmake && make && sudo make install
----
If you get error messages about "Unknown test functions" from qmake, try
qmake-qt4 instead of qmake.
If you are on a 64bit system and your distributor ships 64bit libraries in
/lib64 and /usr/lib64, use "qmake LIBDIR=/usr/local/lib64".
If you use a compiler older than gcc 4.0.0, use "qmake CLEBS=novisibility".
If you get an error message of
----
/usr/local/bin/igotugui: error while loading shared libraries:
libigotu.so.1: cannot open shared object file: No such file or directory
----
although it got installed correctly, you might be missing a library path. It
might help to create a file "/etc/ld.so.conf.d/local.conf" with the following
content:
-----------
/usr/local/lib
-----------
and run:
----
ldconfig
----
To compile the kernel module, go to src/igotuserial and compile with:
----
make
----
You can then load the kernel module with:
----
sudo modprobe usbserial; sudo insmod ./igotu.ko
----
Mac OS X
~~~~~~~~
On a Mac OS X system, a bit more work is necessary.
If you want to use marble, get the Mac OS X package from the website and
install it. Afterwards, find a Windows machine and install the Windows package
on it, grab the include folder and put it in
/Applications/marble.app/Contents/Resources/data.
Now copy the file localconfig-template.pri to localconfig.pri, uncomment the
lines with macx:... and adjust the paths so that they match your installation.
Afterwards, try:
----
qmake -spec macx-g++ && make && sudo make install
----
which should provide you with a more or less working installation in /usr/local
(the path to the marble widget library is wrong).
Microsoft Windows
~~~~~~~~~~~~~~~~~
On Microsoft Windows you can compile igotu2gpx with MinGW. Copy the file
localconfig-template.pri to localconfig.pri, uncomment the lines with win32:...
and adjust the paths so that they match your installation. Afterwards, try the
following from the Qt command line:
----
qmake && make && make install
----
which should provide you with a working installation in bin/debug-installed.
Running
-------
To get started, try:
----
igotugui
man igotu2gpx
igotu2gpx info
igotu2gpx dump
----