|
|
Building NSPR for Windows 3.11 on Windows NT
NSPR can be built on Windows NT 3.51, Windows NT 4.0, or Windows
95.
1. Install the compiler
2. Install the following tools: gmake.exe, shmsdos.exe, and uname.exe
3. Check out the source code
4. Generate mozilla/nsprpub/tools/winsock.lib
The Winsock.lib, an import library for winsock.dll,
as distributed with Microsoft's MSVC 1.52 is not suitable for linking into
NSPR. You will have to create a suitable winsock.lib using Microsoft's
IMPLIB utility and the winsock.dll provided as part of
your Windows 3.11 for Workgroups distribution. To create a winsock.lib
import library:
-
Install the NSPR distribution files (see step 3 above).
-
Copy the winsock.dll from your Windows 3.11 installation (normally found
in c:\windows) to the mozilla\nsprpub\tools directory.
-
Orient to the mozilla\nsprpub\tools directory.
-
Issue the command:
implib winsock.lib winsock.dll
-
You may delete the winsock.dll after creating the winsock.lib
You should now have a winsock.lib in the current directory. Its file size
should be 4608 bytes.
5. Build it
cd mozilla\nsprpub
gmake export OS_TARGET=WIN16
The first time you do gmake export, mozilla\dist will be created.
Header files are copied to ns\dist\WIN16_D.OBJ\include\nspr20\pr
and the libraries, libnspr.lib and libnspr.dll, are copied
to mozilla\dist\WIN16_D.OBJ\lib. You need to add the mozilla\dist\WIN16_D.OBJ\lib
directory (use an absolute full pathname) to your Path variable
so that the DLL libnspr.dll can be found.
6. Build and run the test programs
We have some test programs in the directory mozilla\nsprpub\pr\tests.
You can build them by
cd mozilla\nsprpub\pr\tests
gmake export OS_TARGET=WIN16
The binary executables are created in the WIN16_D.OBJ subdirectory.
To run the test program cvar, for example, you say
cd mozilla\nsprpub\pr\tests\WIN16_D.OBJ
cvar
Make sure the directories containing the NSPR .DLLs are in the PATH environment
variable.
Last updated: Thu Dec 17 16:47:28 PST 1998
Copyright © 1998 Netscape
Communications Corporation
|