ns3-ai module

316 views
Skip to first unread message

hou yahiya

unread,
Feb 7, 2023, 2:32:30 PM2/7/23
to ns-3-users
Hello everyone, i hope you're doing well.
Here are the instructions which i followed to install ns3-ai module:
********************************************************************************
$ cd /ns-allinone-3.37/ns-3.37/contrib/
Rebuild ns-3:
$ ./ns3 configure
$ ./ns3

Add Python interface Install
$ cd /ns-allinone-3.37/ns-3.37/contrib/ns3-ai/py_interface pip3 install . --user
********************************************************************************
However, during the rebuild process, the first thing i noticed that ns3-ai module is among the modules that can't be built.secondly, when the process finished, it returns the following  error:
********************************************************************************
/ns-allinone-3.37/ns-3.37/scratch/a_plus_b/sim.cc:2:10: fatal error: ns3/ns3-ai-module.h: No such file or directory
    2 | #include "ns3/ns3-ai-module.h"
********************************************************************************
can you help me to fix that?
Cordially.

Tommaso Pecorella

unread,
Feb 7, 2023, 3:37:32 PM2/7/23
to ns-3-users
I'd strongly suggest to check our AppStore: https://apps.nsnam.org/app/ns3-ai/

The ns-3-ai model has been made to work with 3.35, not 3.37. The problem in this case is that the model uses waf, and ns-3 did migrate to cmake. It should be fairly easy to convert the wscript to a cmake syntax (check the ns-3.37 documentation).

You can also contact one of the authors (I'd suggest haoyin_AT_uw.edu), perhaps they have an updated repository.



drajesh

unread,
Feb 19, 2023, 12:02:48 PM2/19/23
to ns-3-users
Hi, was there any resolution to this issue? It seems ns3-ai-module uses only waf and doesn't work with ns3 3.37. Is there any way to convert the wscript to cmake or where I can find the wscript? Thanks,
Rajesh

Tom Henderson

unread,
Feb 19, 2023, 12:10:23 PM2/19/23
to ns-3-...@googlegroups.com
I let the module maintainers know about this, but in the meantime, you
could try to make the conversion yourself. Gabriel documented this
thoroughly here:

https://www.nsnam.org/docs/manual/html/working-with-cmake.html#migrating-a-waf-module-to-cmake

Rajesh

unread,
Feb 19, 2023, 12:55:44 PM2/19/23
to ns-3-...@googlegroups.com
Hi, I followed the instruction for migrating the waf to CMakeLists from the link below. The ns3-ai module I am trying to convert does not depend on other external modules other than the 'core'. But when I try to configure ns3 and then ns3 build, I get an error: #include ns3/ns3-ai-module.h No such file or directory error. Has anyone converted the script before? Thanks,
Rajesh

--
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+unsub...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/bcab4ea8-e171-c064-4ae3-f3f76b03f859%40tomh.org.

Reply all
Reply to author
Forward
0 new messages