Re: issue with file prcpucfg.h while building nspr on Windows

"Wan-Teh Chang" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
On 8/2/07, franck.fr <[email protected]> wrote:
> Hello,
>
> I try to build nspr (nspr-4.6.7.tar.gz) on Windows XP SP2 with VC2005
> express using Cygwin. The command-line I use is:
>
> set path=C:\tools\cygwin\bin
> call "C:\Program Files\Microsoft Platform SDK\SetEnv.Cmd" /XP32 /DEBUG
> call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86
> sh configure --enable-debug-rtl
> cd pr/src
> make clean all

The problem is caused by "cd pr/src".  You should stay in the current
directory (mozilla/nsprpub, where 'configure' is) and do "make clean all".

The reason is that you also need to do "make" in other directories such
as pr/include, lib/ds, and lib/libc.  The top-level makefile in mozilla/nsprpub
will handle that.

In particular, doing "make" in pr/include will create the prcpucfg.h file.
On Windows, it is created from mozilla/nsprpub/pr/include/md/_winnt.h
or _win95.h.

By the way, NSPR has two implementations for Windows.  For
historical reasons, the default one (called "WINNT") is not appropriate
for general use.  I suggest that you pass --enable-win32-target=WIN95
to 'configure'.  Don't be turned off by the name "WIN95".  It is a historical
name.  It really means generic WIN32.

Wan-Teh
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.