sns3 / sns3-satellite

Satellite module for ns-3 simulator
https://www.sns3.org
GNU General Public License v3.0
142 stars 58 forks source link

I have a problem building NS3 #33

Closed fengtao1998 closed 1 year ago

fengtao1998 commented 2 years ago

When I try to build NS3, it reports an error It seems that some files are missing. Can someone help me

a@ubuntu:~/bake/source/ns-3.29$ python3 waf
Waf: Entering directory `/home/a/bake/source/ns-3.29/build'
g++: error: contrib/satellite/model/../data/sgp4/constants-gen.cc: No such file or directory
g++: fatal error: no input files
compilation terminated.

/bin/sh: 1: ./contrib/satellite/model/../data/sgp4/cgen: not found

/bin/sh: 1: ./contrib/satellite/model/../data/sgp4/cgen: not found

Waf: Leaving directory `/home/a/bake/source/ns-3.29/build'
source not found: 'model/iers-data.cc' in bld(source=['model/geo-coordinate.cc', 'model/julian-date.cc', 'model/iers-data.cc', 'model/vector-extensions.cc', 'model/satellite-sgp4ext.cc', 'model/satellite-sgp4io.cc', 'model/satellite-sgp4unit.cc', 'model/satellite-address-tag.cc', 'model/satellite-antenna-gain-pattern.cc', 'model/satellite-antenna-gain-pattern-container.cc', 'model/satellite-arp-cache.cc', 'model/satellite-arq-buffer-context.cc', 'model/satellite-arq-header.cc', 'model/satellite-arq-sequence-number.cc', 'model/satellite-base-encapsulator.cc', 'model/satellite-base-fader.cc', 'model/satellite-base-fader-conf.cc', 'model/satellite-base-fading.cc', 'model/satellite-base-trace-container.cc', 'model/satellite-bbframe.cc', 'model/satellite-bbframe-conf.cc', 'model/satellite-bbframe-container.cc', 'model/satellite-beam-channel-pair.cc', 'model/satellite-beam-scheduler.cc', 'model/satellite-bstp-controller.cc', 'model/satellite-channel.cc', 'model/satellite-channel-estimation-error.cc', 'model/satellite-channel-estimation-error-container.cc', 'model/satellite-cno-estimator.cc', 'model/satellite-composite-sinr-output-trace-container.cc', 'model/satellite-constant-interference.cc', 'model/satellite-constant-position-mobility-model.cc', 'model/satellite-control-message.cc', 'model/satellite-crdsa-replica-tag.cc', 'model/satellite-dama-entry.cc', 'model/satellite-default-superframe-allocator.cc', 'model/satellite-encap-pdu-status-tag.cc', 'model/satellite-fading-external-input-trace.cc', 'model/satellite-fading-external-input-trace-container.cc', 'model/satellite-fading-input-trace.cc', 'model/satellite-fading-input-trace-container.cc', 'model/satellite-fading-output-trace-container.cc', 'model/satellite-fading-oscillator.cc', 'model/satellite-fwd-carrier-conf.cc', 'model/satellite-fwd-link-scheduler.cc', 'model/satellite-fwd-link-scheduler-default.cc', 'model/satellite-fwd-link-scheduler-time-slicing.cc', 'model/satellite-frame-allocator.cc', 'model/satellite-frame-conf.cc', 'model/satellite-free-space-loss.cc', 'model/satellite-generic-stream-encapsulator.cc', 'model/satellite-generic-stream-encapsulator-arq.cc', 'model/satellite-geo-feeder-phy.cc', 'model/satellite-geo-net-device.cc', 'model/satellite-geo-user-phy.cc', 'model/satellite-gse-header.cc', 'model/satellite-gw-llc.cc', 'model/satellite-gw-mac.cc', 'model/satellite-gw-phy.cc', 'model/satellite-id-mapper.cc', 'model/satellite-interference.cc', 'model/satellite-interference-input-trace-container.cc', 'model/satellite-interference-output-trace-container.cc', 'model/satellite-interference-elimination.cc', 'model/satellite-perfect-interference-elimination.cc', 'model/satellite-residual-interference-elimination.cc', 'model/satellite-link-results.cc', 'model/satellite-llc.cc', 'model/satellite-log.cc', 'model/satellite-loo-conf.cc', 'model/satellite-loo-model.cc', 'model/satellite-look-up-table.cc', 'model/satellite-lower-layer-service.cc', 'model/satellite-mac.cc', 'model/satellite-mac-tag.cc', 'model/satellite-markov-conf.cc', 'model/satellite-markov-container.cc', 'model/satellite-markov-model.cc', 'model/satellite-mobility-model.cc', 'model/satellite-mobility-observer.cc', 'model/satellite-sgp4-mobility-model.cc', 'model/satellite-mutual-information-table.cc', 'model/satellite-ncc.cc', 'model/satellite-net-device.cc', 'model/satellite-lorawan-net-device.cc', 'model/satellite-node-info.cc', 'model/satellite-on-off-application.cc', 'model/satellite-packet-classifier.cc', 'model/satellite-packet-trace.cc', 'model/satellite-per-fragment-interference.cc', 'model/satellite-per-packet-interference.cc', 'model/satellite-phy.cc', 'model/satellite-phy-rx.cc', 'model/satellite-phy-rx-carrier.cc', 'model/satellite-phy-rx-carrier-conf.cc', 'model/satellite-phy-rx-carrier-marsala.cc', 'model/satellite-phy-rx-carrier-per-frame.cc', 'model/satellite-phy-rx-carrier-per-window.cc', 'model/satellite-phy-rx-carrier-per-slot.cc', 'model/satellite-phy-rx-carrier-uplink.cc', 'model/satellite-phy-tx.cc', 'model/satellite-position-allocator.cc', 'model/satellite-position-input-trace-container.cc', 'model/satellite-propagation-delay-model.cc', 'model/satellite-queue.cc', 'model/satellite-random-access-allocation-channel.cc', 'model/satellite-random-access-container.cc', 'model/satellite-random-access-container-conf.cc', 'model/satellite-rayleigh-conf.cc', 'model/satellite-rayleigh-model.cc', 'model/satellite-request-manager.cc', 'model/satellite-return-link-encapsulator.cc', 'model/satellite-return-link-encapsulator-arq.cc', 'model/satellite-rle-header.cc', 'model/satellite-rtn-link-time.cc', 'model/satellite-rx-power-input-trace-container.cc', 'model/satellite-rx-power-output-trace-container.cc', 'model/satellite-rx-cno-input-trace-container.cc', 'model/satellite-scheduling-object.cc', 'model/satellite-signal-parameters.cc', 'model/satellite-simple-channel.cc', 'model/satellite-simple-net-device.cc', 'model/satellite-static-bstp.cc', 'model/satellite-superframe-allocator.cc', 'model/satellite-superframe-sequence.cc', 'model/satellite-tbtp-container.cc', 'model/satellite-time-tag.cc', 'model/satellite-traced-interference.cc', 'model/satellite-traced-mobility-model.cc', 'model/satellite-ut-handover-module.cc', 'model/satellite-ut-llc.cc', 'model/satellite-ut-mac.cc', 'model/satellite-ut-phy.cc', 'model/satellite-ut-mac-state.cc', 'model/satellite-ut-scheduler.cc', 'model/satellite-wave-form-conf.cc', 'model/satellite-lora-phy-tx.cc', 'model/satellite-lora-phy-rx.cc', 'model/lorawan-mac.cc', 'model/lorawan-mac-gateway.cc', 'model/lorawan-mac-end-device.cc', 'model/lorawan-mac-end-device-class-a.cc', 'model/lorawan-mac-header.cc', 'model/lorawan-mac-command.cc', 'model/lora-frame-header.cc', 'model/lora-logical-channel.cc', 'model/lora-logical-channel-helper.cc', 'model/lora-sub-band.cc', 'model/lora-tag.cc', 'model/lora-beam-tag.cc', 'model/lora-device-address.cc', 'model/lora-device-address-generator.cc', 'model/lora-gateway-status.cc', 'model/lora-end-device-status.cc', 'model/lora-network-server.cc', 'model/lora-network-status.cc', 'model/lora-network-controller.cc', 'model/lora-network-scheduler.cc', 'model/lora-network-controller-components.cc', 'model/lora-adr-component.cc', 'model/lora-forwarder.cc', 'model/lora-periodic-sender.cc', 'utils/satellite-env-variables.cc', 'utils/satellite-input-fstream-time-double-container.cc', 'utils/satellite-input-fstream-time-long-double-container.cc', 'utils/satellite-input-fstream-wrapper.cc', 'utils/satellite-output-fstream-double-container.cc', 'utils/satellite-output-fstream-long-double-container.cc', 'utils/satellite-output-fstream-string-container.cc', 'utils/satellite-output-fstream-wrapper.cc', 'helper/satellite-group-helper.cc', 'helper/satellite-beam-helper.cc', 'helper/satellite-beam-user-info.cc', 'helper/satellite-conf.cc', 'helper/satellite-lora-conf.cc', 'helper/satellite-geo-helper.cc', 'helper/satellite-gw-helper.cc', 'helper/satellite-helper.cc', 'helper/satellite-on-off-helper.cc', 'helper/satellite-user-helper.cc', 'helper/satellite-ut-helper.cc', 'helper/satellite-traffic-helper.cc', 'helper/satellite-cno-helper.cc', 'helper/simulation-helper.cc', 'helper/lora-network-server-helper.cc', 'helper/lora-forwarder-helper.cc', 'stats/satellite-frame-symbol-load-probe.cc', 'stats/satellite-frame-user-load-probe.cc', 'stats/satellite-phy-rx-carrier-packet-probe.cc', 'stats/satellite-sinr-probe.cc', 'stats/satellite-stats-helper.cc', 'stats/satellite-stats-antenna-gain-helper.cc', 'stats/satellite-stats-backlogged-request-helper.cc', 'stats/satellite-stats-beam-service-time-helper.cc', 'stats/satellite-stats-capacity-request-helper.cc', 'stats/satellite-stats-carrier-id-helper.cc', 'stats/satellite-stats-composite-sinr-helper.cc', 'stats/satellite-stats-delay-helper.cc', 'stats/satellite-stats-jitter-helper.cc', 'stats/satellite-stats-plt-helper.cc', 'stats/satellite-stats-frame-load-helper.cc', 'stats/satellite-stats-frame-type-usage-helper.cc', 'stats/satellite-stats-link-rx-power-helper.cc', 'stats/satellite-stats-link-sinr-helper.cc', 'stats/satellite-stats-marsala-correlation-helper.cc', 'stats/satellite-stats-packet-collision-helper.cc', 'stats/satellite-stats-packet-error-helper.cc', 'stats/satellite-stats-queue-helper.cc', 'stats/satellite-stats-rbdc-request-helper.cc', 'stats/satellite-stats-resources-granted-helper.cc', 'stats/satellite-stats-signalling-load-helper.cc', 'stats/satellite-stats-throughput-helper.cc', 'stats/satellite-stats-waveform-usage-helper.cc', 'stats/satellite-stats-window-load-helper.cc', 'stats/satellite-stats-helper-container.cc', 'stats/satellite-stats-fwd-link-scheduler-symbol-rate-helper.cc'], target='../../lib/ns3-dev-satellite-debug', meths=['_add_test_code', 'apply_bundle', 'process_rule', 'process_source', 'apply_link', 'apply_implib', 'install_boost', 'process_use', 'collect_compilation_db_tasks', 'propagate_uselib_vars', 'apply_incpaths', 'apply_vnum', 'set_macosx_deployment_target'], features=['cxx', 'cxxshlib', 'ns3module'], path=/home/a/bake/source/ns-3.29/contrib/satellite, idx=1, tg_idx_count=371, is_static=False, vnum=None, module_deps=['internet', 'propagation', 'antenna', 'csma', 'stats', 'traffic', 'flow-monitor', 'applications'], install_path='${LIBDIR}', _name='ns3-satellite', dependencies=['internet', 'propagation', 'antenna', 'csma', 'stats', 'traffic', 'flow-monitor', 'applications'], uselib='', use=['ns3-internet', 'ns3-propagation', 'ns3-antenna', 'ns3-csma', 'ns3-stats', 'ns3-traffic', 'ns3-flow-monitor', 'ns3-applications'], test=False, is_ns3_module=True, ns3_dir_location='contrib/satellite', pcfilegen=bld(source=[], target='', meths=[], features='ns3pcfile', path=/home/a/bake/source/ns-3.29/contrib/satellite, idx=2, tg_idx_count=372, module='ns3-satellite', _name='') in /home/a/bake/source/ns-3.29/contrib/satellite, posted=True) in /home/a/bake/source/ns-3.29/contrib/satellite
fengtao1998 commented 2 years ago

@watanawa,can you help me?

watanawa commented 2 years ago

Hi,

I had the same issue - apparently some files are missing. Just executive the commands in the section post compilation to fetch the data folder and the missing files to build sns3.

Please also have a look at my pull request - apparently some includes are missing in the Sns3 files causing errors when you try to build.

fengtao1998 commented 2 years ago

Thanks a lot for helping me