我是网络领域的新手。我正在开发NS3模拟器,版本3.27。我下载了它,构建了它并运行了示例first.cc、second.cc等(位置: /home/user/ns-allinone-3.27/ns-3.27/examples/tutorial).
现在,我想将XG-PON模块与NS3链接起来。我从sourceforge.net下载了这个模块。并将该文件夹复制到NS3中的"src“文件夹。我尝试使用./build.py --enable-examples --enable-tests命令再次构建模拟器。但是这样做会产生以下错误。
'configure' finished successfully (2.415s)
=> /usr/bin/python waf build
Waf: Entering directory `/home/divya/ns-allinone-3.26/ns-3.26/build'
Waf: Leaving directory `/home/divya/ns-allinone-3.26/ns-3.26/build'
source not found: 'test/xgpon-pool-allocation-test.cc' in bld(features=['cxx', 'cxxshlib', 'ns3module', 'ns3testlib'], ns3_dir_location='src/xgpon', pcfilegen=bld(features='ns3pcfile', idx=4, meths=[], prec=defaultdict(<type 'list'>, {}), _name='', source='', module='ns3-xgpon-test', mappings={}, path=/home/divya/ns-allinone-3.26/ns-3.26/src/xgpon, target='') in /home/divya/ns-allinone-3.26/ns-3.26/src/xgpon, use=['ns3-xgpon'], mappings={}, uselib='', meths=['_add_test_code', 'apply_bundle', 'process_rule', 'process_source', 'apply_link', 'apply_implib', 'process_use', 'propagate_uselib_vars', 'apply_incpaths_ns3testlib', 'apply_incpaths', 'apply_vnum', 'collect_compilation_db_tasks', 'install_boost', 'set_macosx_deployment_target'], prec=defaultdict(<type 'list'>, {}), source=['test/xgpon-pool-allocation-test.cc', 'test/xgpon-olt-dba-engine-giant-test.cc'], test=True, install_path='${LIBDIR}', module_deps=['xgpon'], dependencies=['xgpon'], path=/home/divya/ns-allinone-3.26/ns-3.26/src/xgpon, vnum=None, posted=True, is_static=False, target='../../ns3.26-xgpon-test-debug', idx=3, _name='ns3-xgpon-test', is_ns3_module_test_library=True, module_name='ns3-xgpon') in /home/divya/ns-allinone-3.26/ns-3.26/src/xgpon
Traceback (most recent call last):
File "./build.py", line 171, in <module>
sys.exit(main(sys.argv))
File "./build.py", line 162, in main
build_ns3(config, build_examples, build_tests, args, build_options)
File "./build.py", line 82, in build_ns3
run_command([sys.executable, "waf", "build"] + build_options)
File "/home/divya/ns-allinone-3.26/util.py", line 25, in run_command
raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python', 'waf', 'build'] exited with code 1任何帮助都是非常感谢的。
发布于 2019-11-23 23:58:31
Waf构建工具抱怨它找不到在xgpon模块的wscript中列出的源文件之一(test/xgpon-pool-allocation-test.cc)。解决方案是从wscript中的可构建测试文件列表中删除该文件,或者找出丢失该文件的原因并将其插入到测试目录中。
https://stackoverflow.com/questions/58983336
复制相似问题