Compilations steps for use with oaisim 4G emulation environment

following the instructions in README file under trunk/openair-cn, do "Compilations steps for use with oaisim 4G emulation environment"

==./autogen.sh or autoreconf -i --force --install
==mkdir objs && cd objs
==../configure [options]
==make


there are some options, you can follow this:(By Navid)

===============================================================================================

 the option --enable-standalone-epc" will build an all-in-one EPC (MME/NAS, S+P-GW).
Hre are the configuration options:
Al-in-one :
../configure                --enable-standalone-epc --enable-gtp1u-in-kernel LDFLAGS=-L/usr/local/lib
With S11 interface
../configure                --enable-gtp1u-in-kernel LDFLAGS=-L/usr/local/lib
Two executables should be created and run on different machines (it has been a while since we used this setup).
1) oai_sgw in OAI_SGW
2) oaisim_mme in OAISIM_MME (maybe the bin name has changed I did not check this)


You also need to make sure that you are using the latest version of Linux kernel, preferably >3.14 with lowlatency option (seehttps://twiki.eurecom.fr/twiki/bin/view/OpenAirInterface/OpenAirKernelMainSetup)

==============================================================================================


However, you still have one error about boolean_t, like this:


=============================================================

../../INTERTASK_INTERFACE/intertask_interface.c:169:5: error: unknown type name 'boolean_t'
../../INTERTASK_INTERFACE/intertask_interface.c: In function 'itti_init':
../../INTERTASK_INTERFACE/intertask_interface.c:860:41: error: 'FALSE' undeclared (first use in this function)
../../INTERTASK_INTERFACE/intertask_interface.c:860:41: note: each undeclared identifier is reported only once for each function it appears in

=============================================================

you can fix the error following this:(By David Lake )

====================================

The problem is due to the lack of support for "boolean_t" in your distro (in my case Ubuntu 14.04).

I did the following to openair-cn/INTERTASK_INTERFACE/intertask_interface.c:

- Before the first typedef, add:

    typedef enum { B_FALSE, B_TRUE } boolean_t;

- ~ line 861, change: "itti_desc.thread_handling_signals = FALSE;" to "itti_desc.thread_handling_signals = B_FALSE;"

- ~ line 982, change: "itti_desc.thread_handling_signals = TRUE;" to itti_desc.thread_handling_signals = B_TRUE;"

=======================================================

Then, you can build your EPC and other objs..

你可能感兴趣的:(OAI,Ubuntu)