Compiling qtcontribs with Qt 5.7 and new gcc

217 views
Skip to first unread message

alex;

unread,
Oct 16, 2016, 11:22:38 AM10/16/16
to QtContribs
Hi, Pritpal.

Please add

#include <QtCore/qmath.h> into hbqt.h

and replace "abs(" on "qFabs(" in hbqt_hbqgraphicsscene.cpp

because of gcc not understand abs(qReal)

WBR, alex;


alex;

unread,
Oct 16, 2016, 12:16:07 PM10/16/16
to QtContribs
I compiling qtcontribs, but

hbmk2[hbqtdeclarative]: Error: Missing dependency: qtdeclarative

and stoped

I don't understand why/

Help, please.

Maurizio la Cecilia

unread,
Oct 16, 2016, 1:04:08 PM10/16/16
to Gruppo QtContribs
Hi Alex,
what do you mean about new gcc?
I tried compiling qtContribs with Qt 5.7 using MinGW 6.2 (i686-6.2.0-release-posix-dwarf-rt_v5-rev1), but unsuccessfully.
Do you can specify the version of MinGW you used?
Best regards.
--
Maurizio

--
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcontribs+unsubscribe@googlegroups.com.
To post to this group, send email to qtcon...@googlegroups.com.
Visit this group at https://groups.google.com/group/qtcontribs.
For more options, visit https://groups.google.com/d/optout.

alex;

unread,
Oct 16, 2016, 1:19:14 PM10/16/16
to QtContribs
Hi, Maurizio.

I install new linux Fedora 24
and so say ))

may be exists new rules in gcc

WBR, alex;

воскресенье, 16 октября 2016 г., 20:04:08 UTC+3 пользователь Maurizio la Cecilia написал:
Hi Alex,
what do you mean about new gcc?
I tried compiling qtContribs with Qt 5.7 using MinGW 6.2 (i686-6.2.0-release-posix-dwarf-rt_v5-rev1), but unsuccessfully.
Do you can specify the version of MinGW you used?
Best regards.
--
Maurizio
2016-10-16 17:22 GMT+02:00 alex; <alexeyz...@gmail.com>:
Hi, Pritpal.

Please add

#include <QtCore/qmath.h> into hbqt.h

and replace "abs(" on "qFabs(" in hbqt_hbqgraphicsscene.cpp

because of gcc not understand abs(qReal)

WBR, alex;


--
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcontribs+...@googlegroups.com.

alex;

unread,
Oct 16, 2016, 1:22:53 PM10/16/16
to QtContribs
answer self

"In Qt 5, All classes that were previously in the QtDeclarative module have been moved into the Qt QML and Qt Quick modules, and their class names have been changed to reflect their new module locations"

I commented out
#hbqt/qtdeclarative/hbqtdeclarative.hbp in qtcontribs.hbp

WBR, alex;

воскресенье, 16 октября 2016 г., 19:16:07 UTC+3 пользователь alex; написал:

Pritpal Bedi

unread,
Oct 16, 2016, 3:31:53 PM10/16/16
to QtContribs
Hi Maurizio


Qt 5.7 is not compilable with current Harbour.
It needs a few tweaks in one of the Harbour headers and few in QtContribs.
Plus it needs another Qtcontribs57.hbp which comment-out few modules.
Also there are few changes in .qth's also.


This week I will try to commit qtcontribs with required changes.


Pritpal Bedi
a student of software analysis & concepts

Pritpal Bedi

unread,
Oct 16, 2016, 3:37:00 PM10/16/16
to QtContribs
Hi Alex


#include <QtCore/qmath.h> into hbqt.h


Done.

 
 
and replace "abs(" on "qFabs(" in hbqt_hbqgraphicsscene.cpp


Replace with what ?

alex;

unread,
Oct 16, 2016, 3:47:52 PM10/16/16
to QtContribs
in hbqt_hbqgraphicsscene.cpp

