Openflow module + boost lib

1,443 views
Skip to first unread message

Thiago Druciaki Casagrande

unread,
Jun 4, 2014, 1:18:55 PM6/4/14
to ns-3-...@googlegroups.com
I'm trying to build NS3 with the openflow module enabled. 
Openflow module requires boost lib, which i've instaled via .deb package.

When I build NS (build.py), it shows:
Checking boost includes                                      : 1_53 
Checking boost libs                                          : not found 

I've also tryied to insert boost path at PATH and create an variable LIB_BOOST.

druciaki@gismonti:~/ns-allinone-3.17$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/include/boost/:/usr/lib/i386-linux-gnu/

(in the end it does not build NS3 with openflow module...)
...
Modules not built (see ns-3 tutorial for explanation):
brite                     click                     openflow                 
...

Any idea of what I'm doing wrong?

Tommaso Pecorella

unread,
Jun 4, 2014, 2:30:03 PM6/4/14
to ns-3-...@googlegroups.com
Hi,

make sure to install the -dev packages. E.g., "libboost-all-dev". Otherwise you'll have the shared libraries, but not the necessary includes. The result is that ns-3 will not detect the boost libraries.

Hope it fixes your issues,

T.

Thiago Druciaki Casagrande

unread,
Jun 5, 2014, 9:21:21 AM6/5/14
to ns-3-...@googlegroups.com
Thanks for the reply

Is there a preference for some specific version of libboost? I had already installed libboost-all-dev.

The wscript of the openflow module requires "system", "signal" and "filesystem" (from boost library). I've also tryied to pull them independently, but it seems they were all already installed with the "libboost-all-dev".

Isn't it necessary to add libboost path to $PATH? I've tryied it but I'm not sure about de lib path...
I'm not sure, where do the wscript get the environment configuration - like "
conf.env['LIB_BOOST']"



--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/UF2GT7iCBg4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.



--
Thiago Druciaki Casagrande

Tommaso Pecorella

unread,
Jun 5, 2014, 9:56:42 AM6/5/14
to ns-3-...@googlegroups.com
Hi,

boost is a collection of libraries, and it can be installed as a whole (all) or you can pick its sub-components one by one. If you did install the "all" one, then you have the complete one. It's bigger, but you don't have to worry about missing stuff.

About adding libboost to PATH... no, it shouldn't be necessary. It's a library, not an executable.
Plus, if it works, don't fix it.


Cheers,

T.

Thiago Druciaki Casagrande

unread,
Jun 9, 2014, 11:53:41 AM6/9/14
to ns-3-...@googlegroups.com
Got it!
It was a difference of paths on the installation.
Files of version 1.53 of libboost were at:

/usr/lib/i386-linux-gnu/

I've created link at "/usr/lib" for the required files ['signal', 'filesystem', 'system']

Openflow module is still not ok, but the boost dependencies are:
Checking boost includes                                                                          : 1_53 
Checking boost libs                                                                              : ok 
(i'll keep looking for what's going on)

Nwa Obi

unread,
Jul 28, 2014, 2:50:41 AM7/28/14
to ns-3-...@googlegroups.com
Hi Thiago,

I am having the same problem, have you been able to resolve the issue. If so, please could you tell me how.
Thank you.

Regards,Nwa

Thiago Druciaki Casagrande

unread,
Jul 28, 2014, 1:12:16 PM7/28/14
to ns-3-...@googlegroups.com
Hi Nwa,

try passing the "--boost-libs=<path>" parameter when building the NS.
Check where you got the boost libraries installed. In my case it was at "/usr/lib/i386-linux-gnu/"

The same may be done to the openflow path with "--with-openflow=<path>".
(mine was installed at ~/openflow/  - but you probably have to download it - http://archive.openflow.org/wp/previous-versions-archive/)

Hope it helps.
regards,
-- 
Thiago Druciaki Casagrande

Nwa Obi

unread,
Jul 28, 2014, 3:29:50 PM7/28/14
to ns-3-...@googlegroups.com
Hi Thiago,

Thanks for your reply. My boost library was installed in a different folder which I referenced and it took care care of the boost libs dependency but I am now having this result:

pybindgen missing => no python bindings
Checking boost includes                                                                          : 1_54 
Checking boost libs                                                                              : ok 
MPI Support                   : not enabled (option --enable-mpi not selected)
NS-3 OpenFlow Integration     : not enabled (Required boost libraries not found, missing: system, signals, filesystem)
SQlite stats data output      : enabled
Tap Bridge                    : enabled

I see those missing files in (system,signals and file system) in the location of the boost lib folder (/usr/lib/x86_64-linux-gnu) and even updated how it searches for the file in its wscript (i.e using libboost_ ). Have any idea why is is not seeing those files in that folder or is there something I am missing. Thanks

Nwa

Nwa Obi

unread,
Jul 28, 2014, 7:12:37 PM7/28/14
to ns-3-...@googlegroups.com
Update:
I have resolved the issue I had to make some updates in the BOOST_LIBS in the boost.py and updated the openflow folder by following the link you gave.
And its now working though I had to resolve some internal library errors in the make command, Just in case someone encounters the same problem I believe this thread will be very helpful. Thanks again.

Regards,
Nwa

Grace

unread,
Jul 11, 2016, 9:25:23 AM7/11/16
to ns-3-users
I am having this error : NS-3 OpenFlow Integration     : not enabled (OpenFlow not enabled (see option --with-openflow))
plz help

pdbarnes

unread,
Jul 12, 2016, 12:24:34 AM7/12/16
to ns-3-users
./waf --help will show you how to configure ns-3 to use OpenFlow.

On the other hand, if you don't need OpenFlow, you can ignore that status message.

Peter

Reply all
Reply to author
Forward
Message has been deleted
0 new messages