Commit 8d0d43f143055b6ebd6fc1d4176517c61e9f5e78
Committed by
GitHub
1 parent
d892fdbb
Exists in
master
and in
2 other branches
Update README.md
Updating build info.
Showing
1 changed file
with
25 additions
and
25 deletions
Show diff stats
README.md
| @@ -25,7 +25,7 @@ Building for Linux | @@ -25,7 +25,7 @@ Building for Linux | ||
| 25 | 1. Get lib3270 sources from git | 25 | 1. Get lib3270 sources from git |
| 26 | 26 | ||
| 27 | ```shell | 27 | ```shell |
| 28 | - $ git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 | 28 | + git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 |
| 29 | ``` | 29 | ``` |
| 30 | 30 | ||
| 31 | 2. Install the required libraries | 31 | 2. Install the required libraries |
| @@ -47,9 +47,9 @@ Building for Linux | @@ -47,9 +47,9 @@ Building for Linux | ||
| 47 | 3. Configure and build | 47 | 3. Configure and build |
| 48 | 48 | ||
| 49 | ```shell | 49 | ```shell |
| 50 | - $ ./autogen.sh | ||
| 51 | - $ make clean | ||
| 52 | - $ make all | 50 | + ./autogen.sh |
| 51 | + make clean | ||
| 52 | + make all | ||
| 53 | ``` | 53 | ``` |
| 54 | 54 | ||
| 55 | Building for Windows | 55 | Building for Windows |
| @@ -61,35 +61,35 @@ Cross-compiling on SuSE Linux (Native or WSL) | @@ -61,35 +61,35 @@ Cross-compiling on SuSE Linux (Native or WSL) | ||
| 61 | 1. First add the MinGW Repositories for your SuSE version from: | 61 | 1. First add the MinGW Repositories for your SuSE version from: |
| 62 | 62 | ||
| 63 | ```shell | 63 | ```shell |
| 64 | - $ sudo zypper ar obs://windows:mingw:win32 mingw32 | ||
| 65 | - $ sudo zypper ar obs://windows:mingw:win64 mingw64 | ||
| 66 | - $ sudo zypper ref | 64 | + sudo zypper ar obs://windows:mingw:win32 mingw32 |
| 65 | + sudo zypper ar obs://windows:mingw:win64 mingw64 | ||
| 66 | + sudo zypper ref | ||
| 67 | ``` | 67 | ``` |
| 68 | 68 | ||
| 69 | 2. Get lib3270 sources from git | 69 | 2. Get lib3270 sources from git |
| 70 | 70 | ||
| 71 | ```shell | 71 | ```shell |
| 72 | - $ git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 | 72 | + git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 |
| 73 | ``` | 73 | ``` |
| 74 | 74 | ||
| 75 | 3. Install cross compilers | 75 | 3. Install cross compilers |
| 76 | 76 | ||
| 77 | ```shell | 77 | ```shell |
| 78 | - $ ./lib3270/win/install-cross.sh --all (for 32 and 64 bits) | 78 | + ./lib3270/win/install-cross.sh --all (for 32 and 64 bits) |
| 79 | ``` | 79 | ``` |
| 80 | 80 | ||
| 81 | 3. Configure build | 81 | 3. Configure build |
| 82 | 82 | ||
| 83 | ```shell | 83 | ```shell |
| 84 | - $ ./lib3270/win/win-configure.sh --64 (for 64 bits) | 84 | + ./lib3270/win/win-configure.sh --64 (for 64 bits) |
| 85 | ``` | 85 | ``` |
| 86 | 86 | ||
| 87 | 4. Build | 87 | 4. Build |
| 88 | 88 | ||
| 89 | ```shell | 89 | ```shell |
| 90 | - $ cd lib3270 | ||
| 91 | - $ make clean | ||
| 92 | - $ make all | 90 | + cd lib3270 |
| 91 | + make clean | ||
| 92 | + make all | ||
| 93 | ``` | 93 | ``` |
| 94 | 94 | ||
| 95 | Windows native with MSYS2 | 95 | Windows native with MSYS2 |
| @@ -106,28 +106,28 @@ Windows native with MSYS2 | @@ -106,28 +106,28 @@ Windows native with MSYS2 | ||
| 106 | 3. Install devel packages using pacman on mingw shell | 106 | 3. Install devel packages using pacman on mingw shell |
| 107 | 107 | ||
| 108 | ```shell | 108 | ```shell |
| 109 | - $ pacman -S --needed mingw-w64-x86_64-gcc automake autoconf make git pkg-config mingw-w64-x86_64-gettext mingw-w64-x86_64-openssl | 109 | + pacman -S --needed mingw-w64-x86_64-gcc automake autoconf make git pkg-config mingw-w64-x86_64-gettext mingw-w64-x86_64-openssl libtool |
| 110 | ``` | 110 | ``` |
| 111 | Afther this close and reopen mingw shell. | 111 | Afther this close and reopen mingw shell. |
| 112 | 112 | ||
| 113 | 4. Get lib3270 sources from git using the mingw shell | 113 | 4. Get lib3270 sources from git using the mingw shell |
| 114 | 114 | ||
| 115 | ```shell | 115 | ```shell |
| 116 | - $ git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 | 116 | + git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 |
| 117 | ``` | 117 | ``` |
| 118 | 118 | ||
| 119 | 5. Build library using the mingw shell | 119 | 5. Build library using the mingw shell |
| 120 | 120 | ||
| 121 | ```shell | 121 | ```shell |
| 122 | - $ cd lib3270 | ||
| 123 | - $ ./autogen.sh | ||
| 124 | - $ make all | 122 | + cd lib3270 |
| 123 | + ./autogen.sh | ||
| 124 | + make all | ||
| 125 | ``` | 125 | ``` |
| 126 | 126 | ||
| 127 | 6. Install | 127 | 6. Install |
| 128 | 128 | ||
| 129 | ```shell | 129 | ```shell |
| 130 | - $ make install | 130 | + make install |
| 131 | ``` | 131 | ``` |
| 132 | 132 | ||
| 133 | Building for macOS (using homebrew) | 133 | Building for macOS (using homebrew) |
| @@ -138,20 +138,20 @@ Building for macOS (using homebrew) | @@ -138,20 +138,20 @@ Building for macOS (using homebrew) | ||
| 138 | 2. Install dependencies | 138 | 2. Install dependencies |
| 139 | 139 | ||
| 140 | ```shell | 140 | ```shell |
| 141 | - $ brew install automake binutils coreutils curl gettext libtool openldap openssl pkgconfig | 141 | + brew install automake binutils coreutils curl gettext libtool openldap openssl pkgconfig |
| 142 | ``` | 142 | ``` |
| 143 | 143 | ||
| 144 | 3. Use [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) to make keg-only dependencies available during build process | 144 | 3. Use [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) to make keg-only dependencies available during build process |
| 145 | 145 | ||
| 146 | ```shell | 146 | ```shell |
| 147 | - $ open-keg curl openldap openssl | 147 | + open-keg curl openldap openssl |
| 148 | ``` | 148 | ``` |
| 149 | 149 | ||
| 150 | 4. Configure, build and install (inside the [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) shell opened above) | 150 | 4. Configure, build and install (inside the [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) shell opened above) |
| 151 | 151 | ||
| 152 | ```shell | 152 | ```shell |
| 153 | - $ ./autogen.sh --prefix="$(brew --cellar)/lib3270/5.3" | ||
| 154 | - $ make all && make install | 153 | + ./autogen.sh --prefix="$(brew --cellar)/lib3270/5.3" |
| 154 | + make all && make install | ||
| 155 | $ brew link lib3270 | 155 | $ brew link lib3270 |
| 156 | ``` | 156 | ``` |
| 157 | 157 | ||
| @@ -161,6 +161,6 @@ Uninstalling | @@ -161,6 +161,6 @@ Uninstalling | ||
| 161 | 1. To uninstall | 161 | 1. To uninstall |
| 162 | 162 | ||
| 163 | ```shell | 163 | ```shell |
| 164 | - $ brew unlink lib3270 | ||
| 165 | - $ rm -fr "$(brew --cellar)/lib3270" | 164 | + brew unlink lib3270 |
| 165 | + rm -fr "$(brew --cellar)/lib3270" | ||
| 166 | ``` | 166 | ``` |