with qt function qFabs() intead of fuction abs() on

WBR, alex;

воскресенье, 16 октября 2016 г., 22:37:00 UTC+3 пользователь Pritpal Bedi написал:

Maurizio la Cecilia

unread,
Oct 16, 2016, 4:07:38 PM10/16/16
to Gruppo QtContribs

Hi Pritpal,
thanks a lot for the clarification and for your next challenge to build with last Qt version.
Best regards.
--
Maurizio


--

alex;

unread,
Oct 16, 2016, 4:17:35 PM10/16/16
to QtContribs
Done.



воскресенье, 16 октября 2016 г., 22:31:53 UTC+3 пользователь Pritpal Bedi написал:
Screenshot_20161016_231521.jpeg

Pritpal Bedi

unread,
Oct 16, 2016, 4:45:49 PM10/16/16
to QtContribs
with qt function qFabs() intead of fuction abs() on


Ah, ok, thanks, done.



Pritpal Bedi

Pritpal Bedi

unread,
Oct 16, 2016, 4:47:01 PM10/16/16
to QtContribs
Hi

Wow.

Show us "About HbIDE" dialog also.

francolino

unread,
Oct 16, 2016, 4:52:11 PM10/16/16
to qtcon...@googlegroups.com

Hi Alex,

You are a genius.

I take hours without being able to do Ubuntu 16.04 64 bits.

You could detail your file to bash?

Thanks in advance,

Juan
--
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcontribs+...@googlegroups.com.

alex;

unread,
Oct 16, 2016, 11:25:22 PM10/16/16
to QtContribs
Hi, again.

воскресенье, 16 октября 2016 г., 23:47:01 UTC+3 пользователь Pritpal Bedi написал:
Screenshot_20161017_062345.png

alex;

unread,
Oct 16, 2016, 11:38:03 PM10/16/16
to QtContribs
To Juan.

I have 64 bit too.

See my customs.

WBR, alec;

воскресенье, 16 октября 2016 г., 23:52:11 UTC+3 пользователь Juan написал:
harbour.zip
qtcontribs-code.tar.gz

francolino

unread,
Oct 17, 2016, 8:24:40 AM10/17/16
to qtcon...@googlegroups.com

Hi Alex,


Thank you.

Regards,

Juan Francolino

Massimo Belgrano

unread,
Oct 17, 2016, 10:03:07 AM10/17/16
to qtcon...@googlegroups.com
thank to Alex and also to everybody
for evolve qtcontrib

for the windows build  mingw  =5.3 with posix-dwarf can be used

http://doc.qt.io/qt-5/supported-platforms-and-configurations.html

I have seen available qtcontrib builds, also at whosaway.com 



To unsubscribe from this group and stop receiving emails from it, send an email to qtcontribs+unsubscribe@googlegroups.com.

To post to this group, send email to qtcon...@googlegroups.com.
Visit this group at https://groups.google.com/group/qtcontribs.
For more options, visit https://groups.google.com/d/optout.



