Modo rápido de iniciar com a xhgtk em Windows usando o MSVC
Este tutorial presume que vc tenha o Microsoft Visual C. Eu tenho usado em meus testes o MSVC 7 ToolKit que é gratuíto.
- Instale o harbour para msvc
- Instale o All-In-one blunde, que pode ser encontrado aqui
- 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
- Vc irá precisar do gnu make, baixe-o mingw32-make-3.80.0-3.exe. por exemplo em c:\MinGw
- Configure as variaveis de ambiente:
SET HB_COMPILER=msvc
SET HB_PREF=hb
SET HB_EXTERNALLIBS=no
SET HB_INSTALL_PREFIX=C:\harbour
SET HB_PATH=C:\harbour
SET HB_BIN_INSTALL=C:\harbour\bin
SET HB_LIB_INSTALL=C:\harbour\lib
SET HB_INC_INSTALL=C:\harbour\include
SET HB_DOC_INSTALL=C:\harbour\doc
SET PKG_CONFIG_PATH=C:\Gtk\lib\pkgconfig
SET GTK_BASEPATH=C:\Gtk
SET PATH=C:\Gtk\bin;C:\harbour\bin;C:\gnumake\bin <-- Local onde foi instalado o Gnu-Make
SET INCLUDE=C:\Msvc\include
SET LIB=C:\Msvc\lib
- Compile a lib
cd \xhgtk
build.sh
- Teste algum exemplo
cd \xhgtk\samples\functions
build.sh print01