AMF 编译安装

硬件配置需求

以下为参考配置:

  • 18.04.1-Ubuntu SMP x86 64 GNU/Linux

  • 建议 4C/8G

部署教程

首先下载源码:

  • 国内地址:http://git.opensource5g.org/nkrd/amf.git

  • 国外地址:https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-amf.git

git clone http://git.opensource5g.org/openxg/amf.git

# 进入脚本目录
cd amf/build/scripts

# 安装依赖环境
sudo ./build_amf -I -f

# 编译
sudo ./build_amf -V -b Debug -j

# 运行 AMF(使用默认配置文件)
sudo amf -c ~/amf/etc/amf.conf -o

如果需要修改 AMF 的配置,修改 etc/amf.conf,选择合适的 mcc、mnc、tac、AMF 绑定的网卡、修改 SMF 的 IP 地址等。

问题

  • fatal error: spdlog/spdlog.h: No such file or directory

apt-get install libspdlog-dev
  • fatal error: nlohmann/json.hpp: No such file or directory

git clone https://github.com/nlohmann/json.git
mkdir build
cd build
cmake ..
make
make install