I found it easiest to install the MozillaBuild environment for Windows:
https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Windows_Prerequisites#MozillaBuild

Once that is installed, you launch a batch script to start a MING shell for
your VisualStudio version.
Set a few build flags and kick off a build.
Worked fine for me.
I just set this:
export BUILD_OPT=1
Then:
cd to <NSS_ROOT>\mozilla\security\nss
make nss_build_all

That's it, build should complete.
You should end up with this:
<NSS_ROOT>\mozilla\dist\WINNT5.1_OPT.OBJ

Hope this helps.
I tried for awhile to use cygwin with gcc and VS til I finally went to
MozillaBuild.

Peder


Nathan Hoellein-2 wrote:
> 
> Hi - I'm attempting to build nss on windows and getting the following
> output:
> 
> <code>
> $ make nss_build_all
> cd ../coreconf ;  make
> make[1]: Entering directory `/c/mozilla/security/coreconf'
> cd nsinstall; make export
> make[2]: Entering directory `/c/mozilla/security/coreconf/nsinstall'
> make[2]: Nothing to be done for `export'.
> make[2]: Leaving directory `/c/mozilla/security/coreconf/nsinstall'
> cd nsinstall; make libs
> make[2]: Entering directory `/c/mozilla/security/coreconf/nsinstall'
> make[2]: Nothing to be done for `libs'.
> make[2]: Leaving directory `/c/mozilla/security/coreconf/nsinstall'
> make[1]: Leaving directory `/c/mozilla/security/coreconf'
> make: *** No rule to make target `../../nsprpub/configure', needed by
> `../../nsp
> rpub/WINNT6.0_gcc_DBG.OBJ/config.status'.  Stop.
> </code>
> 
> I followed the instructions from here:
> http://www.mozilla.org/projects/security/pki/nss/nss-3.7.7/nss-3.7.7-build.html
> 
> Feels like I'm missing something very small, any advice would be
> appreciated.
> 
> Running with vs 2008 with all environment variables set.
> 
> Thanks, Nate
> -- 
> dev-tech-crypto mailing list
> dev-tech-crypto@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-crypto
> 
> 

-- 
View this message in context: 
http://old.nabble.com/nss-build-on-windows-tp31508984p31509709.html
Sent from the Mozilla - Cryptography mailing list archive at Nabble.com.

-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to