Modo rápido de iniciar com a xhgtk em Windows usando o MSYS
- Instale o All-In-one blunde, que pode ser encontrado aqui
- Instale o TDM/mingw installer (~24MB) por exemplo em c:\MinGw
- Instale o MSYS-1.0.10.exe por exemplo em c:\Msys
- msysDTK-1.0.1.exe
- Edit o arquivo c:\Msys\1.0\etc\fstab e especifique a localizacao do MinGw
c:/MinGw /mingw
- Configure as variáveis de ambiente, edite o arquivo C:\Msys\1.0\etc\profile
export HB_PATH=/harbour
export HB_COMPILER=mingw
export HB_PREF=hb
export HB_INSTALL_PREFIX=/harbour
export HB_EXTERNALLIBS=no
export HB_BIN_INSTALL=$HB_PATH/bin
export HB_LIB_INSTALL=$HB_PATH/lib
export HB_INC_INSTALL=$HB_PATH/include
export PATH=$HB_PATH/bin:/MinGw/bin:/c/MinGw/bin:$PATH
A Partir deste ponto, vc precisará estar no shell do MSYS
- Baixe e instale o harbour. Instale por exemplo em: C:\Msys\1.0\xharbour ou C:\Msys\1.0\harbour
Se desejar, vc pode baixar os fontes do SVN e compila-lo:
cd /
svn co https://harbour-project.svn.sourceforge.net/svnroot/harbour-project/trunk/harbour
sh make_gnu.sh
sh make_gnu.sh install
- Baixe a xhgtk do svn, se desejar baixe os fontes do sourceforge ou ainda do tarball mais recente,
gerado automaticamente pelo servidor do SourceForge tarball
cd /xhgtk
svn co https://xhgtk.svn.sourceforge.net/svnroot/xhgtk/trunk/xhgtk xhgtk
build.sh
- Teste algum exemplo
cd /xhgtk/samples/glade
build.sh agendatelefonica