--
Massimo Belgrano
Delta Informatica S.r.l. (Cliccami per scoprire 

Pritpal Bedi

unread,
Oct 17, 2016, 4:15:42 PM10/17/16
to QtContribs
Hi Alex

It seems you did not compiled via Harbour 3.2 mainstream. Correct ?
Appears you used Viktor's fork.

As of today it is not possible to compile Qt 5.7 with MinGW 5.3.0 or newer.

alex;

unread,
Oct 18, 2016, 4:14:04 AM10/18/16
to QtContribs
Hi, Pritpal.

Seems no.

Harbour 3.2.0dev (r1610041322)
Copyright (c) 1999-2016, http://harbour-project.org/

Harbour Build Info
---------------------------
Version: Harbour 3.2.0dev (r1610041322)
Compiler: GNU C 6.2.1 (64-bit)
Platform: Linux 4.7.7-200.fc24.x86_64 x86_64
PCode version: 0.3
ChangeLog last entry: 2016-10-04 16:22 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
ChangeLog ID: f0c179011b2a2bc9036949aa2efaceb1fc8b3676

понедельник, 17 октября 2016 г., 23:15:42 UTC+3 пользователь Pritpal Bedi написал:

alex;

unread,
Oct 18, 2016, 4:19:30 AM10/18/16
to QtContribs
https://github.com/harbour/core.git

вторник, 18 октября 2016 г., 11:14:04 UTC+3 пользователь alex; написал:

alex;

unread,
Oct 18, 2016, 4:21:48 AM10/18/16
to QtContribs

qtcontribs.hbp:

debug/hwgdebug.hbp

# Qt Modules - mandatory
#
hbqt/qtcore/hbqtcore.hbp
hbqt/qtgui/hbqtgui.hbp
hbqt/qtnetwork/hbqtnetwork.hbp

# Uncomment whatever module is not required
#
#hbqt/qtdeclarative/hbqtdeclarative.hbp
hbqt/qtlocation/hbqtlocation.hbp
hbqt/qtmultimedia/hbqtmultimedia.hbp
hbqt/qtmultimediawidgets/hbqtmultimediawidgets.hbp
hbqt/qtopengl/hbqtopengl.hbp
hbqt/qtscript/hbqtscript.hbp
hbqt/qtsql/hbqtsql.hbp
hbqt/qtsvg/hbqtsvg.hbp
hbqt/qtxml/hbqtxml.hbp
hbqt/qtpositioning/hbqtpositioning.hbp
hbqt/qtwebsockets/hbqtwebsockets.hbp
hbqt/qtbluetooth/hbqtbluetooth.hbp
hbqt/qtqml/hbqtqml.hbp
hbqt/qtquick/hbqtquick.hbp
hbqt/qtsensors/hbqtsensors.hbp
#hbqt/qtwebkit/hbqtwebkit.hbp
hbqt/qtdesigner/hbqtdesigner.hbp
#hbqt/qzxing/hbqtzxing.hbp


# Qt Based Widgets
hbqtwidgets/hbqtwidgets.hbp

# Qt QML based Parts
hbqtqmlparts/hbqtqmlparts.hbp


# Qt based Xbase++ compliant Class Framework
#
hbxbp/hbxbp.hbp

# Qt based Harbour IDE
#
hbide/hbide.hbp

# Qt based Harbour DBU
#
hbdbu/hbdbu.hbp



вторник, 18 октября 2016 г., 11:19:30 UTC+3 пользователь alex; написал:

alex;

unread,
Oct 18, 2016, 4:24:02 AM10/18/16
to QtContribs
I don't understand what wrong.

вторник, 18 октября 2016 г., 11:21:48 UTC+3 пользователь alex; написал:

francolino

unread,
Oct 18, 2016, 4:34:31 AM10/18/16
to qtcon...@googlegroups.com

Hi Alex,

I try in 64-bit windows 8
QT 5.7 and 5.3 mingw 32 bits and could not.

When compiling Harbour had to leave blank HB_WITH_QT.

When compiling QTContribs after making the changes indicated by you, he gave me a lot of errors and the compilation was interrupted.

Regards,


Juan Francolino

--
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcontribs+...@googlegroups.com.

francolino

unread,
Oct 18, 2016, 5:09:05 AM10/18/16
to qtcon...@googlegroups.com

Hi Alex,

Windows 8, 64 bits

QT 5.7 and 5.3 mingw 32 bits and could not.

When compiling Harbour had to leave blank HB_WITH_QT.

When compiling QTContribs after making the changes indicated by you, he gave me a lot of errors and the compilation was interrupted.

I copy down some.

Regards,

Juan


w:\harbour_qt_57\addons>hbmk2
Harbour Make (hbmk2) 3.2.0dev (r2016-10-04 13:22)
Copyright (c) 1999-2016, Viktor Szakáts
http://harbour-project.org/

hbmk2: Construyendo sub-proyecto (nivel 2): debug\hwgdebug.hbp
hbmk2: Meta actualizada: ..\lib\win\mingw\libhwgdebug.a
hbmk2: Construyendo sub-proyecto (nivel 2): hbqt\qtcore\hbqtcore.hbp
hbmk2: Construyendo sub-proyecto (nivel 3): hbqt\qtcore\hbqtcores.hbp
hbmk2: Dependencia 'qt' encontrada: c:\Qt57\5.7\mingw53_32\include
hbmk2: Compilando C++...

...

c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndStoreRelaxed(QBasicAtomicPointer<X>::Type)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:269:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndStoreRelaxed(_q_value, newValue); }
              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndStoreAcquire(QBasicAtomicPointer<X>::Type)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:271:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndStoreAcquire(_q_value, newValue); }
              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndStoreRelease(QBasicAtomicPointer<X>::Type)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:273:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndStoreRelease(_q_value, newValue); }
              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndStoreOrdered(QBasicAtomicPointer<X>::Type)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:275:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndStoreOrdered(_q_value, newValue); }
              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In static member function
