My Project
|
Created originally as part of PW3270 application.
See more details at https://softwarepublico.gov.br/social/pw3270/
You can find instalation repositories in SuSE Build Service:
Get lib3270 sources from git
```shell $ git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 ```
(This command can make it easy on SuSE: grep -i buildrequires rpm/lib3270.spec | cut -d: -f2 | sudo xargs zypper in )
Configure and build
```shell $ ./autogen.sh $ make clean $ make all ```
First add the MinGW Repositories for your SuSE version from:
```shell $ sudo zypper ar obs://windows:mingw:win32 mingw32 $ sudo zypper ar obs://windows:mingw:win64 mingw64 $ sudo zypper ref ```
Get lib3270 sources from git
```shell $ git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 ```
Install cross compilers
```shell $ ./lib3270/win/install-cross.sh –all (for 32 and 64 bits) ```
Configure build
```shell $ ./lib3270/win/win-configure.sh –64 (for 64 bits) ```
Build
```shell $ cd lib3270 $ make clean $ make all ```
Install devel packages using pacman on mingw shell
```shell $ pacman -S –needed mingw-w64-x86_64-gcc automake autoconf make git pkg-config mingw-w64-x86_64-gettext mingw-w64-x86_64-openssl ``` Afther this close and reopen mingw shell.
Get lib3270 sources from git using the mingw shell
```shell $ git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 ```
Build library using the mingw shell
```shell $ cd lib3270 $ ./autogen.sh $ make all ```
Install
```shell $ make install ```
Install dependencies
```shell $ brew install automake binutils coreutils curl gettext libtool openldap openssl pkgconfig ```
Use open-keg to make keg-only dependencies available during build process
```shell $ open-keg curl openldap openssl ```
Configure, build and install (inside the open-keg shell opened above)
```shell $ ./autogen.sh –prefix="$(brew --cellar)/lib3270/5.3" $ make all && make install $ brew link lib3270 ```
To uninstall
```shell $ brew unlink lib3270 $ rm -fr "$(brew --cellar)/lib3270" ```