我正在 GNU Radio 3.8 in C++ 中实现卷积编码器-解码器 OOT 模块。
运行我为编码器和解码器编写的 python 测试时,出现以下错误:
ImportError: undefined symbol: _ZN2gr5a3sat13conv_dec_impl9generatorE
该generator
变量在conv_dec_impl
头文件中声明为:
inline static const bool generator[2][7] = {{1, 0, 0, 1, 1, 1, 1}, {1, 1, 0, 1, 1, 0, 1}}
此外,在测试的python文件中,导入 a3sat_swig 时,我收到此错误:No module named 'a3sat_swig'
它可能与 CMakeLists 文件有关吗?
欢迎任何帮助。
生成器变量在 conv_dec_impl 头文件中声明为:
内联静态 const bool 生成器 [2][7] = {{1, 0, 0, 1, 1, 1, 1}, {1, 1, 0, 1, 1, 0, 1}}
将generator
定义移动到.cpp
文件中。还要确保您没有安装缺少此符号的 OOT 块的先前版本。
此外,在测试的 python 文件中,导入 a3sat_swig 时,出现此错误:No module named 'a3sat_swig'
打开python/__init__.py
,要么改变ImportError
对ModuleNotFoundError
或删除try
和except
。见问题 4761
它可能与 CMakeLists 文件有关吗?
不,很可能与 CMakeLists 文件无关。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句