惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
Y
Y Combinator Blog
M
MIT News - Artificial intelligence
The Cloudflare Blog
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 司徒正美
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
C
Check Point Blog
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
F
Fortinet All Blogs
B
Blog
大猫的无限游戏
大猫的无限游戏
N
Netflix TechBlog - Medium
B
Blog RSS Feed
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

博客园 - 普罗大众

debug的一个问题 phy_simulators之nr_dlsim之4层接收的优化 phy_simulators之nr_dlsim之一个bug phy_simulators之nr_dlsim开始 phy_simulators之nr_pbchsim之PBCH解码 phy_simulators之nr_pbchsim之PBCH-DMRS检测 phy_simulators之nr_pbchsim之仿真的局限 phy_simulators之nr_pbchsim之一些结构 phy_simulators之nr_pbchsim之SSS检测 phy_simulators之nr_pbchsim之信道 phy_simulators之nr_pbchsim之初始同步 phy_simulators之nr_pbchsim之发送端 phy_simulators之nr_pbchsim之PSS检测 phy_simulators之dlsim.c debug方法三:printf debug方法二:用vs code debug方法一:直接用gdb命令 phy_simulators的编译生成方法三:CMakePresets.json phy_simulators的编译生成方法一:build_oai --phy_simulators open air interface的phy_simultors编译过了 AI App的使用感觉 从“图像视频编码”到“通信物理层” MAC pc + Ubuntu + OAI 原来Fourier是法国的,怪不得法国小波分析这么牛 整理心情
phy_simulators的编译生成方法二:手动写cmake脚本
普罗大众 · 2026-02-23 · via 博客园 - 普罗大众

1. 官方文档里也说了,可以不用build_oai脚本,自己手动写cmake脚本

2. 官方文档里说的是:

cd openairinterface5g

mkdir build && cd build

cmake .. -GNinja -DENABLE_PHYSIM_TESTS=ON

ninja tests

ctest

但我运行以后,ctest不了,对着build_oai写了一个可以运行的脚本:

mkdir -p ran_build/build

cd ran_build/build

cmake -DENABLE_PHYSIM_TESTS=ON ../../..

cmake --build . --target dlsim params_libconfig coding rfsimulator dfts params_yaml vrtsim rf_emulator -- -j2

3. 还跑了一个:

cmake -DCMAKE_BUILD_TYPE=Debug ../../..

cmake --build .

出了问题,forms.h: No such file or directory,最后安装了一个lib解决了:

sudo apt-get install libforms-dev

发现有个警告,Package 'libcap', required by 'virtual:world', not found,又安装了一个lib:

sudo apt-get install libcap-dev

还有警告,Package 'libcblas', required by 'virtual:world', not found,但安装一堆包都显示已经最新了哦

sudo apt install libblas3 liblapack3 libblas-dev liblapack-dev

CMakeLists.txt里也说明了ubuntu会有这个问题:

# RHEL needs also cblas, but Ubuntu does not have it. So `cblas_LIBRARIES` and
# `cblas_INCLUDE_DIRS` will be empty for Ubuntu, a no-op

4. 可以选择性的build一些target,如:

cmake -DENABLE_PHYSIM_TESTS=ON -DCMAKE_BUILD_TYPE=Debug ../../..
cmake --build . --target nr_pbchsim

有时会报错,如缺少了libldpc.so文件,此时还是要重新都生成一次:

cmake -DCMAKE_BUILD_TYPE=Debug ../../..

cmake --build .