我试图在ns-3文件夹中使用命令./waf构建ns-3,
但它给了我这个:
Waf: Entering directory `/home/mptcp/build'
Waf: Leaving directory `/home/mptcp/build'
source not found: 'model/mp-tcp-onoff-application.cc' in
bld(features=['cxx', 'cxxshlib', 'ns3module'],
ns3_dir_location='src/applications', pcfilegen=bld(features='ns3pcfile',
idx=2, meths=[], prec=defaultdict(<type 'list'>, {}), _name='', source='',
module='ns3-applications', mappings={}, path=/home/mptcp/src/applications,
target='') in /home/mptcp/src/applications, use=['ns3-internet', 'ns3-
config-store', 'ns3-stats', 'ns3-mptcp'], mappings={}, uselib='', meths=
['_add_test_code', 'apply_bundle', 'process_rule', 'process_source',
'apply_link', 'apply_implib', 'process_use', 'propagate_uselib_vars',
'apply_incpaths', 'apply_vnum', 'set_macosx_deployment_target'],
prec=defaultdict(<type 'list'>, {}), source=['model/bulk-send-
application.cc', 'model/onoff-application.cc', 'model/packet-sink.cc',
'model/ping6.cc', 'model/radvd.cc', 'model/radvd-interface.cc',
'model/radvd-prefix.cc', 'model/udp-client.cc', 'model/udp-server.cc',
'model/seq-ts-header.cc', 'model/udp-trace-client.cc', 'model/packet-loss-
counter.cc', 'model/udp-echo-client.cc', 'model/udp-echo-server.cc',
'model/v4ping.cc', 'model/application-packet-probe.cc', 'helper/bulk-send-
helper.cc', 'helper/on-off-helper.cc', 'helper/packet-sink-helper.cc',
'helper/ping6-helper.cc', 'helper/udp-client-server-helper.cc',
'helper/udp-echo-helper.cc', 'helper/v4ping-helper.cc', 'helper/radvd-
helper.cc', 'model/mp-tcp-packet-sink.cc', 'model/mp-tcp-bulk-send-
application.cc', 'model/mp-tcp-onoff-application.cc', 'helper/mp-tcp-
packet-sink-helper.cc', 'helper/mp-tcp-bulk-send-helper.cc'], test=False,
is_ns3_module=True, install_path='${LIBDIR}', module_deps=['internet',
'config-store', 'stats', 'mptcp'], dependencies=['internet', 'config-
store', 'stats', 'mptcp'], path=/home/mptcp/src/applications, vnum=None,
posted=True, is_static=False, target='../../ns3.19-applications-debug',
idx=1, _name='ns3-applications') in /home/mptcp/src/applications我不知道该怎么办。
我已经从文件夹中删除了文件/.tcp,并且还编辑了wscript文件.
如何删除此错误?这似乎是一个丢失的源文件错误,错误消息说什么?我已经删除了文件引用。
发布于 2016-03-31 07:32:37
错误说waf找不到model/mp-tcp-onoff-application.cc。在错误消息中,任务生成器的源属性将model/mp-tcp-onoff-application.cc作为源。waf完全正确:)
如果您已将model/mp-tcp-onoff-application.cc从磁盘中删除,则应确保您的wscript不将模型/作为源。没有wscript我就帮不了你了。
如果wscript生成源列表,请在构建之前尝试waf clean。
https://stackoverflow.com/questions/36253378
复制相似问题