Re: Building LDAP C SDK with VS.NET 2005 (8.0) ?
Rich Megginson <[email protected]> Fri, 16 Oct 2009 13:21:05 -0600
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Message-ID | <[email protected]> |
ashwani saxena wrote: > I missed the details about Version details i am trying to build. These are as > followed: > > 1.Drectory - c-sdk - mozldap-6.0.6 > 2. NSS-3.12 > 3. NSPR-4.7 I think you'll have to use MozillaBuild https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Windows_Prerequisites instead of cygwin to build nspr and nss. You can also use MozillaBuild to build mozldap. MozillaBuild 1.3 had a bug - it is supposed to translate argument switches from unix style to windows style - e.g. if you say cl -I/path/to/something it is supposed to convert the -I to /I to pass to cl.exe. This does not work with -L - it does not translate this to /LIBPATH: - So you will have to set the LIB environment variable explicitly to the location of the nspr and nss libraries. I don't know if the new MozillaBuild 1.4 addresses this problem. > > Regards, > Ashwani Saxena > > > ashwani saxena wrote: >> Hi, >> >> Could you please let me know the build environment required for Windows >> environment. >> >> As of now am using Cygwin but no luck. I am trying to build Mozilla LDAP >> c-SDK for Windows platform. >> >> Regards, >> Ashwani Saxena >> >> >> >> Michael J. Wheeler wrote: >>> Hello all, >>> >>> Today I built the LDAP C SDK on my Windows XP SP2 desktop machine. The >>> build went off without a hitch using the build script recomended on the >>> Windows Build Prerequesites page except for one thing: I copy and pasted >>> the recommended commands into a batch file called build.bat .. The line >>> that says: CALL %VCVARS% wouldn't execute because the VCVARS environment >>> variable isn't quoted when it is defined. Placing quotes around it fixes >>> the problem. It gave an error along the lines of "cannot find file >>> C:\Program". >>> >>> Now on to my main problem: >>> First, I built the libraries with VS .NET 8.0 . Whenever I tried to run a >>> program which links against these libraries, I get a Windows runtime >>> error >>> R6034. A fix is described this page: >>> http://msdn2.microsoft.com/en-US/library/ms235560(VS.80).aspx >>> >>> It says something about needing a manifest included before the libraries >>> will load? Has anybody ever uses these libraries on Windows when built >>> with >>> VS .NET 8.0? >>> >>> I also built the libraries with VS .NET 7.0, and I did not get this error >>> when running my test program. >>> >>> Thanks >>> _______________________________________________ >>> dev-tech-ldap mailing list >>> [email protected] >>> https://lists.mozilla.org/listinfo/dev-tech-ldap >>> >>> >> >