[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building library for Windows
[Thread Prev] | [Thread Next]
- Subject: Re: Building library for Windows
- From: Tilo Eckert <tilo.eckert@xxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 29 Sep 2016 10:11:30 +0200
- To: libssh@xxxxxxxxxx
The INSTALL file that comes with libssh contains all the basic information you need to know to build it. We cross compile libssh on Linux for MinGW and various other platforms. It basically boils down to: - Install all pre-requisites - Change DefineOptions.cmake to your needs - cmake -DCMAKE_BUILD_TYPE=Release - make - make install These cmake parameters are relevant only if you don't want libssh to be installed to the default location by 'make install' or if you did not install OpenSSL to the default location (i.e. if you compiled it yourself): -DCMAKE_INSTALL_PREFIX=${INSTALLDIR} -DOPENSSL_ROOT_DIR=${OPENSSLDIR} -DOPENSSL_INCLUDE_DIR=${OPENSSLDIR}/include In case you cross compile, you will need a few more cmake options. I can elaborate on that if necessary. PS: Please do not send HTML emails to mailing lists. Regards Tilo Am 29.09.2016 um 09:19 schrieb Servesh Singh: > > > Hi Team, > I searched everywhere but could not find complete help for building > static library for Windows platform using MinGW. > Please guide me if anyone has done this. > Thanks in advance, > > Regards, > Servesh >
Building library for Windows | Servesh Singh <ssingh@xxxxxxxxxxxx> |