Short How-To download and build hbqt
====================================
This example is for Windows only. Building hbqt on other platforms is
similar but may vary in \ / and other details.
Note: don't use spaces in your path. A different HB_INSTALL_PREFIX as
the directory where you checked out harbour will not work for addons
like hbqt.
1. Download current harbour version
git clone https://github.com/harbour/core.git harbour
2. Enter harbour directory and download hbqt
cd harbour
svn checkout svn://svn.code.sf.net/p/qtcontribs/code/trunk addons
The directory structure should be:
harbour\addons\hbide
harbour\addons\hbqt
...
harbour\addons\qtcontribs.hbp
3. Build harbour (see README.md in the harbour directory)
Here is my setup (Windows) as an example:
SET PATH=c:\MyProg\MinGW\bin\
SET HB_BUILD_ADDONS=qtcontribs.hbp
SET HB_WITH_QT=C:\MyProg\QtSDK\Desktop\Qt\4.8.1\mingw\include
SET HB_QTPATH=C:\MyProg\QtSDK\Desktop\Qt\4.8.1\mingw\bin
SET HB_TR_SYSOUT=yes
SET HB_ARCHITECTURE=win
SET HB_COMPILER=mingw
SET HB_BUILD_UNICODE=yes
SET HB_INSTALL_PREFIX=C:\harbour
win-make.exe clean install > log-%HB_COMPILER%.txt 2>&1
4. Add your newly built binaries to your path:
SET Path=C:\harbour\bin;C:\harbour\lib\win\mingw;%PATH%
5. Now build hbqt.
Note that this extra step is needed. hbqt is not build automatically
even though HB_BUILD_ADDONS is set.
cd \harbour\addons
hbmk2 qtcontribs.hbp
Afterwards the qtcontrib binaries are in harbour\lib\win\mingw
folder, and executable (HbIDE, HbDBU) in harbour\bin\win\mingw
6. Test and enjoy hbqt:
cd \harbour\addons\hbqt\tests
hbmk2 demoqt -run
Harbour GIT e HBQT instalação.
Moderador: Moderadores
- Itamar M. Lins Jr.
- Administrador

- Mensagens: 7928
- Registrado em: 30 Mai 2007 11:31
- Localização: Ilheus Bahia
- Curtiu: 1 vez