ns-3 build finishing successfully but program not running

236 views
Skip to first unread message

Hamid

unread,
Mar 1, 2022, 6:35:13 AM3/1/22
to ns-3-users

Hi, When I am running the command

./waf --run mmwave-simple-epc

Build is finishing successfully but no output of the program showing.

I am using Ubuntu16 and ns-3.33.

There is a screenshot below.

Can anyone please help?

Thank you

Capture2.PNG

Sudeep Manohar

unread,
Mar 3, 2022, 9:15:00 AM3/3/22
to ns-3-users
Dear Hamid

The program is not giving any output because the log component is not enabled by default in that program. You can also enable animation and check the output in NetAnim.

Aboli Katkar

unread,
Mar 3, 2022, 11:04:19 PM3/3/22
to ns-3-users
I am trying to run my code for UAV to BS connectivity
But this error shows up


cratch/UAV1.cc:54:10: fatal error: ns3/psc-module.h: No such file or directory
   54 | #include <ns3/psc-module.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.


 ['/usr/bin/g++', '-Wall', '-std=c++17', '-pthread', '-I.', '-I/usr/include/libxml2', '-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SEMAPHORE_H=1', '-DHAVE_IF_TUN_H=1',


Please help
Thanks

Tom Henderson

unread,
Mar 3, 2022, 11:27:50 PM3/3/22
to ns-3-...@googlegroups.com
On 3/3/22 20:04, Aboli Katkar wrote:
> I am trying to run my code for UAV to BS connectivity
> But this error shows up
>
>
> cratch/UAV1.cc:54:10: fatal error: ns3/psc-module.h: No such file or
> directory
>    54 | #include <ns3/psc-module.h>
>       |          ^~~~~~~~~~~~~~~~~~
> compilation terminated.
>
>
>  ['/usr/bin/g++', '-Wall', '-std=c++17', '-pthread', '-I.',
> '-I/usr/include/libxml2', '-DNS3_BUILD_PROFILE_DEBUG',
> '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1',
> '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1',
> '-DHAVE_SEMAPHORE_H=1', '-DHAVE_IF_TUN_H=1',
>
>
> Please help
> Thanks

This is a sign that your program depends on the public safety version of
ns-3 (which is a separate fork of ns-3), but you may be compiling it on
a version of ns-3 that doesn't have the psc module.

https://github.com/usnistgov/psc-ns3
Message has been deleted

Aboli Katkar

unread,
Mar 4, 2022, 1:25:25 AM3/4/22
to ns-3-users
I worked on the psc-module

Now I am getting error as :

fatal error: ns3/simulation-callback.h: No such file or directory

#include <ns3/simulation-callback.h>


'/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++17', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-I.', '-I/usr/include', '-I/usr/include/libxml2', '-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SEMAPHORE_H=1', '-DHAVE_IF_TUN_H=1', '../scratch/UAV11.cc', '-c'.


Thanks
Aboli

On Thursday, March 3, 2022 at 8:40:43 PM UTC-8 Aboli Katkar wrote:
I downloaded this psc-ns3 in Ubuntu, but I don't understand how to add that to my existing terminal. I am new to this. Please explain

Hamid

unread,
Mar 4, 2022, 4:07:07 AM3/4/22
to ns-3-users
Sudeep Manohar thanks a lot.@
I have another problem in the ns3. I can't run the mmwave module examples.  
Thanks,
Hamid
Sudeep Manohar در تاریخ پنجشنبه ۳ مارس ۲۰۲۲ ساعت ۱۷:۴۵:۰۰ (UTC+3:30) نوشت:
11.PNG

Tom Henderson

unread,
Mar 4, 2022, 9:55:44 AM3/4/22
to ns-3-...@googlegroups.com
On 3/3/22 20:40, Aboli Katkar wrote:
> I downloaded this psc-ns3 in Ubuntu, but I don't understand how to add
> that to my existing terminal. I am new to this. Please explain

You cannot add psc to an existing ns-3 distribution. It is a full
replacement for the main ns-3 (because it edits and extends the LTE module).

So, if you want to use the PSC features, you need to download psc-ns3
and compile that one and put your program into the scratch folder there.

- Tom

Aboli Katkar

unread,
Mar 4, 2022, 7:42:38 PM3/4/22
to ns-3-users
Alright. I hope this works. Thank you so much.

I have another question:
I want to create a simulation to connect the drone with a satellite hub. I am aware that I should use SNS3 for that which requires installation of ns-3.29. But i am unable to code for it. Can you help me with that?


Thank you in advance.
Aboli

Aboli Katkar

unread,
Mar 5, 2022, 7:36:28 PM3/5/22
to ns-3-users
Hi,
I am still having the error of fatal error: #include ns3/simulation-callback.h not found.
I downloaded the psc module but no luck with that.

Please help

Aboli Katkar

unread,
Mar 5, 2022, 11:07:02 PM3/5/22
to ns-3-users
fatal error: ns3/three-gpp-antenna-array-model.h: No such file or directory
   56 | #include <ns3/three-gpp-antenna-array-model.h>

Help me with this
Reply all
Reply to author
Forward
0 new messages