'static bool QBasicAtomicPointer<X>::isFetchAndAddNative()':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:277:80: error: 'Ops' has no
t been declared
     static Q_DECL_CONSTEXPR bool isFetchAndAddNative() Q_DECL_NOTHROW { return
Ops::isFetchAndAddNative(); }

^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In static member function
'static bool QBasicAtomicPointer<X>::isFetchAndAddWaitFree()':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:278:82: error: 'Ops' has no
t been declared
     static Q_DECL_CONSTEXPR bool isFetchAndAddWaitFree() Q_DECL_NOTHROW { retur
n Ops::isFetchAndAddWaitFree(); }

  ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndAddRelaxed(qptrdiff)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:281:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndAddRelaxed(_q_value, valueToAdd); }
              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndAddAcquire(qptrdiff)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:283:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndAddAcquire(_q_value, valueToAdd); }
              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndAddRelease(qptrdiff)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:285:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndAddRelease(_q_value, valueToAdd); }
              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndAddOrdered(qptrdiff)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:287:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndAddOrdered(_q_value, valueToAdd); }
              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndSubRelaxed(qptrdiff)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:290:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndSubRelaxed(_q_value, valueToAdd); }
              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndSubAcquire(qptrdiff)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:292:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndSubAcquire(_q_value, valueToAdd); }
              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndSubRelease(qptrdiff)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:294:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndSubRelease(_q_value, valueToAdd); }
              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h: In member function 'X* QBa
sicAtomicPointer<X>::fetchAndSubOrdered(qptrdiff)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qbasicatomic.h:296:14: error: 'Ops' has no
t been declared
     { return Ops::fetchAndSubOrdered(_q_value, valueToAdd); }
              ^
In file included from c:/Qt57/5.7/mingw53_32/include/QtCore/QObject:1:0,
                 from ../../../../../hbqt/qtcore/hbqt.h:77,
                 from ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QVariantAnima
tion.cpp:7:
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h: In static member function 'stat
ic typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCou
nt == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPr
ivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::Connect
ionType)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:322:70: error: '&' cannot appear
 in a constant-expression
         typedef QtPrivate::FunctionPointer<decltype(&Func2::operator())> SlotTy
pe ;
                                                                      ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:322:71: error: a function call c
annot appear in a constant-expression
         typedef QtPrivate::FunctionPointer<decltype(&Func2::operator())> SlotTy
pe ;
                                                                       ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:322:72: error: template argument
 1 is invalid
         typedef QtPrivate::FunctionPointer<decltype(&Func2::operator())> SlotTy
