> -----Original Message-----
> From: owner-openssl-...@openssl.org [mailto:owner-openssl-
> d...@openssl.org] On Behalf Of JTrades52
> Sent: Friday, July 13, 2012 11:57 AM
> To: openssl-dev@openssl.org
> Subject: Compile OpenSSL 64-bit Windows 7
> 
> 
> I'm working on Windows 7 (64bit) using to compile a 64-bit version of
> OpenSSL.  I followed the INSTALL.W64 instructions (with a few
> modifications) to accomplish this:
> 
> > cd C:\openssl-1.0.1c
> 
> > vsvars64.bat
> 
> > perl Configure VC-WIN64A no-asm --prefix=c:\temp\openssl
> 
> > ms\do_win64a
> 
> > nmake -f ms\ntdll.mak
> However, I have the following problems:
> 
> * The code is still written to the "out32" folder. I need to be able to
> link to both 32-bit and 64-bit versions of the library.  Is there a way
> to have them placed in separate folders (32/64)?  Also, Is there a way
> to change ssleay32.lib/dll and libeay32.lib/dll to ssleay64.lib/dll and
> libeay64.lib/dll.

I usually either "nmake -f ms\ntdll.mak install" and set each to install to a 
different directory. Or after compiling, copy the outXXX directory to some 
other location.  However, you should see the output in out64a, not out32 -- I 
recommend removing the old directory and re-extracting the source code.  That's 
how I do it, anyway, and the right output directories are always used.

Additionally, you can rename the .lib and .dll files however you want, or 
modify ms\ntdll.mak if you prefer.

> * Everything seems to compile OK, but when I run the program, Windows
> displays the following error - "not a valid Win32 application".  Does
> this mean that the libs generated are still 32-bit?

That would suggest that either it didn't compile OK, or you're trying to run a 
64-bit binary on 32-bit Windows (64-bit windows can run 32-bit binaries just 
fine).  Also, are you seeing the error for openssl.exe or for one of your own 
programs?  If the latter, try openssl.exe to double-check if it compiled OK.  
If the former, and if you're able to run 64-bit binaries, it didn't compile 
properly.

> Any suggestions are appreciated.  I really need a 64-bit version for my
> program to compile correctly.  Thanks.
> 
> JTrades.
> --
> View this message in context: http://old.nabble.com/Compile-OpenSSL-64-
> bit-Windows-7-tp34157175p34157175.html
> Sent from the OpenSSL - Dev mailing list archive at Nabble.com.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       openssl-dev@openssl.org
> Automated List Manager                           majord...@openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to