Subject: Re: [libssh2] wee neat

Re: [libssh2] wee neat

From: Guenter Knauf <eflash_at_gmx.net>
Date: Thu, 22 Nov 2007 14:38:55 +0100

Hi Simon,

>>> Has anyone mingwed libssh2 with success yet?
>> yes, there are mingw makefiles in the ./win32 folder which work with
>> plain MingW32 - not yet tested from MSYS though; but I do use same
>> makefiles for a non-configure build on Linux with MingW-Cross...

> How do I use those files?
well, very simple:
I think currently you will need a path to the zlib source because its hardcoded in the win32 config file, we should probably change that; also you need to point to your openssl folder. You can overwrite the makefile defaults with environment vars, or also edit the ./win32/Makefile:

set OPENSSL_PATH=d:/projects/mingw32/openssl-0.9.8g
set ZLIB_PATH=d:/projects/mingw32/zlib-1.2.3

if you're on native win32 then you can just set a path to the your mingw32 bin folder,
then change to the libssh2 win32 directory, and type (no need for MSYS):
mingw32-make

on Linux you can cross-compile with:
PATH=/opt/mingw32-cross/bin:$PATH ; export PATH
__MSYS__=1 ; export __MSYS__
CRPREFIX=i586-mingw32msvc- ; export CRPREFIX
OPENSSL_PATH=/projects/mingw32/openssl-0.9.8g ; export OPENSSL_PATH
ZLIB_PATH=/projects/mingw32/zlib-1.2.3 ; export ZLIB_PATH

I use the Debian mingw32-cross-gcc on a OpenSuSE box.

HTH, Guenter.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-11-22