Re: Python, Windows, OpenSSL and applink.c
Arno Bakker <[email protected]>
| Newsgroups | gmane.comp.python.cryptography |
|---|---|
| Message-ID | <[email protected]> |
> > Hope springs eternal so I downloaded a fresh copy of > python-2.4.4.msi. ...and got the same OPENSSL_Applink error, again. > Ugh. Admittedly I used mingw32 (gcc) to compile M2Crypto and that > may be the problem. If I recall correctly, my succesful combinations were (1) python-2.4.4.msi with the binary release of M2Crypto 0.17 from osafoundation.org and (2) python-2.4.4.msi and M2Crypto 0.17 compiled with Microsoft Visual Studio 2003. The latter involved some hacking to link the stuff correctly: 0. Ope Visual Studio Command Prompt 1. Get SWIG to work (set SWIGLIB environment variable) 2. Copy ssleay32MD.lib libeay32MD.lib from C:\OpenSSL\lib\vc to . 3. Run python setup.py build 3. Finish failed link using the following command: "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe" /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\openssl\lib /LIBPATH:c:\Python24\libs /LIBPATH:c:\Python24\PCBuild ssleay32MD.lib libeay32MD.lib /EXPORT:init__m2crypto build\temp.win32-2.4\Release\SWIG/_m2crypto_wrap.obj /OUT:build\lib.win32-2.4\M2Crypto\__m2crypto.pyd /IMPLIB:build\temp.win32-2.4\Release\SWIG\__m2crypto.lib /LIBPATH:"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib" user32.lib kernel32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib glu32.lib delayimp.lib I apologize as I don't have the time now to verify these statements again, but hopefully it will point someone in the right direction. Regards, Arno Bakker