Cannot find header files when building

32 views
Skip to first unread message

arthur Silva Matias

unread,
Feb 12, 2023, 8:45:25 AM2/12/23
to ofswitch13-users
Hello everyone,
When I try to build a copy of ofswitch13-external-controller.cc in examples
the following appears:error.png

Did i do something wrong when installing ofswitch13?
Thanks for your time.

Luciano Jerez Chaves

unread,
Feb 13, 2023, 6:44:47 AM2/13/23
to ofswitch...@googlegroups.com
Hi all,

I'm aware of this issue. It's related to the way cmake handles the include dirs to the bofuss external library. I'm currently working on a fix to it.
In the meantime, you can do the following to have OFSwitch13 working (assuming you are using ns-3.37 and OFSwitch13 5.1.0):

- Clone the bofuss library (git clone https://github.com/ljerezchaves/ofsoftswitch13.git) repository anywhere on your computer, as long as it is outside the ns-3 folder.
- Checkout the library code to v5.1.x tag (git checkout v5.1.x), configure and compile it (./boot.sh && ./configure --enable-ns3-lib && make)
- Edit the CMakeList.txt on the OFSwitch13 directory, commenting out the lines 135 -- 139 and 150.
- Configure the ns-3 simulator, setting the NS3_OFSWITCH13_BOFUSS_PATH to the path where you've cloned the boffus library (./ns3 configure -- -DNS3_OFSWITCH13_BOFUSS_PATH=<path-to-bofuss>)
- Compile the simulator again (./ns3 build) and I hope everything works out.

Cheers,

[]'s
--
Luciano Jerez Chaves


--
You received this message because you are subscribed to the Google Groups "ofswitch13-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofswitch13-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ofswitch13-users/25845e60-cbc1-48cb-800b-de38b28f8d99n%40googlegroups.com.

Luciano Jerez Chaves

unread,
Apr 2, 2023, 10:50:23 AM4/2/23
to ofswitch13-users
Hi,

With the release of new OFSwitch13 versions, these issues are now fixed (hope so!)
Please, check OFSwitch13 release 5.2.1 (https://github.com/ljerezchaves/ofswitch13/releases/tag/5.2.0) for ns-3.36 and ns-3.37, or OFSwitch13 release 5.2.1 (https://github.com/ljerezchaves/ofswitch13/releases/tag/5.2.1) for ns-3.38.
The documentation (Section 2.1) instructs on how to build the module, as external library dependency are handle automatically now.

Cheers,
Luciano.
Reply all
Reply to author
Forward
0 new messages