I add to some step:
ps. harbour is install on e:\harbour
    qt is install on e:\qt


step 1: make file 'qt.bat' into \harbour\
----------------------
set path=e:\qt\mingw\bin;e:\harbour\bin;%path%
set HB_COMPILER=mingw
set HB_INSTALL_PREFIX=e:\harbour
set HB_WITH_QT=yes
set HB_QTDIR=e:\qt\qt
set HB_INC_QT=e:\qt\qt\include
----------------------
run cmd.exe and run qt.bat

step 2: make file 'Makefile' into \harbour\contrib\hbqt\tests\
----------------------

OBJS = demoqt.o

HRBLIBS = \
        -L"$(HB_INSTALL_PREFIX)\lib" \
        -lhbmainwin \
        -lhbdebug \
        -lgtgui \
        -lgtwin \
        -lhbqt \
        -lhbvm \
        -lhbpcre \
        -lhbrtl \
        -lhblang \
        -lhbmacro \
        -lhbpp \
        -lhbrdd \
        -lrddntx \
        -lrddcdx \
        -lrddfpt \
        -lhbsix \
        -lhbcommon \

QTLIBS = $(HRBLIBS)\
                        -L"$(HB_QTDIR)\lib" \
                        -lQtCore4 \
                        -lQtGui4 \
                        -lqtmain \
                        -lQtWebKit4 \
                        
GCCLIBS = \
                        -L"$(HB_QTDIR)\mingw\lib" \
                        -lstdc++ \

LIBS =  $(HRBLIBS) \
                                $(QTLIBS) \
                                $(GCCLIBS) \

        
demoqt: $(OBJS)
        gcc -o demoqt $(OBJS) $(LIBS)

demoqt.o:       demoqt.c
        gcc -c -I$(HB_INSTALL_PREFIX)\include demoqt.c 

demoqt.c:       demoqt.prg
        harbour -m -n demoqt.prg
        
----------------------
run mingw32-make.exe and create 'demoqt.exe'


step 3: copy some file from e:\qt\qt\bin\ 
----------------------
mingwm10.dll  
QtCore4.dll   
QtGui4.dll    
QtNetwork4.dll
QtWebKit4.dll 
----------------------

run demoqt.exe   


> 
> Angel Pais wrote:
> > 
> > Could you guide me on how to build libhbqt.a ?
> > Maybe I could be good to put a little howto in
> > C:\harbour\contrib\hbqt\tests
> > 
> 
> - Install QT 4.5 at its default location which must be
>   C:\Qt\2009.01\qt
> - Set parameters for QT, see other messages
> - Stay in harbour/contrib/hbqt/generator
> - Issue:    hbmk2 hbqtgen -run
> - Check in lib folder the presence of libhbqt.a
> - Stay in:   harbour/contrib/hbqt/tests
> - Issue: hbmk2 demoqt -Lc:\qt\2009.01\qt\lib
> - Exec: demoqt.exe
> 

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to