开发者

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

  1. Goto: http://www.gknw.de/mirror/curl/win32/
  2. Download current curl-x.xx.x-ssl-sspi-zlib-static-bin-w32.zip
  3. Open zip file read built.txt and find out which version of OpenSSL was used.
  4. Extract libcurl.dll, libeay32.dll and libssl32.dll and install in mingw/bin directory
  5. Goto the CURL homepage and download the matching curl-x.xx.x.zip file.
  6. Open the zip file and move the include/curl directory into /mingw so it is at mingw/include/curl
  7. Goto OpenSSL homepage and download the matching openssl-x.x.xy.tar.gz file.
  8. Open the tar.gz and move the include/openssl directory into /mingw
  9. Goto http://liboauth.sourceforge.net/ and download the current version (get 0.9.3 as a minimum)
  10. 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
    
  11. then:

    mingw32-make && mingw32-make check
    
  12. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