- Download and install MSYS2.
- Open MSYS MinGW as Administrator.
- Run:
pacman -S unzip make perl cmake git mingw-w64-i686-gcc mingw-w64-i686-glib2 mingw-w64-i686-glibmm mingw-w64-i686-nsis
. - Clone repository:
git clone github.com/gjvnq/OpenICP-BR
. - Run:
export PATH="/c/msys64/mingw32/bin:$PATH"
.
- Enter:
cd OpenICP-BR/openssl-1.1.0h
- Run:
mkdir dist
. - Configure:
./Configure mingw shared no-asm -fleading-underscore -fPIC --prefix="`pwd`/dist" --openssldir="`pwd`/dist"
. - Compile:
make CC=/c/msys64/mingw32/bin/gcc.exe -j4 all
. - "Install":
make install
. - Hack:
objcopy --remove-leading-char dist/lib/libcrypto.a dist/lib/libcrypto_no_leading_char.a
.
- Enter:
cd OpenICP-BR
. - Set compiler:
export CCX=/c/msys64/mingw32/bin/gcc.exe
. - Configure:
cmake -G "MSYS Makefiles" .
- Compile:
make openicp
.
Optional: Create an installer by running: make installer
.