[Libssh] Compiling libssh svn on win32

Andreas Schneider mail at cynapses.org
Sun Mar 8 10:56:36 CET 2009


On Sunday 08 March 2009 03:32:09 Grr wrote:
> I've been trying for a few hours today to get libssh to compile on Win32
> through MingW/Dev-cpp and seem to be running into a few roadblocks. I've
> got the latest source from svn and had to add the following lines in sftp.h
> to get it to compile:

Hi,

I don't have virtualization hardware at the moment to I can't test it. 

I suggest that you use CMake to compile libssh. Especially on Windows it 
should be easier and you can create Makefiles for Visual Studio.

>
> #define uid_t int
>
> #define gid_t int
>
>

Should be fixed in trunk.

> As having the C:\dev-cpp\lib\libws2_32.a file path hard coded was giving me
> errors like this:
>
> C:\Dev-Cpp\Bin\dlltool: Unable to open object file: C:dev-cppliblibws2_32.a
>
> Even though the file is present.
>

Use CMake :)

>
>
> The source now seems to compile to object files now, however I'm running
> into linking issues now.
>

Should be fixed in trunk.	

>
> I do most of my C work under MSVC and am kind of new to MingW/Dev-cpp, so I
> was hopping someone could point me in the right direction. Ultimately I'm
> trying to build the static library.

I suggest to use shared libraries instead of static.


Cheers,

	-- andreas

-- 
cybernetic synapses - http://www.cynapses.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cerkinfo.be/pipermail/libssh/attachments/20090308/21dfbba3/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://www.cerkinfo.be/pipermail/libssh/attachments/20090308/21dfbba3/attachment.pgp 


More information about the Libssh mailing list