Compilations steps for use with oaisim 4G emulation environment

16 篇文章 1 订阅

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 <David.Lake@mail.bcu.ac.uk>)

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

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..

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值