how-to-build.md 1.8 KB

How to build?

中文版

1. Windows

1.1 Prerequisites

  1. Please make sure that you have Visual Studio 2019 or the higher. Because this is a VS2019 project.

  2. Please make sure you have installed vcpkg and the following libraries:

    • mpir:x86-windows-static
    • mpir:x64-windows-static

is installed.

You can install them by:

   $ vcpkg install mpir:x86-windows-static
   $ vcpkg install mpir:x64-windows-static
  1. Your vcpkg has been integrated into your Visual Studio, which means you have run
   $ vcpkg integrate install

successfully.

1.2 Build

  1. Open this project in Visual Studio.

  2. Select Release configuration.

  3. Select Build > Build Solution.

You will see executable file in bin/ directory.

2. Linux/macOS

2.1 Prerequisites

  1. Please make sure you have following libraries:
   openssl
   mpir

If you use Ubuntu, you can install openssl and mpir via following commands:

   # install openssl
   $ sudo apt-get install libssl-dev

   # install mpir
   $ wget http://mpir.org/mpir-3.0.0.tar.bz2
   $ tar -jxvpf ./mpir-3.0.0.tar.bz2
   $ cd mpir-3.0.0
   $ sudo apt-get install yasm      # yasm is required
   $ sudo apt-get install m4        # m4 is required
   $ ./configure --enable-cxx
   $ make
   $ make check
   $ sudo make install
   $ sudo ldconfig

If you use macOS, you can install openssl and mpir via following commands:

   $ brew install openssl
   $ brew install mpir

2.2 Build

$ git clone https://github.com/DoubleLabyrinth/winrar-keygen.git
$ cd winrar-keygen
$ make keygen

Then you will see executable file in bin/ directory.