satellite module causing error while building ns3.37

289 views
Skip to first unread message

Azra Batool

unread,
Jul 21, 2023, 9:25:40 AM7/21/23
to ns-3-users
Hello
I am trying to use sns3 simulator, I changed the wscript file to CMakeLists.txt in satellite folder and this helps the simulator to configure this module but when I try to build the module, it gives the error as shown. 
please help me resolve the issue, for reference here is the screenshotScreenshot from 2023-07-21 15-22-52.png

Gabriel Ferreira

unread,
Jul 21, 2023, 10:24:09 AM7/21/23
to ns-3-users
One of the satellite module headers is not in the headers list. 
In this case, it didn't get copied to the output directory and the build failed. 
Add it to the list and reconfigure the project. 

Azra Batool

unread,
Jul 21, 2023, 5:23:37 PM7/21/23
to ns-3-...@googlegroups.com
Thank you for your response
when I am using all the modules in CMakeLists.txt it gives me the following eros and this issue is in ./ns3 build only while as hello-simulator or run first is running successfully. 
Please help me to solve the problem
Screenshot from 2023-07-21 23-20-36.png
Screenshot from 2023-07-21 23-20-25.pngScreenshot from 2023-07-21 23-20-17.pngScreenshot from 2023-07-21 23-19-58.png

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/f2babf12-fc97-4456-80b1-020122e6ae79n%40googlegroups.com.

Gabriel Ferreira

unread,
Jul 21, 2023, 6:52:43 PM7/21/23
to ns-3-users
Seems like you need to fix a certain callback in satellite-mac.cc

Aidan Hansen

unread,
Jul 21, 2023, 9:13:14 PM7/21/23
to ns-3-users
i have tried this successfully. but i haven't come accross the problem that you have.i give you my advice.
in fact ,it is also work in ns3.35, but i have‘t try this in more advanced version(eg,ns3.37).
and, you first need to  try using ./waf , according to me ,cmake is somewhat different from waf.
when you sucess,in version ns3.29,using waf,and test is right.
then you try this in cmake or in later ns version . that will help you locked the problem whether it is in your sns3 code or some setting in your cmake etc.
 well , i also do some reserach in satellite , now, i am trying ns3-leo module, are you interisted in mega leo constellation ?
Message has been deleted

Aidan Hansen

unread,
Jul 21, 2023, 9:17:22 PM7/21/23
to ns-3-users

i forget , sns3 module has some problems itself,but it is simple to fix it in ns2.29version and using waf.you should first try this in order to check whether th module is right,so using ns2.29 and waf is necessary.
在2023年7月21日星期五 UTC+8 21:25:40<Azra Batool> 写道:
Message has been deleted

ANASS HLALI

unread,
Jul 23, 2023, 11:05:13 AM7/23/23
to ns-3-...@googlegroups.com
I want to verify my Facebook account with a blue badge. Is there any help?

On Sun, 23 Jul 2023, 15:01 Azra Batool, <sayed...@gmail.com> wrote:
Thankyou for your reply! I tried to install it using NS3.29 but it does not take the waf command. here is a screenshot, what should I do
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

Azra Batool

unread,
Jul 23, 2023, 12:41:10 PM7/23/23
to ns-3-users
@Aidan, Thank you so much!! 
This worked for me

On Saturday, 22 July 2023 at 03:17:22 UTC+2 Aidan Hansen wrote:

Azra Batool

unread,
Jul 23, 2023, 1:06:31 PM7/23/23
to ns-3-users
just a small question, how to make it run in ns3.39 ?

Aidan Hansen

unread,
Aug 8, 2023, 8:28:46 PM8/8/23
to ns-3-users
in ns3.39,waf is replaced by cmake. i have planed to port sns3 to ns3.39.it isn't a difficult thing. but i haven‘t done this. i give you my plan.
Before ns3.36 (if I remember correctly), for any .cc or .h files you wrote in ns3, you had to specify them in the wscript file (you can think of this as a configuration file), so that ns3 could compile and run your files. However, in ns3.39, wscript has been replaced by cmake. The simplest approach is to convert the aforementioned configuration file to the cmake format. Of course, you might encounter more complex issues. After all, since ns3.39 has been upgraded, some of the modules from ns2.29 have undoubtedly been modified. Then, the question arises: has sns3 used any of these modified modules? (Sns3 uses ns2.9's modules, but when porting to ns3.39, is there any need to modify the original ns2.9 code used by sns3?). That would depend on your specific operations. My suggestion is to first convert the configuration file directly to cmake (following the official guidelines. The official documentation does explain how to transition from waf to cmake, which should be mentioned in the manual of ns3.36 or later versions). After that, check if the results are correct. If they're not, you should then investigate whether some of the modules from ns2.9 need manual updating to ns3.39. Here, I recommend you do it file by file. That is, when porting the sns3 module code from ns2.9, add a file, compile it, then add another file, compile again. This step-by-step approach is generally more stable.
It's a bit tedious, but not too difficult.
-----
by the way,i am now doing project with hypatia and ns3-leo. if your project is about leo,i recommand you to try these module.

Raouane Dehimi

unread,
Apr 24, 2024, 6:34:10 AM4/24/24
to ns-3-users
How you use ns-leo in later version i m also working on project about leo 
Reply all
Reply to author
Forward
0 new messages