Name Last Update
.vscode Loading commit data...
arch Loading commit data...
debian Loading commit data...
doxygen Loading commit data...
rpm Loading commit data...
sdk Loading commit data...
src Loading commit data...
win Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
LICENCA Loading commit data...
LICENSE Loading commit data...
Makefile.in Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
gitsync.sh Loading commit data...
lib3270.cbp Loading commit data...
pushtag.sh Loading commit data...
valgrind.suppression Loading commit data...
vc140.pdb Loading commit data...

README.md

TN3270 Protocol Library for Linux/Windows

Created originally as part of PW3270 application.

See more details at https://softwarepublico.gov.br/social/pw3270/

Installation repositories

You can find instalation repositories in SuSE Build Service:

Building for Linux

  1. Get lib3270 sources from git
* git clone http://softwarepublico.gov.br/gitlab/pw3270/lib3270.git ./lib3270
  1. Install the required libraries
* autoconf
* automake
* binutils
* coreutils
* gcc-c++
* gettext-devel
* m4
* pkgconfig
* openssl-devel
* dbus-1-devel
* xz

(This command can make it easy on SuSE: grep -i buildrequires rpm/lib3270.spec | cut -d: -f2 | sudo xargs zypper in )

  1. Configure and build
* ./autogen.sh
* make clean
* make Debug

Cross-compiling for Windows

Cross-compiling on SuSE Linux (Native or WSL)

  1. First add the MinGW Repositories for your SuSE version from:
* 32 bits: https://build.opensuse.org/project/show/windows:mingw:win32
* 64 bits: https://build.opensuse.org/project/show/windows:mingw:win64
  1. Get lib3270 sources from git
* git clone https://github.com/PerryWerneck/lib3270.git ./lib3270
  1. Install cross compilers
* ./lib3270/win/install-cross.sh --32 (for 32 bits)
* ./lib3270/win/install-cross.sh --64 (for 64 bits)
* ./lib3270/win/install-cross.sh --all (for 32 and 64 bits)
  1. Configure build
* ./lib3270/win/win-configure.sh --32 (for 32 bits)
* ./lib3270/win/win-configure.sh --64 (for 64 bits)
  1. Build
* cd lib3270
* make clean
* make all

Compiling for Windows (With MSYS2)

  1. Install MSYS2
* Download and install msys2 from https://www.msys2.org/
* Open a msys2 terminal and run "pacman -Syu" repeatedly
* Add c:\msys64\usr\bin and c:\msys64\mingw64\bin to system path
  1. Install devel packages
* pacman -S --needed mingw-w64-x86_64-gcc automake autoconf make git openssl pkg-config
  1. Get lib3270 sources from git using the mingw shell
* git clone https://github.com/PerryWerneck/lib3270.git ./lib3270
  1. Build library using the mingw shell
* cd lib3270
* ./autogen.sh
* make all
  1. Install
* make install