How to compile liboauth for windows
Anyone successfully compiled li开发者_运维百科boauth for Windows?
Any help here much appreciated.
You need at least 0.9.3 to compile as you have tried.
version 0.9.3
- yet more build-system fixes:
- allow to override HASH_LIBS and CURL_LIBS using envoronment variables
- include them in .pc and tests/Makefile.am
I use the following steps to make it work:
To do this you need MSYS/MINGW installed
- Goto: http://www.gknw.de/mirror/curl/win32/
- Download current curl-x.xx.x-ssl-sspi-zlib-static-bin-w32.zip
- Open zip file read built.txt and find out which version of OpenSSL was used.
- Extract libcurl.dll, libeay32.dll and libssl32.dll and install in mingw/bin directory
- Goto the CURL homepage and download the matching curl-x.xx.x.zip file.
- Open the zip file and move the include/curl directory into /mingw so it is at mingw/include/curl
- Goto OpenSSL homepage and download the matching openssl-x.x.xy.tar.gz file.
- Open the tar.gz and move the include/openssl directory into /mingw
- Goto http://liboauth.sourceforge.net/ and download the current version (get 0.9.3 as a minimum)
from msys shell, run:
env PKG_CONFIG=/bin/true ./configure --disable-static --disable-curl \ CURL_LIBS=/mingw/bin/libcurl.dll HASH_LIBS="/mingw/bin/libeay32.dll \ /mingw/bin/libssl32.dll" --prefix=/mingw
then:
mingw32-make && mingw32-make check
Fingers crossed, it all compiles as it should.
mingw32-make install
You can use Visual Studio if you want. It works without modifications. You will also need libcurl or external cUrl executable.
You can build the libcurl as lib or incorporate it directly in your project.
set up mingw, fire ./configure && make && make install
.
精彩评论