Subject: Re: [libssh2] how to Compile libssh2 and exemples under windows ?

Re: [libssh2] how to Compile libssh2 and exemples under windows ?

From: Tom Marynowski <tom.marynowski_at_gmail.com>
Date: Tue, 06 Nov 2007 11:55:45 -0500

hello,

i suppose also it isn't realy difficult, but il forget probably some think.

i have not file named libssh2.mak in directory Win32 , in subdirectory
or inparent directory
i have only,
 .
 ..
 .cvsignore
 config.mk
 CVS
 libssh2.dsw
 libssh2_config.h
 libssh2_dll.dsp
 libssh2_lib.dsp
 Makefile
 Makefile.win32
 release
 rules.mk
 test
 tests.dsp

in have Search in libssh2-0.17 libssh2-0.16 et in the daily snapshot.
 
so if i try the commande line :
--------------------------------------------------------------------
C:\libssh2-0.17\win32> Nmake /f "libssh2.mak" CFG="libssh2 - Win32 Debug"
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
NMAKE : fatal error U1052: file 'ôlibssh2.makö' not found
Stop.
-----------------------------------------------------------------------
C:\libssh2-0.17\win32> Nmake /f libssh2.mak CFG="libssh2 - Win32 Debug"
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
NMAKE : fatal error U1052: file 'libssh2.mak' not found
Stop.
---------------------------------------------------------------------------
C:\libssh2-0.17> Nmake /f NMakefile CFG="libssh2 - Win32 Debug"

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

NMAKE : fatal error U1073: don't know how to make 'û'
Stop.
---------------------------------------------------------------------------

argument :CFG="libssh2 - Win32 Debug" give my some error..

------------------------
C:\libssh2-0.17> Nmake /f NMakefile

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        for %D in (src) do NMAKE /nologo /f %D/NMakefile BUILD=
SUBDIR=%D all-su
b

C:\libssh2-0.17>NMAKE /nologo /f src/NMakefile BUILD= SUBDIR=src all-sub
        cl -c /nologo /GL /Zi /EHsc /Og /Oi /O2 /Oy /GF /Y- /MD /DNDEBUG
/Iwin32
 /Iinclude /I..\openssl-0.9.8e\inc32 -DLIBSSH2_HAVE_ZLIB=1
/I..\zlib-1.2.3 -DLIB
SSH2_WIN32 /Fo"Release\src\\" src\channel.c src\comp.c src\crypt.c
src\hostkey.c
 src\kex.c src\mac.c src\misc.c src\openssl.c src\packet.c src\pem.c
src\publick
ey.c src\scp.c src\session.c src\sftp.c src\transport.c src\userauth.c
Command line warning D4002 : ignoring unknown option '/GL'
Command line warning D4002 : ignoring unknown option '/Og'
Command line warning D4002 : ignoring unknown option '/Oi'
Command line warning D4002 : ignoring unknown option '/Oy'
Command line warning D4002 : ignoring unknown option '/Y-'
channel.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
comp.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
crypt.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
hostkey.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
kex.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
mac.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
misc.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
openssl.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
packet.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
pem.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
publickey.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
scp.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
session.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
sftp.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
transport.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
userauth.c
src\openssl.h(38) : fatal error C1083: Cannot open include file:
'openssl/openss
lconf.h': No such file or directory
Generating Code...
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

------------------------------------------------------
so i have copy all files from C:\openssl-0.9.8e\include\openssl into
C:\libssh2-0.17\include\openssl
i have create directory C:\libssh2-0.17\include\openssl.

so i don't know if it is the good way, but it give.
------------------------------------------------------------------------------------------------------
C:\libssh2-0.17> Nmake /f NMakefile

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        for %D in (src) do NMAKE /nologo /f %D/NMakefile BUILD=
SUBDIR=%D all-su
b

C:\libssh2-0.17>NMAKE /nologo /f src/NMakefile BUILD= SUBDIR=src all-sub
        cl -c /nologo /GL /Zi /EHsc /Og /Oi /O2 /Oy /GF /Y- /MD /DNDEBUG
/Iwin32
 /Iinclude /I..\openssl-0.9.8e\inc32 -DLIBSSH2_HAVE_ZLIB=1
/I..\zlib-1.2.3 -DLIB
SSH2_WIN32 /Fo"Release\src\\" src\channel.c src\comp.c src\crypt.c
src\hostkey.c
 src\kex.c src\mac.c src\misc.c src\openssl.c src\packet.c src\pem.c
src\publick
ey.c src\scp.c src\session.c src\sftp.c src\transport.c src\userauth.c
Command line warning D4002 : ignoring unknown option '/GL'
Command line warning D4002 : ignoring unknown option '/Og'
Command line warning D4002 : ignoring unknown option '/Oi'
Command line warning D4002 : ignoring unknown option '/Oy'
Command line warning D4002 : ignoring unknown option '/Y-'
channel.c
comp.c
src\comp.c(40) : fatal error C1083: Cannot open include file: 'zlib.h':
No such
file or directory
crypt.c
hostkey.c
kex.c
mac.c
misc.c
openssl.c
packet.c
pem.c
publickey.c
scp.c
session.c
src\session.c(348) : error C2065: 'socklen_t' : undeclared identifier
src\session.c(348) : error C2146: syntax error : missing ';' before
identifier '
option_len'
src\session.c(348) : error C2065: 'option_len' : undeclared identifier
sftp.c
transport.c
userauth.c
Generating Code...
src\packet.c(1169) : warning C4761: integral size mismatch in argument;
conversi
on supplied
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

Thank

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-11-06