How to compile liboauth for windows

Any successfully compiled liboauth for Windows?

Any help here is much appreciated.

+7
windows
source share
3 answers

You need at least 0.9.3 to compile as you 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 get it working:

To do this, you need to install MSYS / MINGW

  • Go to: http://www.gknw.de/mirror/curl/win32/
  • Download current curl-x.xx.x-ssl-sspi-zlib-static-bin-w32.zip
  • Open the zip file, read build.txt and find out which version of OpenSSL was used.
  • Extract libcurl.dll, libeay32.dll and libssl32.dll and install mingw / bin in the directory
  • Go to the CURL homepage and download the appropriate curl-x.xx.x.zip file.
  • Open the zip file and move the include / curl directory to / mingw so that it is in mingw / include / curl
  • Open the OpenSSL homepage and download the corresponding openssl-xxxy.tar.gz file.
  • Open tar.gz and move the include / openssl directory to / mingw
  • Go to http://liboauth.sourceforge.net/ and download the current version (get at least 0.9.3)
  • from the msys shell, do:

     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 intersect, everything compiles as it should.

     mingw32-make install 
+6
source share

You can use Visual Studio if you want. It works unchanged. You will also need libcurl or the external cUrl executable.

You can create libcurl as lib or include it directly in your project.

+1
source share

configure mingw , fire ./configure && make && make install .

0
source share

All Articles