INSTALL.WIN32
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:4k
源码类别:

通讯编程

开发平台:

Visual C++

  1. Neither ns-2 nor nam-1 is developed on (nor for) the win32
  2. platform. We can only guarantee that they compile on windows, but not
  3. their correct functioning.  If you have anything to contribute in this
  4. respect, we would like to hear from you.
  5. Before you build, notice that you can get nam and ns binaries for
  6. windows at http://www.isi.edu/nsnam/dist/binary/. If you only want to
  7. do tcl scripting in ns, they were probably what you want.
  8. Procedures to compile on windows. For more information, whose details
  9. about ns might be obsolete but others apply, see
  10. http://www.isi.edu/nsnam/ns/ns-win32-build.html
  11. - Make sure your msvc works (and your environment variables are setup
  12.   correctly)
  13. - Get Cygwin and perl
  14. - IMPORTANT: otcl/tclcl/ns can be built and work with supplied tcl/tk
  15.   8.3.2, but nam will not (it builds, but does not run). To solve this
  16.   problem one has to use a hacked tcl/tk 8.0p2 that supports static
  17.   lib instead of DLLs. See the following discussion in nam for
  18.   detail. For this reason, there is a switch in otcl/makefile.vc and
  19.   conf/makefile.win in tclcl/ns/nam that controls using static build
  20.   or DLLs. It is a macro STATIC_LIB, which is turned on by
  21.   default. You must download the hacked tcl/tk 8.0p2 to compile the
  22.   default ns-allinone on windows. Alternatively, if you do not use nam
  23.   at all, comment that macro and you'll be able to compile with tcl/tk
  24.   8.3.2
  25.   NOTE: none of the indep-utils/ are tested (nor known to be compiled)
  26.   on windows. If you did, please submit a patch/report to ns-users
  27.   mailing list (ns-users@isi.edu). Thank you.
  28. - After compilation, you should do (1) copy the DLLs (if you are using
  29.   tcl/tk 8.3.2) to one of yours paths (you can see it in the system
  30.   applet from your control panel, or autoexec.bat if you are using
  31.   win98/95, or you can open a tcsh (dos prompt) and do echo $PATH
  32.   (%PATH%)); (2) copy the tcl library files (~tcl/library) to one of
  33.   the default paths (somehow setenv TCL_LIBRARY did not work for me on
  34.   windows, but you can certainly try). If you don't know the default
  35.   paths, run ns and you'll see it in its complaints.
  36.   IMPORTANT: you should avoid both these two steps if you are using
  37.   the hacked tcl/tk 8.0p2.
  38. - Tcl8.3.2
  39.   - go into win, do nmake -f makefile.vc
  40.   - result binaries/libraries should be in win/Release
  41.   - you can also import makefile.vc into you ide and go from there
  42. - Tk8.3.2
  43.   - pretty much the same as tcl8.3.2
  44. - otcl
  45.   - correct the paths to your vc, tcl, and tk in makefile.vc, then do 
  46.     nmake -f makefile.vc
  47. - tclcl
  48.   - correct the paths to your vc, tcl, tk, and otcl in conf/makefile.win
  49.     (do NOT touch makefile.vc), then do nmake -f makefile.vc
  50. - ns-2
  51.   - same as tclcl, except you need to correct paths to tclcl and tclsh as well.
  52.   - about validate, see
  53.     http://www.isi.edu/nsnam/ns/ns-win32-build.html for detail. Notice
  54.     that many test suites will fail on windows platform, and you are
  55.     on your own to make sure the simulator works for your purpose.
  56. - nam-1
  57.   - IMPORTANT: nam-1 will NOT work when compiled with tcl8.3.2 and
  58.     tk8.3.2. It requires that a STATIC build of tcl/tk, which the
  59.     current release does not support. To solve the problem, you can
  60.     download a patched tcl/tk 8.0.2 that can be compiled into static
  61.     libraries (i.e., not DLLs) from this pointer:
  62.     http://www.isi.edu/nsnam/dist/tcltk/tcl80p2-win32-static.zip and
  63.     http://www.isi.edu/nsnam/dist/tcltk/tk80p2-win32-static.zip Then
  64.     you should uncomment the STATIC_LIB macro in
  65.     ~nam/conf/makefile.win, and correct other paths to your vc, otcl,
  66.     tclcl, tclsh, then compile.