Error when running build.py

1,722 views
Skip to first unread message

Hongyi Yao

unread,
Jul 16, 2012, 6:12:05 AM7/16/12
to ns-3-...@googlegroups.com
Hi everyone, I'm a new one to ns3 and today I try to install it in cygwin.
But I found an error that no one has reported before. So could you please give me a hand and show me what's wrong?
Here is the error message when running build.py.
 
# Skip NetAnim (platform not supported)
# Build NS-3
Entering directory `./ns-3-dev'
Note: configuring ns-3 without pybindgen
Note: configuring ns-3 without NSC
 =>  /usr/bin/python waf configure clean
---- Summary of optional NS-3 features:
Python Bindings               : not enabled (unsupported platform 'cygwin')
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           : not enabled (librt is not available)
Emulated Net Device           : not enabled (<netpacket/packet.h> include not detected)
Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))
MPI Support                   : not enabled (option --enable-mpi not selected)
NS-3 OpenFlow Integration     : not enabled (Required boost libraries not found)
SQlite stats data output      : enabled
Tap Bridge                    : not enabled (<linux/if_tun.h> include not detected)
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                : not enabled (defaults to disabled)
GNU Scientific Library (GSL)  : enabled
Modules built:
antenna                   aodv                      applications            
bridge                    buildings                 config-store            
core                      csma                      csma-layout             
dsdv                      dsr                       energy                  
flow-monitor              internet                  lte                     
mesh                      mobility                  mpi                     
netanim (no Python)       network                   nix-vector-routing      
olsr                      point-to-point            point-to-point-layout   
propagation               spectrum                  stats                   
test (no Python)          tools                     topology-read           
uan                       virtual-net-device        wifi                    
wimax                   
Modules not built:
click                     emu                       openflow                
tap-bridge                visualizer              
 =>  /usr/bin/python waf build
...
.....................................(lots of message).................................
...
[ 700/1328] cxx: src/buildings/model/building.cc -> build/src/buildings/model/bu
ilding.cc.1.o
[ 701/1328] cxx: src/wifi/model/ap-wifi-mac.cc -> build/src/wifi/model/ap-wifi-m
ac.cc.1.o
[ 702/1328] cxx: src/core/model/integer.cc -> build/src/core/model/integer.cc.1.
o
[ 703/1328] cxx: src/wifi/model/aarf-wifi-manager.cc -> build/src/wifi/model/aar
f-wifi-manager.cc.1.o
cc1plus: warnings being treated as errors
../src/buildings/model/building.cc: In member function 'uint16_t ns3::Building::
GetRoomX(ns3::Vector) const':
../src/buildings/model/building.cc:238: warning: converting to 'uint16_t' from '
double'
../src/buildings/model/building.cc: In member function 'uint16_t ns3::Building::
GetRoomY(ns3::Vector) const':
../src/buildings/model/building.cc:259: warning: converting to 'uint16_t' from '
double'
../src/buildings/model/building.cc: In member function 'uint16_t ns3::Building::
GetFloor(ns3::Vector) const':
../src/buildings/model/building.cc:280: warning: converting to 'uint16_t' from '
double'
Waf: Leaving directory `/cygdrive/c/Users/v-honya/repos/ns-3-allinone/ns-3-dev/b
uild'
Build failed
 -> task in 'ns3-buildings' failed (exit status 1):
        {task 2126146540: cxx building.cc -> building.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-fstrict-aliasing',
 '-Wstrict-aliasing', '-Ibuild', '-I.', '-I/usr/include/libxml2', '-DNS3_ASSERT_
ENABLE', '-DNS3_LOG_ENABLE', '-DSQLITE3=1', '-DENABLE_GSL', '../src/buildings/mo
del/building.cc', '-c', '-o', 'src/buildings/model/building.cc.1.o']
Traceback (most recent call last):
  File "./build.py", line 214, in <module>
    sys.exit(main(sys.argv))
  File "./build.py", line 205, in main
    build_ns3(config, build_examples, build_tests, args, build_options)
  File "./build.py", line 98, in build_ns3
    run_command([sys.executable, "waf", "build"] + build_options)
  File "/cygdrive/c/Users/v-honya/repos/ns-3-allinone/util.py", line 24, in run_
command
    raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python', 'waf', 'build'] exited with code
1
 
Help, this error almost drove me mad...

Hongyi Yao

unread,
Jul 19, 2012, 8:55:21 PM7/19/12
to ns-3-...@googlegroups.com
Well, I finally make it out. The reason is that I got a old version gcc. To install ns3-14, your gcc version should be above 4.5. Sign...

2012/7/16 Hongyi Yao <laoyao...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/iE4HBXFxt0kJ.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.



--
Sincerely
---------------------------------
Hongyi Yao(姚宏毅)

Konstantinos

unread,
Jul 20, 2012, 4:52:18 AM7/20/12
to ns-3-...@googlegroups.com


On Friday, 20 July 2012 01:55:21 UTC+1, Hongyi Yao wrote:
Well, I finally make it out. The reason is that I got a old version gcc. To install ns3-14, your gcc version should be above 4.5. Sign...


ns-3 is primarily developed on GNU/Linux platforms, and the minimal requirements to run basic simulations are a gcc installation of gcc-3.4/g++-3.4 or greater, and python 2.4 or greater.
 
2012/7/16 Hongyi Yao <laoyao...@gmail.com>
To unsubscribe from this group, send email to ns-3-users+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.

revathy seshadri

unread,
Jan 25, 2013, 12:40:50 PM1/25/13
to ns-3-...@googlegroups.com

hi.. 
i am very new to ns3.. i installed it in my windows 7 system using cygwin but my netanim module doesnt seem to be working.. got the exact same error as you had. did getting gcc 4.5 correct the error?

John Abraham

unread,
Jan 25, 2013, 12:50:04 PM1/25/13
to ns-3-...@googlegroups.com
you can independently download NetAnim via "hg clone
http://code.nsnam.org/netanim". To build NetAnim on windows you will
need to use the native QtCreator over native windows compiler. in
other words a pretty long process.
See a thread https://groups.google.com/forum/?fromgroups=#!topic/ns-3-users/j3eg1cFx8Qo

In my opinion, to get the best out of ns-3, use a Linux VM.
> --
> 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 post to this group, send email to ns-3-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/ns-3-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

revathy seshadri

unread,
Jan 25, 2013, 1:09:06 PM1/25/13
to ns-3-...@googlegroups.com
okay i will take your suggestion and get a Linux VM, but in the meantime could you walk me through the steps needed to install NetAnim in Windows. Right now downloading the QtCreator. what are the steps to be followed next?
Reply all
Reply to author
Forward
0 new messages