简体   繁体   English

在NS3中运行example-sixlowpan.cc

[英]running example-sixlowpan.cc in NS3

I am receicing the following error when trying to run the example-sixlowpan.cc file in NS3, i have placed both the example-sixlowpan.cc and example-ping-lr-wpan.cc files within a folder named 6lowpan within the scratch folder of NS3. 我尝试在NS3中运行example-sixlowpan.cc文件时收到以下错误,我已将example-sixlowpan.cc和example-ping-lr-wpan.cc文件都放在草稿文件夹中名为6lowpan的文件夹中的NS3。

after running "./waf --run example-sixlowpan" i receive the following error: 运行“ ./waf --run example-sixlowpan”后,出现以下错误:

Waf: Leaving directory `/repos/ns-allinone-3.25/ns-3.25/build' Build failed -> task in '6lowpan' failed (exit status 1): {task 140117242282192: cxxprogram example-ping-lr-wpan.cc.3.o,example-sixlowpan.cc.3.o -> 6lowpan} ['/usr/bin/g++', '-pthread', '-pthread', 'scratch/6lowpan/example-ping-lr-wpan.cc.3.o', 'scratch/6lowpan/example-sixlowpan.cc.3.o', '-o', '/repos/ns-allinone-3.25/ns-3.25/build/scratch/6lowpan/6lowpan', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-lns3.25-test-debug', '-lns3.25-lr-wpan-debug', '-lns3.25-netanim-debug', '-lns3.25-lte-debug', '-lns3.25-spectrum-debug', '-lns3.25-antenna-debug', '-lns3.25-aodv-debug', '-lns3.25-applications-debug', '-lns3.25-csma-layout-debug', '-lns3.25-dsdv-debug', '-lns3.25-dsr-debug', '-lns3.25-flow-monitor-debug', '-lns3.25-internet-apps-debug', '-lns3.25-mesh-debug', '-lns3.25-wimax-debug', '-lns3.25-nix-vector-routing-debug', '-lns3.25-olsr-debug', '-lns3.25-point-to-point-layout-debug', '-lns3.25-sixlowpan-debug' Waf:离开目录`/repos/ns-allinone-3.25/ns-3.25/build'失败->'6lowpan'中的任务失败(退出状态1):{task 140117242282192:cxxprogram example-ping-lr-wpan.cc .3.o,example-sixlowpan.cc.3.o-> 6lowpan} ['/ usr / bin / g ++','-pthread','-pthread','scratch / 6lowpan / example-ping-lr-wpan .cc.3.o','scratch / 6lowpan / example-sixlowpan.cc.3.o','-o','/ repos / ns-allinone-3.25 / ns-3.25 / build / scratch / 6lowpan / 6lowpan ','-Wl,-Bstatic','-Wl,-Bdynamic','-Wl ---按需','-L。','-lns3.25-test-debug','- lns3.25-lr-wpan-debug','-lns3.25-netanim-debug','-lns3.25-lte-debug','-lns3.25-spectrum-debug','-lns3.25-天线调试'',``-lns3.25-aodv调试'',``-lns3.25-applications-debug'',``-lns3.25-csma-layout-debug'',``-lns3.25-dsdv-debug'' ,'-lns3.25-dsr-debug','-lns3.25-flow-monitor-debug','-lns3.25-internet-apps-debug','-lns3.25-mesh-debug',' -lns3.25-wimax-debug','-lns3.25-nix-vector-routing-debug','-lns3.25-olsr-debug','-lns3.25-point-to-point-layout-调试”,“-lns3.25-sixlowpan-debug” , '-lns3.25-tap-bridge-debug', '-lns3.25-visualizer-debug', '-lns3.25-wave-debug', '-lns3.25-internet-debug', '-lns3.25-bridge-debug', '-lns3.25-point-to-point-debug', '-lns3.25-mpi-debug', '-lns3.25-traffic-control-debug', '-lns3.25-wifi-debug', '-lns3.25-buildings-debug', '-lns3.25-propagation-debug', '-lns3.25-uan-debug', '-lns3.25-mobility-debug', '-lns3.25-energy-debug', '-lns3.25-config-store-debug', '-lns3.25-csma-debug', '-lns3.25-fd-net-device-debug', '-lns3.25-virtual-net-device-debug', '-lns3.25-topology-read-debug', '-lns3.25-network-debug', '-lns3.25-stats-debug', '-lns3.25-core-debug', '-lrt', '-lgsl', '-lgslcblas', '-lm', '-lsqlite3', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo', '-lpango-1.0', '-lfontconfig', '-lgobject-2.0', '-lglib-2.0', '-lfreetype', '-lxml2'] ,'-lns3.25-tap-bridge-debug','-lns3.25-visualizer-debug','-lns3.25-wave-debug','-lns3.25-internet-debug','-lns3 .25-bridge-debug','-lns3.25-point-to-point-debug','-lns3.25-mpi-debug','-lns3.25-traffic-control-debug','-lns3 .25-wifi-debug','-lns3.25-buildings-debug','-lns3.25-propagation-debug','-lns3.25-uan-debug','-lns3.25-mobility-debug ','-lns3.25-energy-debug','-lns3.25-config-store-debug','-lns3.25-csma-debug','-lns3.25-fd-net-device-debug ','-lns3.25-虚拟网络设备调试','-lns3.25-拓扑读取调试','-lns3.25-网络调试','-lns3.25-stats调试','-lns3.25-core-debug','-lrt','-lgsl','-lgslcblas','-lm','-lsqlite3','-lgtk-x11-2.0','-lgdk -x11-2.0','-latk-1.0','-lgio-2.0','-lpangoft2-1.0','-lpangocairo-1.0','-lgdk_pixbuf-2.0','-lcairo','-lpango- 1.0”,“-lfontconfig”,“-lgobject-2.0”,“-lglib-2.0”,“-lfreetype”,“-lxml2”]

Try to use the following command 尝试使用以下命令

 ./waf --run scratch/6lowpan/example-sixlowpan

or place the example-sixlowpan.cc file in scratch folder. 或将example-sixlowpan.cc文件放在临时文件夹中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM