From 482435e1fcd55cca81b829d5c5180230e47670e0 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 8 Jan 2021 09:28:58 -0300 Subject: [PATCH] Updating README.md --- README.md | 93 ++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------- 1 file changed, 46 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index 2b76f0b..9002cd7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -IPC (interprocess communication) plugin & library for pw3270. -============================================================= +## IPC (interprocess communication) plugin & library for pw3270. Created originally as part of PW3270 application. @@ -10,99 +9,99 @@ See more details at https://softwarepublico.gov.br/social/pw3270/ ![Analytics](https://ga-beacon.appspot.com/G-RSMGQ9Q5BG/github/libipc3270) ![Downloads](https://img.shields.io/github/downloads/PerryWerneck/libipc3270/total.svg) +## Instalation -Installation repositories -========================= +### Linux -The latest version packaged for many linux distributions can be found in SuSE Build Service (https://build.opensuse.org/project/show/home:PerryWerneck:pw3270) +For the supported distributions get the install repositories and instructions from https://software.opensuse.org/download.html?project=home%3APerryWerneck%3Apw3270&package=libipc3270 -Requirements -============ +## Building for Linux - * GTK-3 (https://www.gtk.org/) - * lib3270 (https://github.com/PerryWerneck/lib3270) - * libv3270 (https://github.com/PerryWerneck/libv3270) +### Requirements + * [GTK3](https://www.gtk.org/) + * [lib3270](../../../lib3270) + * [libv3270](../../../libv3270) -Building for Linux -================== +### Building + * TODO -Cross-compiling for Windows -=========================== +## Building for windows -Cross-compiling on SuSE Linux (Native or WSL) ---------------------------------------------- +### Cross-compiling on SuSE Linux (Native or WSL) -1. First add the MinGW Repositories for your SuSE version from: +1. Add the MinGW Repositories - * https://build.opensuse.org/project/show/windows:mingw:win32 - * https://build.opensuse.org/project/show/windows:mingw:win64 - * https://build.opensuse.org/project/show/home:PerryWerneck:pw3270 - + ``` + $ sudo zypper ar obs://windows:mingw:win32 mingw32 + $ sudo zypper ar obs://windows:mingw:win64 mingw64 + $ sudo zypper ar obs://home:PerryWerneck:pw3270 pw3270 + $ sudo zypper ref + ``` 2. Get sources from git - * git clone https://github.com/PerryWerneck/libipc3270.git ./libipc3270 + ```shell + $ git clone https://github.com/PerryWerneck/libipc3270.git ./libipc3270 + ``` 3. Install cross compilers -3. Configure build - -4. Build - - * cd libipc3270 - * make clean - * make all + TODO +3. Configure build -Compiling for Windows (With MSYS2) ----------------------------------- + TODO -1. Build and install lib3270 +4. Build - * Follow the guide on https://github.com/PerryWerneck/lib3270 + ```shell + $ cd libipc3270 + $ make clean + $ make all + ``` -2. Build and install libv3270 +### Windows native with MSYS2 - * Follow the guide on https://github.com/PerryWerneck/libv3270 +1. Build and install [libv3270](../../../libv3270) -3. Get sources from git +2. Get sources from git ```shell - git clone https://github.com/PerryWerneck/libipc3270.git ./libipc3270 + $ git clone https://github.com/PerryWerneck/libipc3270.git ./libipc3270 ``` + 4. Build library using the mingw shell ```shell - cd libipc3270 - ./autogen.sh - make all + $ cd libipc3270 + $ ./autogen.sh + $ make all ``` 5. Install ```shell - make install + $ make install ``` -Compiling for Windows (With MSVC) ---------------------------------- +### Windows native with MSVC 1. Install pw3270 with remote control and sdk modules 2. Install git for windows -3. Download and install Visual Studio Build Tools (https://visualstudio.microsoft.com/pt-br/downloads/) +3. Download and install [Visual Studio Build Tools](https://visualstudio.microsoft.com/pt-br/downloads/) 4. Get sources from git ```shell - git clone https://github.com/PerryWerneck/libipc3270.git ./ipc3270 + $ git clone https://github.com/PerryWerneck/libipc3270.git ./ipc3270 ``` 5. Build and install ```shell - cd ipc3270 - install.bat + $ cd ipc3270 + $ install.bat ``` -- libgit2 0.21.2