On 17 September 2012 11:15, Nick Pateman <nick.pateman_at_certivox.com> wrote:
>
> What I'm trying to do is compile libCurl for x64 via the following instructions...
>
> http://curl.haxx.se/mail/lib-2010-06/0232.html
>
> It says I need to compile OpenSSL, zLib and libSSH2. I've got the other 2 compiling just fine but this one I'm stuck on.
Ok, that's fine but why are you getting curl.h errors when compiling
libssh2? Curl uses libssh2, not the other way round.
> I basically just opened with VC6 project that was in the source folder and updated it to VS2010 format via the wizard.
My advice is to ignore the included VC projects and make your own
because it's really easy on Windows. Here's the guide I've sent
around this list a few times now:
Using Visual Studio:
- Shove all the .c files in libssh2/src into an empty Win32 C++ (DLL
or Static Library) project except libgcrypt.c/openssl.c of which you
only pick the one appropriate to your crypto library.
- Add your OpenSSL or libgcrypt include directory to the project include path
- Add libssh2/include to the project include path
- Add libssh2/win32 to the project include path
- Add the appropriate crypto libraries to the project Additonal Libraries list
- Build
- Job done
Using MinGW:
I'm not confident enough to list the exact steps for this but its
basically a matter of adding the same .c files to a Makefile source
list and instructing gcc to make a DLL or static library from them.
Use Google to find the flags you need to add for those two
alternatives.
Alternatively, Guenter advised:
there's a NMakefile available too which should work with all MSVC
versions; edit .\win32\config.mk and setup the paths to OpenSSL and
Zlib, then in the root: nmake
Or use the included mingw makefile:
set OPENSSL_PATH=...
if you want Zlib support:
set WITH_ZLIB=1
set ZLIB_PATH=...
in ./win32 folder: mingw32-make
HTH
Alex
-- Swish - Easy SFTP for Windows Explorer (http://www.swish-sftp.org) _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2012-09-17