I am trying Harbour 2.0.0 (13372) with Qt 4.5.1 on OS/2, beta 5

It use os2gcc 3.3.5 in OMF type libraries

Setting:
 set HB_WITH_QT=E:\Qt451B5\include

First try:
 Skip contrib\hbqt in OS/2 as not supported

Second try: Enable contrib\hbqt in OS/2
 Changing in contrib\hbqt\detect.mk
  #DAVID: _DET_FLT_PLAT := !dos !os2
  _DET_FLT_PLAT := !dos
 It request HB_QT_MOC_BIN

Third try: Enable HB_QT_MOC_BIN
 set HB_QT_MOC_BIN=e:\qt451b5\bin
 It build some files and fail with hbqt_hbdbfmodel.cpp

make_gnu.log section for hbqt:

-------------------
! Using QT 'moc' bin: e:\qt451b5\bin
make[2]: Entering directory `E:/harbour912/harbour-2.0.0/contrib/hbqt'
make[3]: Entering directory
`E:/harbour912/harbour-2.0.0/contrib/hbqt/obj/os2/gccomf'
gcc   -I. -I../../../../../include -Zomf -Wall -W -O3
-IE:\Qt451B5\include -IE:\Qt451B5\include/QtCore
-IE:\Qt451B5\include/QtGui -IE:\Qt451B5\include/QtNetwork -DTCPV40HDRS
-DHB_FM_STATISTICS_OFF -ohbqt_base.o -c ../../../hbqt_base.cpp
gcc   -I. -I../../../../../include -Zomf -Wall -W -O3
-IE:\Qt451B5\include -IE:\Qt451B5\include/QtCore
-IE:\Qt451B5\include/QtGui -IE:\Qt451B5\include/QtNetwork -DTCPV40HDRS
-DHB_FM_STATISTICS_OFF -ohbqt_utils.o -c ../../../hbqt_utils.cpp
gcc   -I. -I../../../../../include -Zomf -Wall -W -O3
-IE:\Qt451B5\include -IE:\Qt451B5\include/QtCore
-IE:\Qt451B5\include/QtGui -IE:\Qt451B5\include/QtNetwork -DTCPV40HDRS
-DHB_FM_STATISTICS_OFF -ohbqt_slots.o -c ../../../hbqt_slots.cpp
gcc   -I. -I../../../../../include -Zomf -Wall -W -O3
-IE:\Qt451B5\include -IE:\Qt451B5\include/QtCore
-IE:\Qt451B5\include/QtGui -IE:\Qt451B5\include/QtNetwork -DTCPV40HDRS
-DHB_FM_STATISTICS_OFF -ohbqt_destruct.o -c ../../../hbqt_destruct.cpp
gcc   -I. -I../../../../../include -Zomf -Wall -W -O3
-IE:\Qt451B5\include -IE:\Qt451B5\include/QtCore
-IE:\Qt451B5\include/QtGui -IE:\Qt451B5\include/QtNetwork -DTCPV40HDRS
-DHB_FM_STATISTICS_OFF -ohbqt_events.o -c ../../../hbqt_events.cpp
gcc   -I. -I../../../../../include -Zomf -Wall -W -O3
-IE:\Qt451B5\include -IE:\Qt451B5\include/QtCore
-IE:\Qt451B5\include/QtGui -IE:\Qt451B5\include/QtNetwork -DTCPV40HDRS
-DHB_FM_STATISTICS_OFF -ohbqt_hbdbfmodel.o -c ../../../hbqt_hbdbfmodel.cpp
../../../hbqt_hbdbfmodel.cpp: In function `QVariant
hbqt_fetchRole(void*, int,
  int, int)':
../../../hbqt_hbdbfmodel.cpp:108: error: conversion from `BOOL' to `const
  QVariant' is ambiguous
E:/Qt451B5/src/corelib/kernel/qvariant.h:413: error: candidates are:
  QVariant::QVariant(void*) <near match>
E:/Qt451B5/src/corelib/kernel/qvariant.h:215: error:
  QVariant::QVariant(Qt::GlobalColor) <near match>
E:/Qt451B5/src/corelib/kernel/qvariant.h:185: error:
  QVariant::QVariant(const char*) <near match>
E:/Qt451B5/src/corelib/kernel/qvariant.h:183: error:
  QVariant::QVariant(double)
E:/Qt451B5/src/corelib/kernel/qvariant.h:182: error:
  QVariant::QVariant(bool)
E:/Qt451B5/src/corelib/kernel/qvariant.h:181: error:
  QVariant::QVariant(long long unsigned int)
E:/Qt451B5/src/corelib/kernel/qvariant.h:180: error:
  QVariant::QVariant(long long int)
E:/Qt451B5/src/corelib/kernel/qvariant.h:179: error:
  QVariant::QVariant(unsigned int)
E:/Qt451B5/src/corelib/kernel/qvariant.h:178: error:
  QVariant::QVariant(int)
E:/Qt451B5/src/corelib/kernel/qvariant.h:170: error:
  QVariant::QVariant(QVariant::Type) <near match>
make[3]: *** [hbqt_hbdbfmodel.o] Error 1
make[3]: Leaving directory
`E:/harbour912/harbour-2.0.0/contrib/hbqt/obj/os2/gccomf'
make[2]: *** [descend] Error 2
make[2]: Leaving directory `E:/harbour912/harbour-2.0.0/contrib/hbqt'
make[1]: *** [hbqt] Error 2

-------------------

Any hints ?

David Macias



_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to