{"id":19011483,"url":"https://github.com/perrywerneck/lib3270","last_synced_at":"2025-04-22T23:26:57.600Z","repository":{"id":39852907,"uuid":"156745257","full_name":"PerryWerneck/lib3270","owner":"PerryWerneck","description":"TN3270 client Library","archived":false,"fork":false,"pushed_at":"2025-04-11T13:32:40.000Z","size":3780,"stargazers_count":13,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-11T14:19:06.746Z","etag":null,"topics":["3270","mainframe","tn3270"],"latest_commit_sha":null,"homepage":"https://softwarepublico.gov.br/social/pw3270/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PerryWerneck.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-11-08T17:39:49.000Z","updated_at":"2025-03-27T15:01:48.000Z","dependencies_parsed_at":"2024-01-26T02:29:05.958Z","dependency_job_id":"a5775bc2-259a-49b7-a73d-a21d0e743d6f","html_url":"https://github.com/PerryWerneck/lib3270","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Flib3270","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Flib3270/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Flib3270/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Flib3270/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PerryWerneck","download_url":"https://codeload.github.com/PerryWerneck/lib3270/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250339320,"owners_count":21414340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3270","mainframe","tn3270"],"created_at":"2024-11-08T19:14:36.804Z","updated_at":"2025-04-22T23:26:57.583Z","avatar_url":"https://github.com/PerryWerneck.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## TN3270 Protocol Library for Linux/Windows\n\nCreated originally as part of PW3270 application.\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n![CodeQL](https://github.com/PerryWerneck/lib3270/workflows/CodeQL/badge.svg)\n[![build result](https://build.opensuse.org/projects/home:PerryWerneck:pw3270/packages/lib3270/badge.svg?type=percent)](https://build.opensuse.org/package/show/home:PerryWerneck:pw3270/lib3270)\n[![Publish](https://github.com/PerryWerneck/lib3270/actions/workflows/publish.yml/badge.svg)](https://github.com/PerryWerneck/lib3270/actions/workflows/publish.yml)\n![Downloads](https://img.shields.io/github/downloads/PerryWerneck/lib3270/total.svg)\n\n## Installation\n\n### Pre build packages\n\nYou can download installation package for supported linux distributions in [Open Build Service](https://software.opensuse.org/download.html?project=home%3APerryWerneck%3Apw3270\u0026package=lib3270)\n\n[\u003cimg src=\"https://raw.githubusercontent.com/PerryWerneck/pw3270/develop/branding/obs-badge-en.svg\" alt=\"Download from open build service\" height=\"80px\"\u003e](https://software.opensuse.org/download.html?project=home%3APerryWerneck%3Apw3270\u0026package=pw3270)\n[\u003cimg src=\"https://raw.githubusercontent.com/PerryWerneck/PerryWerneck/3aa96b8275d4310896c3a0b5b3965ed650fb7c2b/badges/github-msys-macos.svg\" alt=\"Download from githut\" height=\"80px\"\u003e](https://github.com/PerryWerneck/lib3270/releases)\n\n## Building for Linux\n\n1. Get lib3270 sources from git\n\n\t```shell\n\tgit clone https://github.com/PerryWerneck/lib3270.git ./lib3270\n\t```\n\n2. Install the required libraries\n\n\t* autoconf\n\t* automake\n\t* binutils\n\t* coreutils\n\t* gcc-c++\n\t* gettext-devel\n\t* m4\n\t* pkgconfig\n\t* openssl-devel\n\t* dbus-1-devel\n\t* xz\n\n\t(This command can make it easy on SuSE: grep -i buildrequires rpm/lib3270.spec | cut -d: -f2 | sudo xargs zypper in )\n\n3. Configure and build\n\n\t```shell\n\t./autogen.sh\n\tmake clean\n\tmake all\n\t```\n\n## Building for Windows\n\n### Cross-compiling on SuSE Linux (Native or WSL)\n\n1. First add the MinGW Repositories for your SuSE version from:\n\n\t```shell\n\tsudo zypper ar obs://windows:mingw:win32 mingw32\n\tsudo zypper ar obs://windows:mingw:win64 mingw64\n\tsudo zypper ref\n\t```\n\n2. Get lib3270 sources from git\n\n\t```shell\n\tgit clone https://github.com/PerryWerneck/lib3270.git ./lib3270\n\t```\n\n3. Install cross compilers\n\n\t```shell\n\t./lib3270/win/install-cross.sh --all (for 32 and 64 bits)\n\t```\n\n3. Configure build\n\n\t```shell\n\t./lib3270/win/win-configure.sh --64 (for 64 bits)\n\t```\n\n4. Build\n\n\t```shell\n\tcd lib3270\n\tmake clean\n\tmake all\n\t```\n### Windows native with MSYS2 (Using bundle script)\n\n1. Install and update MSYS2 \n\n\t* Download and install [msys2](https://www.msys2.org/)\n\t* Update msys:\n\t\n\t```shell\n\tpacman -Syu\n\t```\n\tAfther this close and reopen mingw shell.\n\n2. Get lib3270 sources from git using the mingw shell\n\n\t```shell\n\tgit clone https://github.com/PerryWerneck/lib3270.git ./lib3270\n\t```\n\n3. Run bundle script\n\n\t```shell\n\tcd lib3270\n\t./win/bundle.msys --pre-reqs --build\n\t```\n\n### Windows native with MSYS2 (Manual)\n\n1. Install and update MSYS2 \n\n\t* Download and install [msys2](https://www.msys2.org/)\n\t* Update msys:\n\t\n\t```shell\n\tpacman -Syu\n\t```\n\tAfther this close and reopen mingw shell.\n\n2. Update system path\n\n\t* Add c:\\msys64\\usr\\bin and c:\\msys64\\mingw64\\bin to system path\n\n3. Install devel packages using pacman on mingw shell\n\n\t```shell\n\tpacman -S --needed zip dos2unix mingw-w64-x86_64-gcc automake autoconf make git pkgconf mingw-w64-x86_64-gettext gettext-devel mingw-w64-x86_64-openssl libtool\n\t```\n\n\tAfther this close and reopen mingw shell.\n\n4. Get lib3270 sources from git using the mingw shell\n\n\t```shell\n\tgit clone https://github.com/PerryWerneck/lib3270.git ./lib3270\n\t```\n\n5. Build library using the mingw shell\n\n\t```shell\n\tcd lib3270\n\t./autogen.sh\n\tmake all\n\t```\n\n6. Install\n\n\t```shell\n\tmake install\n\t```\n\n## Building for macOS\n\n### Using homebrew\n\nInstall\n\n1. Install [homebrew](https://brew.sh/)\n\n2. Install dependencies\n\n\t```shell\n\tbrew update\n\tbrew install xz meson ninja curl gettext openssl pkgconfig\n\tbrew upgrade\n\t```\n\n3. Get lib3270 sources from git\n\n\t```shell\n\tgit clone https://github.com/PerryWerneck/lib3270.git ./lib3270\n\tcd lib3270\n\t```\n\n4. Configure, build and install\n\n\t```shell\n\texport PKG_CONFIG_PATH=\"$(brew --prefix curl)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig\"\n\tmeson setup --prefix=$(brew --prefix)/Cellar/lib3270/$(grep 'version:' meson.build | cut -d: -f2 | cut -d\\' -f2) --reconfigure --wipe .build\n\tmeson compile -C .build\n\tmeson install -C .build\n\tbrew link lib3270\n\t```\n\nUninstall\n\n\t```shell\n\tbrew unlink lib3270\n\trm -fr \"$(brew --cellar)/lib3270\"\n\t```\n\t\n### Using jhbuild\n\n1. Install jhbuild\n\n\thttps://wiki.gnome.org/Projects/GTK/OSX/Building\n\t\n2. build\n\n\t```shell\n\tjhbuild --moduleset=https://raw.githubusercontent.com/PerryWerneck/lib3270/master/mac/lib3270.modules build lib3270\n\t```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrywerneck%2Flib3270","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperrywerneck%2Flib3270","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrywerneck%2Flib3270/lists"}