Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 waf 脚本来构建 ns-3 模拟器。我还安装了(我的意思是我已经下载并构建了 ns-3 模拟器的 openflow 模块。)但是,当我想将 openflow 模块的头文件(位于 linux 的不同目录中)包含到一个类中时在原始 ns-3 源代码中的另一个模块(例如 lte 模块)中,我没有收到这样的文件或目录错误。我试图通过添加我想添加的头文件的路径来更改 wafscript,但它不起作用。我还能尝试什么来解决这个问题?提前致谢。
刚刚发现问题。原来这是对应wscript文件(lte模块的wscript文件)的配置文件导致的错误。在这个文件中,我需要通过修改构建方法将 openflow 模块添加为 lte 模块的源模块
module = bld.create_ns3_module('lte', ['<another modules>','openflow'])
通过这种方式,现在 waf 构建系统能够包含 openflow 模块作为源路径。