From b12b24f25d1cea2ea67a0fefc094662ed59071ad Mon Sep 17 00:00:00 2001 From: Cypherpunk Samurai <66906402+CypherpunkSamurai@users.noreply.github.com> Date: Tue, 11 Oct 2022 02:25:26 +0530 Subject: [PATCH] Added Mingw Instructions Added Instructions to help build with Mingw64. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 3ec3cfc9..a60a5709 100644 --- a/README.md +++ b/README.md @@ -328,6 +328,20 @@ cd vcpkg The restclient-cpp port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository. +Another option is to use Mingw64 and CMake to compile on Windows. This requires you to have [Mingw64](https://www.mingw-w64.org/) installed with [CMake](https://cmake.org/download/) and [libCurl](https://curl.se/windows/) (MSYS2 would also work fine). + +```bash +# Make sure cmake, mingw32-make and g++ are in PATH +# Clone the repo +git clone https://github.com/mrtazz/restclient-cpp && cd restclient-cpp +# Build library +mkdir build && cd build +# Run cmake +cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CC_COMPILER=gcc -DCMAKE_MAKE_PROGRAM=mingw32-make -G "MinGW Makefiles" .. +# Builds the dll.a lib and dll file +mingw32-make +``` + ## Contribute All contributions are highly appreciated. This includes filing issues, updating documentation and writing code. Please take a look at the