libosmocore

libosmocore is a library with various utility functions that were originally developed as part of the OpenBSC project, but which are of a more generic nature and thus useful to (at least) other programs that we develop in the sphere of Free Software / Open Source mobile communications.

There is no clear scope of it. We simply move all shared code between OsmocomBB and OpenBSC in this library to avoid code duplication.

To build osmocom-bb it is mandatory to install libosmocom in advance.

To compile libosmocore you will need the following tools:

So open up a terminal window and execute the following commands:

sudo apt-get install build-essential libtool shtool autoconf automake git-core pkg-config make gcc

like shown here

1

and press Enter

u should then see this

2

Cause i already followed the Getting Started Guide it’s already installed here.

You should also start with the Getting Started Guide

Otherwise type Y and press Enter again.

next u need to install the following libraries:

sudo apt-get install libpcsclite-dev

so paste this in the terminal like shown here

3

And press Enter

u should then see this

4

Obtaining it

To obtain libosmocore, you can use the following git URL:

git clone git://git.osmocom.org/libosmocore.git

So open up a Terminal window and paste it

like shown here

5

and then press Enter

u should then see this happening

6

Compiling and installing it

To compile and install it as standalone:

In the same Terminal window now type:

cd libosmocore/

7

and press Enter

next u should be here

8

now that u are in this folder u should type the following command

autoreconf -i

9

and press Enter

u should then see this

10

after that’s done u should type the following command

./configure

11

and press Enter

u should then get this

12

This is the first error u get, but no worries i am going to tell you how to fix this

Since it’s saying No package ‘talloc’ found

we are going to install it manually

So first we are going to install a package manager called Synaptic

so let the existing terminal window open with the error and open up a new terminal window

you install the package manager by entering the following command:

sudo apt-get install synaptic

13

Now press Enter

and you should see this

14

So now type Y and press Enter again

15

u should after u pressed Enter you see this happening

16 17

So now the package manager called Synaptic is installed

To open it u should type the following command in the Terminal window:

sudo synaptic

18

and press Enter

u should then see this

19

in the Quick introduction window u can click close

and should then see this

20

Now this is the Synaptic Package manager

u should now click in the top right corner on Search

21

once u clicked on Search u should see the following search box

22

since we got the error No package ‘talloc’ found during the ./configure command for libosmocore we need to search talloc here

so in the search box type talloc

like shown here

23

and now press the Search button

24

u should then see the following

25

now right click on libtalloc-dev and select Mark for installation

26

you should now see a marker in front off libtalloc-dev

like seen here

27

next click on Apply in the Top bar

28

after u clicked Apply this window should come up

29

This is ok so click Apply again

30

u should then see this happening

31

and when done this

32

u can Click the Close button

33

now that this is closed u get back on the main window

34

now that you are here again close the Synaptic package manager in the top right corner

like seen here

35

now that u clicked close u should see this.

36

this is the terminal window where u launched the synaptic package manager

you can close that for now

to do so you type

exit

Like shown here

37

and press Enter

You should now come back to this terminal window if u let it open at least.

(otherwise go back to the libosmocore folder in the terminal window with the command cd libosmocore )

38

so since the ./configure command went wrong because of the talloc package it should run fine now

so re-type

./configure

or press the up arrow to load the last command

like seen here

39

So now that u have typed ./configure again press Enter

and u should see this passing by

40 41 42 43 44

and this when it’s done45Now that this is done we can run the next command in the same Terminal window

the command u should enter now is :

make

46

and press Enter

u should then see this passing by

47 48 49 50 51 52

and this when the make command is done

53

the next command we are going to run is:

sudo make install

54

after u type this command u can press Enter

and should see this passing by

55 56 57 58 59 60 61 62 63 64 65 66 67 68

and this when it’s done

69

now that this is done we can go on to the next command

the next command you need to type is:

sudo ldconfig -i

70

when you entered this command u can press Enter

nothing is going to display but u should come out back here again

71

Congratulations

You are now done with compiling and building libosmocore

Licensing

This library is GPL licensed, as the code is taken from the similarly GPL-licensed OpenBSC codebase.

This means you cannot use this library from non-GPL licensed code without infringing copyright!

Browsing its source code

You can do that using our cgit installation at http://cgit.osmocom.org/cgit/libosmocore/

 

Leave a Reply