I was following some posts I found on the list archives about building
libssh2 for win32 from linux. I actually got it to mostly work up until it
starts to link everything together. Some sort of libtool confusion gets in
the way. Lot's of things like this:
*** Warning: linker path does not have real file for library -lssl.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libssl and none of the candidates passed a file format test
*** using a file magic. Last file checked:
/home/stover/src/lib/libssl32.dll.a
Later it libtool eventually fails with:
../src/.libs/libssh2.a: could not read symbols: Archive has no index; run
ranlib to add one
I think some how I need a "cross libtool" or maybe tell libtool what I'm
doing.
-I'm using a home built mingw rooted at
/opt/crosscompilers/win32/bin/i686-mingw32-
-I have the win32 openssl files in /home/stover/src
-This was my configure:
./configure CC=/opt/crosscompilers/win32/bin/i686-mingw32-gcc
--build=i686-pc-linux-gnu --host=i686-mingw32
--with-libssl-prefix=/home/stover/src/
Oh well. Maybe some else has a clue.
-- www.thomasstover.com _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2010-06-16