Created originally as part of PW3270 application.
You can download installation package for supported linux distributions in Open Build Service
-
Get lib3270 sources from git
git clone https://github.com/PerryWerneck/lib3270.git ./lib3270
-
Install the required libraries
- pkgconfig
- gettext-devel
- curl
- meson
- gcc-c++
- 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 )
-
Setup, build and install
meson setup .build meson compile -C .build meson install -C .build
-
First add the MinGW Repositories for your SuSE version from:
sudo zypper ar obs://windows:mingw:win32 mingw32 sudo zypper ar obs://windows:mingw:win64 mingw64 sudo zypper ref
-
Get lib3270 sources from git
git clone https://github.com/PerryWerneck/lib3270.git ./lib3270
-
Install cross compilers
zypper in \ pkgconfig \ gettext-devel \ mingw64-libcurl-devel \ mingw64-cross-meson \ mingw64-libopenssl-devel \ mingw64-cross-gcc-c++ -
Configure and build
meson setup --cross-file /usr/lib/rpm/macros.d/meson-mingw64-cross-file.txt .build meson compile -C .build
-
Install and update MSYS2
- Download and install msys2
- Update msys:
pacman -Syu
Afther this close and reopen mingw shell.
-
Update system path
- Add c:\msys64\usr\bin and c:\msys64\mingw64\bin to system path
-
Install devel packages using pacman on mingw shell
pacman -S \ dos2unix \ mingw-w64-x86_64-gcc \ mingw-w64-x86_64-meson \ mingw-w64-x86_64-iconv \ pkgconf \ mingw-w64-x86_64-gettext \ gettext-devel \ mingw-w64-x86_64-openssl
Afther this close and reopen mingw shell.
-
Get lib3270 sources from git using the mingw shell
git clone https://github.com/PerryWerneck/lib3270.git ./lib3270
-
Build with packman
makepkg BUILDDIR=/tmp/pkg -p PKGBUILD.mingw
Install
-
Install homebrew
-
Install dependencies
brew update brew install xz meson ninja curl gettext openssl pkgconfig brew upgrade
-
Get lib3270 sources from git
git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 cd lib3270 -
Configure, build and install
export PKG_CONFIG_PATH="$(brew --prefix curl)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig" meson setup --prefix=$(brew --prefix)/Cellar/lib3270/$(grep 'version:' meson.build | cut -d: -f2 | cut -d\' -f2) --reconfigure --wipe .build meson compile -C .build meson install -C .build brew link lib3270
Uninstall
```shell
brew unlink lib3270
rm -fr "$(brew --cellar)/lib3270"
```