[ndnSIM] visualizer cannot be used

Aaron aaronishere at qq.com
Mon Nov 30 04:12:19 PST 2015


Hi, all

The ndnSIM 2.1 is compiled successfully and can run examples without "--vis". However, if I type  "--vis", error is occurred. Is it related to visualizer not built? How to fix it? 
The Ubuntu 14.04 is used.  

Modules not built (see ns-3 tutorial for explanation):
brite                     click                     openflow                 
visualizer         

root at Aaron:/home/NDNSIM/ndnSIM-2.1/ns-3# ./waf --run=ndn-simple 
Waf: Entering directory `/home/NDNSIM/ndnSIM-2.1/ns-3/build'
Waf: Leaving directory `/home/NDNSIM/ndnSIM-2.1/ns-3/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (1.049s)

root at Aaron:/home/NDNSIM/ndnSIM-2.1/ns-3# ./waf --run=ndn-simple --vis
Waf: Entering directory `/home/NDNSIM/ndnSIM-2.1/ns-3/build'
Waf: Leaving directory `/home/NDNSIM/ndnSIM-2.1/ns-3/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (1.044s)
assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=755
terminate called without an active exception
Command ['/home/NDNSIM/ndnSIM-2.1/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").



Setting top to                           : /home/NDNSIM/ndnSIM-2.1/ns-3 
Setting out to                           : /home/NDNSIM/ndnSIM-2.1/ns-3/build 
Checking for 'gcc' (C compiler)          : /usr/bin/gcc 
Checking for cc version                  : 4.9.1 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking supported compiler CXXFLAGS     : -std=c++0x -std=c++11 
Checking supported optimizations CXXFLAGS : -O0 
Checking supported debug CXXFLAGS         : -ggdb -g3 
Checking supported warnings CXXFLAGS      : -Wall -Wno-error=deprecated-declarations -fstrict-aliasing -Wstrict-aliasing 
Checking for compilation flag -Wl,--soname=foo... support : ok 
Checking for program 'python'                             : /usr/bin/python 
Checking for python version                               : (2, 7, 9, 'final', 0) 
python-config                                             : /usr/bin/python-config 
Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes 
Getting pyembed flags from python-config                           : yes 
Asking python-config for pyext '--cflags --libs --ldflags' flags   : yes 
Getting pyext flags from python-config                             : yes 
Checking for compilation flag -fvisibility=hidden... support       : ok 
Checking for compilation flag -Wno-array-bounds... support         : ok 
Checking for pybindgen location                                    : ../pybindgen (guessed) 
Checking for python module 'pybindgen'                             : ok 
Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    from setuptools import setup
ImportError: No module named setuptools
Checking for pybindgen version                                     :  
pybindgen (found ''), (need '0.17.0.post45+ng4806e4f')
Checking boost includes                                            : 1_55 
Checking boost libs                                                : ok 
Checking for boost linkage                                         : ok 
Checking for click location                                        : not found 
Checking for program 'pkg-config'                                  : /usr/bin/pkg-config 
Checking for 'gtk+-2.0' >= 2.12                                    : not found 
Checking for 'libxml-2.0' >= 2.7                                   : yes 
Checking for type uint128_t                                        : not found 
Checking for type __uint128_t                                      : yes 
Checking high precision implementation                             : 128-bit integer (default) 
Checking for header stdint.h                                       : yes 
Checking for header inttypes.h                                     : yes 
Checking for header sys/inttypes.h                                 : not found 
Checking for header sys/types.h                                    : yes 
Checking for header sys/stat.h                                     : yes 
Checking for header dirent.h                                       : yes 
Checking for header stdlib.h                                       : yes 
Checking for header signal.h                                       : yes 
Checking for header pthread.h                                      : yes 
Checking for header stdint.h                                       : yes 
Checking for header inttypes.h                                     : yes 
Checking for header sys/inttypes.h                                 : not found 
Checking for library rt                                            : yes 
Checking for header sys/ioctl.h                                    : yes 
Checking for header net/if.h                                       : yes 
Checking for header net/ethernet.h                                 : yes 
Checking for header linux/if_tun.h                                 : yes 
Checking for header netpacket/packet.h                             : yes 
Checking for NSC location                                          : not found 
Checking for program 'doxygen'                                     : not found 
Checking for program 'tar'                                         : /bin/tar 
Checking for program 'sphinx-build'                                : not found 
Checking for std::is_default_constructible                         : yes 
Checking for std::is_nothrow_move_constructible                    : yes 
Checking for std::is_nothrow_move_assignable                       : yes 
Checking for friend typename-specifier                             : yes 
Checking for override and final specifiers                         : yes 
Checking for std::vector::insert with const_iterators              : yes 
Checking for library pthread                                       : yes 
Checking for 'sqlite3'                                             : yes 
Checking Crypto++ lib                                              : 561 
Checking if CryptoPP library works                                 : yes 
Checking for OpenFlow location                                     : not found 
Checking for 'sqlite3'                                             : yes 
Checking for header linux/if_tun.h                                 : yes 
Checking for program 'sudo'                                        : /usr/bin/sudo 
Checking for program 'valgrind'                                    : not found 
Checking for 'gsl'                                                 : not found 
Checking for program 'doxygen'                                     : not found 
---- Summary of optional NS-3 features:
Build profile                 : debug
Build directory               : 
Python Bindings               : not enabled (PyBindGen version not correct and newer version could not be retrieved)
BRITE Integration             : not enabled (BRITE not enabled (see option --with-brite))
NS-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
GtkConfigStore                : not enabled (library 'gtk+-2.0 >= 2.12' not found)
XmlIo                         : enabled
Threading Primitives          : enabled
Real Time Simulator           : enabled
File descriptor NetDevice     : enabled
Tap FdNetDevice               : enabled
Emulation FdNetDevice         : enabled
PlanetLab FdNetDevice         : not enabled (PlanetLab operating system not detected (see option --force-planetlab))
Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))
MPI Support                   : not enabled (option --enable-mpi not selected)
ndnSIM                        : enabled
NS-3 OpenFlow Integration     : not enabled (OpenFlow not enabled (see option --with-openflow))
SQlite stats data output      : enabled
Tap Bridge                    : enabled
PyViz visualizer              : not enabled (Python Bindings are needed but not enabled)
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
Build tests                   : not enabled (defaults to disabled)
Build examples                : enabled
GNU Scientific Library (GSL)  : not enabled (GSL not found)


Thanks,

Regards,

Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20151130/cace8ad1/attachment.html>


More information about the ndnSIM mailing list