Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile liboauth for windows

Tags:

windows

Anyone successfully compiled liboauth for Windows?

Any help here much appreciated.

like image 990
ManojMarathayil Avatar asked Oct 12 '10 09:10

ManojMarathayil


1 Answers

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
    
like image 199
Gareth Avatar answered Oct 03 '22 11:10

Gareth