pe ;
                                                                        ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:324:26: error: 'SlotType' is not
 a class or namespace
         typedef typename SlotType::ReturnType SlotReturnType;
                          ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:325:39: error: 'SlotType' is not
 a class or namespace
         const int SlotArgumentCount = SlotType::ArgumentCount;
                                       ^
In file included from ../../../../../hbqt/qtcore/hbqt.h:76:0,
                 from ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QVariantAnima
tion.cpp:7:
c:/Qt57/5.7/mingw53_32/include/QtCore/qglobal.h:756:120: error: template argumen
t 1 is invalid
     enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) = s
izeof(QStaticAssertFailure<!!(Condition)>)}

                                        ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qglobal.h:761:47: note: in expansion of ma
cro 'Q_STATIC_ASSERT'
 #define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition)
                                               ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:327:9: note: in expansion of mac
ro 'Q_STATIC_ASSERT_X'
         Q_STATIC_ASSERT_X(int(SignalType::ArgumentCount) >= SlotArgumentCount,
         ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:329:124: error: template argumen
t 2 is invalid
         Q_STATIC_ASSERT_X((QtPrivate::CheckCompatibleArguments<typename SignalT
ype::Arguments, typename SlotType::Arguments>::value),

                                            ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qglobal.h:756:110: note: in definition of
macro 'Q_STATIC_ASSERT'
     enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) = s
izeof(QStaticAssertFailure<!!(Condition)>)}

                              ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:329:9: note: in expansion of mac
ro 'Q_STATIC_ASSERT_X'
         Q_STATIC_ASSERT_X((QtPrivate::CheckCompatibleArguments<typename SignalT
ype::Arguments, typename SlotType::Arguments>::value),
         ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qglobal.h:756:120: error: template argumen
t 1 is invalid
     enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) = s
izeof(QStaticAssertFailure<!!(Condition)>)}

                                        ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qglobal.h:761:47: note: in expansion of ma
cro 'Q_STATIC_ASSERT'
 #define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition)
                                               ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:329:9: note: in expansion of mac
