转自:http://bhlzlx.zxq.net/?p=16
我当时写的时候中文输入法不能用,就用英文写了,能看懂就将就着看吧。
you need
1.active perl(not sure,but i did intall it)
2.mingw32-msys the latest,download it from sourceforge
3.openssl-1.0.0g
4.zlib-1.2.5
5.libcurl-7.24.0
unzip them into a folder
open curl-7.24.0\lib\makefile.m32
modify openssl_path to ..\..\openssl-1.0.0g save it.
the follow operation were should did in msys.
my direactory is d:\com\openss…& the other two lib
so type:
cd d:
cd com/openssl-1.0.0g
1.
into the openssl folder,then build openssl
type:
./config -t
then
./config threads shared no-capieng
then
make depend
then type:
make
after this step you will get some dll(dynamic link library) & a(gcc static link library) file,maybe some with errors with “make test”,don’t cared it,the latest mingw should not get extra errors.
the dlls are:
ssleay32.dll
libeay32.dll
the a files are:
libssl.a
libssl.dll.a
libcrypto.a
libcrypto.dll.a
make two folder in openssl’s root folder:”out” & “outinc”
copy folder “openssl” in “include” that contains header files
then you get it like this “openssl-1.0.0g\outinc\openssl\”
2.
build zlib
type:
cd ..
cd zlib-1.2.5
to get into zlib’s root folder
type:
cp win32/makefile.gcc makefile.gcc
to copy makefile.gcc to root.
type:
mingw32-make -f makefile.gcc
then you get(three files):
libz.a
libzdll.a
libz1.dll
copy all *.a files to folder “lib” in libcurl’s directory
3.
build libcurl support openssl & zlib
cd ..
cd curl-7.24.0
rename libssl.a to libssl32.a in the folder openssl-1.0.0g/out
mingw32-make mingw32-ssl-zlib
then you get:
libcurldll.a
libcurl.a
libcurl.dll
three files
hahaa..
everything goes well now,so the one thing left is to config the libs&header files with your IDE.
here i choose code::blocks as my c++ IDE.
get all the dll files here:
you can build a folder named “bin”,copy all the dll files here:
libcurl.dll
libeay32.dll
ssleay32.dll
zlib1.dll
get all the lib files here:
libcrypto.a
libcrypto.dll.a
libcurl.a
libcurldll.a
libssl.dll.a
libssl32.a
libz.a
you hava got all the files you want , what you do from it is your call,bye bye!
YanTai University
Lixin
You can contact me with gmail,bhlzlx@gmail.com
hi I was luck to look for your theme in yahoo, your Topics is impressive, I learn a lot in your Topics really thanks very much, btw the theme of you blog is really wonderful, where can find it