Project

General

Profile

Build from Source » History » Version 2

neels, 11/15/2016 02:06 PM

1 1 neels
{{>toc}}
2 1 neels
3 1 neels
h1. Build from Source
4 1 neels
5 1 neels
bq. *Before you consider building from source, be aware that there are [[Nightly Builds]]
6 1 neels
available for Debian + Ubuntu platforms. These are recommended for normal users.*
7 1 neels
8 1 neels
Generally, Osmocom projects use autoconf/automake.
9 2 neels
The general pattern for building is:
10 1 neels
11 1 neels
<pre>
12 1 neels
cd source-tree
13 1 neels
autoreconf -fi
14 1 neels
./configure
15 1 neels
make
16 1 neels
make check
17 1 neels
make install
18 1 neels
</pre>
19 1 neels
20 1 neels
The @./configure@ step may need further configuration options, see
21 1 neels
details below. Also, @./configure@ will tell you which dependencies
22 1 neels
are still missing, if any. See also below.
23 1 neels
24 1 neels
The @make@ step may generally be sped up by using multiple CPU cores:
25 1 neels
26 1 neels
<pre>
27 1 neels
make -j 8
28 1 neels
</pre>
29 1 neels
30 1 neels
We take care to make our builds parallelizable with @-j@, but in case
31 1 neels
@make -j@ fails, issuing a simple @make@ could fix the problem (expecting
32 1 neels
this only in libsmpp34).
33 1 neels
34 1 neels
35 1 neels
h1. Dependencies
36 1 neels
37 1 neels
Which libraries are needed by various Osmocom programs is best resolved during
38 1 neels
the @./configure@ step described below. This script checks for any missing
39 1 neels
dependencies.
40 1 neels
41 1 neels
Here is a (probably incomplete) overview of dependencies between Osmocom
42 1 neels
projects:
43 1 neels
44 1 neels
| _To build ..._ | _... you also need ..._ |
45 1 neels
| osmo-bts | libosmocore, libosmo-abis, openbsc (source tree only), L1 headers depending on BTS model |
46 1 neels
| osmo-pcu | libosmocore, L1 headers depending on BTS model |
47 1 neels
| openbsc: osmo-nitb, osmo-bsc, osmo-sgsn, osmo-bsc_nat, osmo-bsc_mgcp | libosmocore, libosmo-abis, libosmo-netif, libosmo-sccp, libsmpp34 |
48 1 neels
| openbsc: 3G osmo-cscn (branch sysmocom/iu) | libosmocore, libosmo-abis, libosmo-netif (branch sysmocom/sctp), libosmo-sccp (branch sysmocom/iu), asn1c, libasn1c, osmo-iuh |
49 1 neels
| osmo-iuh | libosmocore, libosmo-netif, libosmo-sccp, asn1c, libasn1c |
50 1 neels
51 1 neels
h1. Download Sources
52 1 neels
53 1 neels
The latest Osmocom sources are obt
Add picture from clipboard (Maximum size: 48.8 MB)