ro 'Q_STATIC_ASSERT_X'
         Q_STATIC_ASSERT_X((QtPrivate::CheckCompatibleArguments<typename SignalT
ype::Arguments, typename SlotType::Arguments>::value),
         ^
In file included from c:/Qt57/5.7/mingw53_32/include/QtCore/QObject:1:0,
                 from ../../../../../hbqt/qtcore/hbqt.h:77,
                 from ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QVariantAnima
tion.cpp:7:
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:346:64: error: template argument
 3 is invalid
                                 typename SignalType::ReturnType>(slot),
                                                                ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:346:65: error: expected '::' bef
ore '(' token
                                 typename SignalType::ReturnType>(slot),
                                                                 ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qobject.h:346:65: error: expected identifi
er before '(' token
In file included from c:/Qt57/5.7/mingw53_32/include/QtCore/qvariant.h:48:0,
                 from c:/Qt57/5.7/mingw53_32/include/QtCore/qvariantanimation.h:
46,
                 from c:/Qt57/5.7/mingw53_32/include/QtCore/QVariantAnimation:1,

                 from ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QVariantAnima
tion.cpp:56:
c:/Qt57/5.7/mingw53_32/include/QtCore/qhash.h: In member function 'QPair<QHash<K
, V>::iterator, QHash<K, V>::iterator> QHash<K, V>::equal_range(const Key&)':
c:/Qt57/5.7/mingw53_32/include/QtCore/qhash.h:957:5: warning: 'auto' changes mea
ning in C++11; please remove it [-Wc++0x-compat]
     auto pair = qAsConst(*this).equal_range(akey);
     ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qhash.h:957:10: error: 'pair' does not nam
e a type
     auto pair = qAsConst(*this).equal_range(akey);
          ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qhash.h:958:31: error: 'pair' was not decl
ared in this scope
     return qMakePair(iterator(pair.first.i), iterator(pair.second.i));
                               ^
c:/Qt57/5.7/mingw53_32/include/QtCore/qhash.h:958:31: note: suggested alternativ
e:
In file included from c:/Qt57/Tools/mingw530_32/i686-w64-mingw32/include/c++/uti
lity:70:0,
                 from c:/Qt57/5.7/mingw53_32/include/QtCore/qcompilerdetection.h
:991,
                 from c:/Qt57/5.7/mingw53_32/include/QtCore/qglobal.h:83,
                 from ../../../../../hbqt/qtcore/hbqt.h:76,
                 from ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QVariantAnima
tion.cpp:7:
c:/Qt57/Tools/mingw530_32/i686-w64-mingw32/include/c++/bits/stl_pair.h:96:12: no
te:   'std::pair'
     struct pair
            ^
hbmk2[hbqtcore]: Error: Ejecutando compilador C/C++. 1
g++.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer  -DHBMK_HAS_QT
 -W -Wall -pipe -Iw:/harbour_qt_57/include -I../../../../../hbqt -I../../../../.
./hbqt/qtcore -Ic:/Qt57/5.7/mingw53_32/include ../../../../../hbqt/qtcore/hbqt_i
nit.cpp ../../../../../hbqt/qtcore/hbqt_pointer.cpp ../../../../../hbqt/qtcore/h
bqt_version.cpp ../../../../../hbqt/qtcore/hbqt_hbqevents.cpp ../../../../../hbq
t/qtcore/hbqt_hbqslots.cpp ../../../../../hbqt/qtcore/hbqt_hbqstring.cpp ../../.
./../../hbqt/qtcore/hbqt_bind.cpp ../../../../../hbqt/qtcore/hbqt_destroyer.cpp
../../../../../hbqt/.hbmk/win/mingw/hbqtcore/moc_hbqt_hbqevents.cpp ../../../../
../hbqt/.hbmk/win/mingw/hbqtcore/moc_hbqt_destroyer.cpp ../../../../../hbqt/.hbm
k/win/mingw/hbqtcore/HBQString.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/
QAbstractAnimation.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QAbstractIte
mModel.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QAbstractListModel.cpp .
./../../../../hbqt/.hbmk/win/mingw/hbqtcore/QAbstractTableModel.cpp ../../../../
../hbqt/.hbmk/win/mingw/hbqtcore/QAnimationGroup.cpp ../../../../../hbqt/.hbmk/w
in/mingw/hbqtcore/QBitArray.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QBu
ffer.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QByteArray.cpp ../../../..
/../hbqt/.hbmk/win/mingw/hbqtcore/QChar.cpp ../../../../../hbqt/.hbmk/win/mingw/
hbqtcore/QChildEvent.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QCommandLi
neOption.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QCommandLineParser.cpp
 ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QCoreApplication.cpp ../../../../.
./hbqt/.hbmk/win/mingw/hbqtcore/QDataStream.cpp ../../../../../hbqt/.hbmk/win/mi
ngw/hbqtcore/QDate.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QDateTime.cp
p ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QDir.cpp ../../../../../hbqt/.hbm
k/win/mingw/hbqtcore/QDirIterator.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtco
re/QEasingCurve.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QEvent.cpp ../.
./../../../hbqt/.hbmk/win/mingw/hbqtcore/QEventLoop.cpp ../../../../../hbqt/.hbm
k/win/mingw/hbqtcore/QFile.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QFil
eInfo.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QFileSystemWatcher.cpp ..
/../../../../hbqt/.hbmk/win/mingw/hbqtcore/QGenericArgument.cpp ../../../../../h
bqt/.hbmk/win/mingw/hbqtcore/QGenericReturnArgument.cpp ../../../../../hbqt/.hbm
k/win/mingw/hbqtcore/QIODevice.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/
QJsonArray.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QJsonDocument.cpp ..
/../../../../hbqt/.hbmk/win/mingw/hbqtcore/QJsonObject.cpp ../../../../../hbqt/.
hbmk/win/mingw/hbqtcore/QJsonParseError.cpp ../../../../../hbqt/.hbmk/win/mingw/
hbqtcore/QJsonValue.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QLatin1Char
.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QLatin1String.cpp ../../../../
../hbqt/.hbmk/win/mingw/hbqtcore/QLine.cpp ../../../../../hbqt/.hbmk/win/mingw/h
bqtcore/QLineF.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QList.cpp ../../
../../../hbqt/.hbmk/win/mingw/hbqtcore/QLibraryInfo.cpp ../../../../../hbqt/.hbm
k/win/mingw/hbqtcore/QLocale.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QM
argins.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QMarginsF.cpp ../../../.
./../hbqt/.hbmk/win/mingw/hbqtcore/QMetaClassInfo.cpp ../../../../../hbqt/.hbmk/
win/mingw/hbqtcore/QMetaEnum.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QM
etaMethod.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QMetaObject.cpp ../..
/../../../hbqt/.hbmk/win/mingw/hbqtcore/QMetaProperty.cpp ../../../../../hbqt/.h
bmk/win/mingw/hbqtcore/QMetaType.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcor
e/QMimeData.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QModelIndex.cpp ../
../../../../hbqt/.hbmk/win/mingw/hbqtcore/QObject.cpp ../../../../../hbqt/.hbmk/
win/mingw/hbqtcore/QParallelAnimationGroup.cpp ../../../../../hbqt/.hbmk/win/min
gw/hbqtcore/QPauseAnimation.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QPo
int.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QPointF.cpp ../../../../../
hbqt/.hbmk/win/mingw/hbqtcore/QProcess.cpp ../../../../../hbqt/.hbmk/win/mingw/h
bqtcore/QPropertyAnimation.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QRec
t.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QRectF.cpp ../../../../../hbq
t/.hbmk/win/mingw/hbqtcore/QRegExp.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtc
ore/QRegularExpression.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QRegular
ExpressionMatch.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QRegularExpress
ionMatchIterator.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QResource.cpp
../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QSequentialAnimationGroup.cpp ../..
/../../../hbqt/.hbmk/win/mingw/hbqtcore/QSettings.cpp ../../../../../hbqt/.hbmk/
win/mingw/hbqtcore/QSignalMapper.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcor
e/QSize.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QSizeF.cpp ../../../../
../hbqt/.hbmk/win/mingw/hbqtcore/QStandardPaths.cpp ../../../../../hbqt/.hbmk/wi
n/mingw/hbqtcore/QStringList.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QS
tringRef.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QTextBoundaryFinder.cp
p ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QTextCodec.cpp ../../../../../hbq
t/.hbmk/win/mingw/hbqtcore/QTextDecoder.cpp ../../../../../hbqt/.hbmk/win/mingw/
hbqtcore/QTextEncoder.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QTextStre
am.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QThread.cpp ../../../../../h
bqt/.hbmk/win/mingw/hbqtcore/QTime.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtc
ore/QTimeLine.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QTimer.cpp ../../
../../../hbqt/.hbmk/win/mingw/hbqtcore/QTranslator.cpp ../../../../../hbqt/.hbmk
/win/mingw/hbqtcore/QUrl.cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QUuid.
cpp ../../../../../hbqt/.hbmk/win/mingw/hbqtcore/QVariant.cpp ../../../../../hbq
t/.hbmk/win/mingw/hbqtcore/QVariantAnimation.cpp



El 18/10/2016 a las 05:24 a.m., alex; escribió:
--
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcontribs+...@googlegroups.com.

Luigi Ferraris

unread,
Oct 18, 2016, 5:31:18 AM10/18/16
to qtcon...@googlegroups.com
Il 16/10/2016 21.31, Pritpal Bedi ha scritto:
Plus it needs another Qtcontribs57.hbp which comment-out few modules.
Also there are few changes in .qth's also.


Hi Pritpal,

I can give a little hint? I think it's best to avoid many specific files related to the Qt version. See qtcontribs4hbp, qtcontribs.hbp and now qtcontribs57. It can create confusion and uncertainty especially when errors and / or requests for help. Perhaps it is time to do a (little, not easy) cleaning in the project.

It would be appropriate to evaluate alternatives such as: create a new repository and call HBQT (in fact this is the core) with two areas: HBQT4 and HBQT5.
We can create only one hbqt.hbp for each one.

The
QTCONTRIBS project could contain the following directories: debug, hbdbu, hbide, hbnetioqt, hbqtqmlparts (I'm not sure about this here), hbqtwidgets, hbxbp and libs.

On the other hands, all these folders must be copied within harbour/addons folder to build the projects, so there isn't any difference at this moment.

Also, I noticed that some people make confusion between QTSDK (official Qt libraries and tools to be downloaded) and QTCONTRIBS.

Regards
Luigi Ferraris

alex;

unread,
Oct 18, 2016, 8:31:59 AM10/18/16
to QtContribs, luigfe...@gmail.com
Guys,
what about

WBR, alex;

вторник, 18 октября 2016 г., 12:31:18 UTC+3 пользователь Luigi Ferraris написал:

Pritpal Bedi

unread,
Oct 18, 2016, 3:11:33 PM10/18/16
to QtContribs
Hi

 
Seems no.


May be then, in GNU 6.2.1 the switch -std=c++11 is auto configured.
On MinGW 5.3.0 supplied with Qt, this switch has to be passed when compiling QtContribs.
Seems, it is a difference of compiler used.

Anybody to rescue ?

Pritpal Bedi

unread,
Oct 18, 2016, 3:15:53 PM10/18/16
to QtContribs, luigfe...@gmail.com
Hi Luigi


I can give a little hint? I think it's best to avoid many specific files related to the Qt version. See qtcontribs4hbp, qtcontribs.hbp and now qtcontribs57. It can create confusion and uncertainty especially when errors and / or requests for help. Perhaps it is time to do a (little, not easy) cleaning in the project.


No.
This will be a hell of the work.
An additional .hbp is easier to maintain and remember than whole new structure.

Pritpal Bedi

unread,
Oct 18, 2016, 3:17:54 PM10/18/16
to QtContribs, luigfe...@gmail.com
Hi Alex

It is not about C compiler and Qt.
It is all about QtContribs.


Pritpal Bedi

francolino

unread,
Oct 18, 2016, 6:46:40 PM10/18/16
to qtcon...@googlegroups.com

Hi Alex and Pritpal,

Qtcontribs compiled in Ubuntu 64 and QT 57.


Thanks.

Juan


El 17/10/2016 a las 12:38 a.m., alex; escribió:

alex;

unread,
Oct 19, 2016, 3:45:33 PM10/19/16
to QtContribs
In QtCore\qbasicatomic.h:

#if defined(QT_BOOTSTRAPPED)
#  include <QtCore/qatomic_bootstrap.h>
// If C++11 atomics are supported, use them!
// Note that constexpr support is sometimes disabled in QNX builds but its
// library has <atomic>.
#elif defined(Q_COMPILER_ATOMICS) && (defined(Q_COMPILER_CONSTEXPR) || defined(Q_OS_QNX))
#  include <QtCore/qatomic_cxx11.h>
// We only support one fallback: MSVC, because even on version 2015, it lacks full constexpr support
#elif defined(Q_CC_MSVC)
#  include <QtCore/qatomic_msvc.h>
// No fallback
#else
#  error "Qt requires C++11 support"
#endif

WBR, alex;

вторник, 18 октября 2016 г., 12:09:05 UTC+3 пользователь Juan написал:
Reply all
Reply to author
Forward
0 new messages