Hi Team,
I am planning to migrate the NSLDAP C SDK to OpenLDAP (2.5/2.6) client SDK of the latest version. For this, I need to build OpenLDAP libraries/dlls to use them for our source code compilation and to run our application.
Can someone please provide detailed steps to compile OpenLDAP on Windows platform with Microsoft Visual Studio 2019 as C compiler.
- How to prepare a build environment (like any Cygwin installation required?) - What are the prerequisites for building OpenLDAP on Windows? - How to pass prerequisites while building OpenLDAP - What are the ENV variables that need to be set before building OpenLDAP code? - What are the options that we should pass to ./configure to generate .libs and .dlls (shared libs and static) along with TLS (say: OpenSSL as SSL provider) - What are the changes required in OpenLDAP source code to compile successfully on Windows with MSVC compiler if any?
I am expecting .libs and .dll files (ex: libldap.lib, libldap.dll, liblber.lib, liblber.dll etc) from the compilation of OpenLDAP along with client utilities (.exe s)
Once I successfully build, I will try to build OpenLDAP on the RHEL platform with gcc C compiler as my next step.
Please help me here to build OpenLDAP successfully.
--On Thursday, October 28, 2021 2:10 PM +0000 c.venugopal521@gmail.com wrote:
Hi Team,
I am planning to migrate the NSLDAP C SDK to OpenLDAP (2.5/2.6) client SDK of the latest version. For this, I need to build OpenLDAP libraries/dlls to use them for our source code compilation and to run our application.
Can someone please provide detailed steps to compile OpenLDAP on Windows platform with Microsoft Visual Studio 2019 as C compiler.
- How to prepare a build environment (like any Cygwin installation
required?) - What are the prerequisites for building OpenLDAP on Windows?
- How to pass prerequisites while building OpenLDAP
- What are the ENV variables that need to be set before building OpenLDAP
code? - What are the options that we should pass to ./configure to generate .libs and .dlls (shared libs and static) along with TLS (say: OpenSSL as SSL provider) - What are the changes required in OpenLDAP source code to compile successfully on Windows with MSVC compiler if any?
I've generally used MSYS2 to compile OpenLDAP on Windows.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
Thank you Quanah for your update.
Could you please provide me some steps to use Microsoft Visual Studio C compiler to build OpenLDAP on windows using MSYS2? Any documentation link or some detailed steps helps me.
Thank you.
--On Thursday, November 11, 2021 6:23 PM +0000 c.venugopal521@gmail.com wrote:
Thank you Quanah for your update.
Could you please provide me some steps to use Microsoft Visual Studio C compiler to build OpenLDAP on windows using MSYS2? Any documentation link or some detailed steps helps me.
There is no support for using the MS visual studio C compiler to build openldap. I was talking about using gcc etc inside of MSYS2 to do the build.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
openldap-technical@openldap.org