signetlabdei / lorawan

An ns-3 module for simulation of LoRaWAN networks
GNU General Public License v2.0
182 stars 130 forks source link

bash: ./waf: No such file or directory #129

Closed Junaid-Qadir-UniGe closed 10 months ago

Junaid-Qadir-UniGe commented 1 year ago

Hi,

I am compiling this repository, however, it gives me the following error given below. Can someone please help me out? bash: ./waf: No such file or directory

image

sanjay-charran commented 1 year ago

The "waf" script was replaced by the "ns3" one in the newer versions of ns3 I believe. This command ought to work for configuring for your version: ./ns3 configure --enable-tests --enable-examples

However, this module was designed for ns3.29 according to the "NS3-VERSION" file in the repository and I'm not certain if it'll work, so I would recommend you try to install ns3.29 if compiling the repository on the version you're running fails.

Junaid-Qadir-UniGe commented 1 year ago

@sanjay-charran Thank you so much, you are right. I then tried with ./ns3 configure --enable-tests --enable-examples and compiled successfully. Thanks again

usamamustafa36 commented 1 year ago

The test was passed but when i run the example this error comes.. i am using ./ns3 instead of waf script Screenshot from 2023-09-01 10-17-32

sanjay-charran commented 1 year ago

@usamamustafa36 I believe it should be ./ns3 run [example-name]

https://www.nsnam.org/docs/tutorial/html/quick-start.html

pagmatt commented 10 months ago

Updated the README to reflect the build system changes.