From 525c1a4a77f882fb8ea596457ffbb3c51d0b0f90 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Mon, 27 Aug 2018 17:04:42 -0300 Subject: [PATCH] Incluindo instruções para compilação em windows. --- win/building_on_windows-the-hard-way.txt | 24 ++++++++++++++++++++++++ win/building_windows_on_SuSE-the-easy-way.txt | 22 ++++++++++++++++++++++ 2 files changed, 46 insertions(+), 0 deletions(-) create mode 100644 win/building_on_windows-the-hard-way.txt create mode 100644 win/building_windows_on_SuSE-the-easy-way.txt diff --git a/win/building_on_windows-the-hard-way.txt b/win/building_on_windows-the-hard-way.txt new file mode 100644 index 0000000..44ae79e --- /dev/null +++ b/win/building_on_windows-the-hard-way.txt @@ -0,0 +1,24 @@ + + 1. Instalar o mingw e o pacote básico do msys ( http://www.mingw.org/wiki/Getting_Started ) + + 2. Abrir o shell mingw e executar (não é o cmd normal do windows, o ícone fica no menu do mingw). + . mingw-get install autotools + . mingw-get install gettext + . mingw-get install msys-openssl + . mingw-get install msys-libopenssl + + 3. Instalar o tortoise SVN ( http://tortoisesvn.net/downloads.html ) + + 4. Instalar o pacote completo do gtk + . Baixar o bundle em http://www.gtk.org/download/win32.php + . Descompactar o bundle em c:\mingw + + 5. Abrir uma linha de comando do mingw (não é o cmd normal do windows + . Mudar para o diretório dos fontes (PS: usei o tortoise svn para baixar os arquivos) + + 6. Executar ./autogen.sh (atente para o lado da barra, é "/" mesmo já que o prompt do mingw é um bash + . Vai dar alguns error relacionados a linguagem; não me preocupei com eles nessa etapa. + + 7. Executar ./configure - Ele vai dar falta da libssl porque, por algum motivo, a libssl do mingw4windows não se registra no pkg-config + + 8. Executar make diff --git a/win/building_windows_on_SuSE-the-easy-way.txt b/win/building_windows_on_SuSE-the-easy-way.txt new file mode 100644 index 0000000..f7fcace --- /dev/null +++ b/win/building_windows_on_SuSE-the-easy-way.txt @@ -0,0 +1,22 @@ + +The proposal of this document is to show how to build pw3270 installers for windows using the cross-compilers available on SuSE linux. + +1. First install the MinGW Repositories to 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 + +2. Get pw3270 sources from git + + * git clone http://softwarepublico.gov.br/gitlab/pw3270/principal.git ./pw3270 + +3. Install cross compilers + + * ./pw3270/win/install-cross.sh --all + + +4. Build pw3270 windows installers + + * cd pw3270/ && ./win/pack.sh + + -- libgit2 0.21.2