So, I add hbqtmultimedia.hbc to my.hbp file, but i receive these errors:
D:/HMiniGui/harbour/lib/win/mingw/libhbqtgui.a(QSound.o):QSound.cpp:(.text+0x46): undefined reference to `_imp___ZN6QSound4stopEv'
I don't know if this IS the only case but probably in the future (or
today) we will have other; ie. today we have QPrinter:setNumCopies( n )
but this is a deprecated (obsolete) method with Qt 4.8 the new method is
setCopyCount( n ).
Be noted that our current engine is sufficient enough to distinguishbetween the many versions of Qt and adopt according, so thereis no need to devise complex builds at all.
Luigi
--
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 http://groups.google.com/group/qtcontribs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
I know every of these envars have their reasons to exist, but IMHO we must have a unique way to check version (I think QT_VERSION must be preferred) everywhere.
Anyway, my pov is: we must investigate better before use Qt5 as production.....
Cheers
Luigi Ferraris
On the other hand I see that there are:
HBMK_HAS_QT envar only used by hbmk2? I think yes
HB_QT_MAJOR_VER but this envar seems not required. I receive suggestion: it's not required to build....
HB_WITH_QT another envar
HB_QTPATH another envar
and QT_VERSION as hexadecimal values
and ....
we must add another define as QT5 ?
AFAIR only HB_WITH_QT setting is required to build gtqtc, hbQt, QtContribs, etc., but this variable isn't storing a readable info about version. So I suggested to use a custom one.If your environment already has a variable useful to decide what version of Qt is installed is a good. But, how to decide if you have (as I have) both Qt4 and Qt5 installed? I need to set it manually, or, as is doing hbmk2, to obtain this info from the system path.I know every of these envars have their reasons to exist, but IMHO we must have a unique way to check version (I think QT_VERSION must be preferred) everywhere.
If you would apply the sample you sent, a #define QT_VERSION=X.X.X won't solve your problem, as it will be impossible to test #if QT_VERSION < 5, apart using a hbmk script.In Clipper/Harbour preprocessor the only plain way is to set the info in a self contained named variable.That's because I suggested a #define QT4 or #define QT5 for your needs. This way you'll can do #ifdef QT4 and similar constructs.
About the name it's on you the choice, but the name needs to contain the info.
or
- let hbmk_qt.hbm create a small .ch file with just one line: #define QT_VERSION 0x040803. This file should be included as first link in hbqt.ch so that everybody can use this value with #if when we compile user code. hbqt_core.ch can use this define to create the correct one.
Harbour can do the #if. Is not documented but possible
--
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.