********************************************************************** // Concise notes for compiling NS in Windows using VC6 // Mahdi Amiri (yashil1@yahoo.com) ********************************************************************** - Use the following NS source for windows and decompress it to a folder http://www.isi.edu/nsnam/dist/ns-src-2.1b8a-win.tar.gz ********************************************************************** - Create MySetup8.bat Contents of MySetup8.bat: -------------------------------------------------------------- path=%path%;d:\MyNS\tcl\bin;d:\NetSim\ns21b8\ns-2.1b8;d:\NetSim\ns21b8\nam;d:\NetSim\ns21b8;d:\NetSim\ns21b8\GenApps\Bin; vcvars32.bat REM D:\Program Files\Microsoft Visual Studio\VC98\Bin was in path already -------------------------------------------------------------- - Open DOS Window - Run MySetup8.bat ********************************************************************** - In D:\NetSim\ns21b8a\tcl8.3.2\win\makefile.vc edit the following lines INSTALLDIR = E:\MyNS\Tcl ... TOOLS32 = D:\Program Files\Microsoft Visual Studio\VC98 TOOLS32_rc = D:\Program Files\Microsoft Visual Studio\Common\MSDev98 - In D:\NetSim\ns21b8a\tcl8.3.2\win\ run nmake /f makefile.vc (One may use "nmake /I /f makefile.vc" for ignoring the errors) - If there was no errors then run nmake /f makefile.vc install ********************************************************************** - In D:\NetSim\ns21b8a\tk8.3.2\win\makefile.vc edit the following lines change "TCLDIR = ..\..\tcl8.3" => "...tcl8.3.2" INSTALLDIR = E:\MyNS\Tcl ... TOOLS32 = D:\Program Files\Microsoft Visual Studio\VC98 TOOLS32_rc = D:\Program Files\Microsoft Visual Studio\Common\MSDev98 - Run nmake /f makefile.vc - Run nmake /f makefile.vc install ********************************************************************** - In D:\NetSim\ns21b8a\otcl-1.0a8\makefile.vc edit the following lines TOOLS32 = d:\progra~1\micros~2\vc98 - Run nmake /f makefile.vc ********************************************************************** - In D:\NetSim\ns21b8a\tclcl-1.0b12\conf\makefile.win MSVCDIR = d:\progra~1\micros~2\vc98 LOCAL_SRC = D:\NetSim\ns21b8a OTCL_DIR = $(LOCAL_SRC)\otcl-1.0a7 TCLCL_DIR = $(LOCAL_SRC)\tclcl-1.0b11 - Add the following files to D:\NetSim\ns21b8a\tclcl-1.0b11 embedded-tcl.cc embedded-tclobj.cc ( You may download these files from http://book.nyist.net/bike/linux/vint-ns-nam/ns-allinone-2.1b5/tclcl-1.0b8/) - creare the following files in D:\NetSim\ns21b8a\tclcl-1.0b11 as a fake! tcl2c++.exe tclcl.lib - In D:\NetSim\ns21b8a\tclcl-1.0b11 run nmake /f makefile.vc ==> nmake /a /f makefile.vc ********************************************************************** - In D:\NetSim\ns21b8a\ns-2.1b9\conf MSVCDIR = d:\progra~1\micros~2\vc98 LOCAL_SRC = D:\NetSim\ns21b8a OTCL_DIR = $(LOCAL_SRC)\otcl-1.0a7 TCLCL_DIR = $(LOCAL_SRC)\tclcl-1.0b11 - Run nmake /f makefile.vc ********************************************************************** ********************************************************************** ********************************************************************** **********************************************************************