Building LDAP C SDK with VS.NET 2005 (8.0) ?

View: New views
5 Messages — Rating Filter:   Alert me  

Building LDAP C SDK with VS.NET 2005 (8.0) ?

by Michael J. Wheeler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
dev-tech-ldap@...
https://lists.mozilla.org/listinfo/dev-tech-ldap

Re: Building LDAP C SDK with VS.NET 2005 (8.0) ?

by Michael J. Wheeler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oops.. sorry for replying to myself, but the second time I built the
libraries, I used VS .NET 7.1, not 7.0

Sorry for the mix-up.

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
dev-tech-ldap@...
https://lists.mozilla.org/listinfo/dev-tech-ldap

Re: Building LDAP C SDK with VS.NET 2005 (8.0) ?

by ashwani saxena :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
dev-tech-ldap@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-ldap

Re: Building LDAP C SDK with VS.NET 2005 (8.0) ?

by ashwani saxena :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Regards,
Ashwani Saxena


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
dev-tech-ldap@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-ldap


Parent Message unknown Re: Building LDAP C SDK with VS.NET 2005 (8.0) ?

by Rich Megginson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
>>> dev-tech-ldap@...
>>> https://lists.mozilla.org/listinfo/dev-tech-ldap
>>>
>>>
>>
>

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