Hello Bernard,
I'm not a guru anyway I will try to help you based on my experience; so, be careful and evaluate my suggestions carefully.
I'm assuming on Windows (64 or 32) to
build 32bit executable.
The main "problem" is to keep aligned Harbour (and HbQt) with Qt, from C compiler/linker pov.So, in my opinion the best is:
a) upgrade your GCC at least able to handle C++11 dialect
About this I hope there is someone can give you a good solution because I have little knowledge. I'm using MSYS with difficult.
b) donwload Qt from
https://download.qt.io/new_archive/qt/5.7/5.7.0/ this installer qt-opensource-windows-x86-mingw530-5.7.0.exe
c) download Harbour sources (see .zip)
d) download HbQt
I follow these steps for a main reason: I can check step by step each compilation error.
warning: I'm focusing on Harbour, HbQt and Qt settings requirement.
1) install Qt somewhere; normally, I try to keep the Qt directory not too far away from the Harbour directory
2) build Harbour from sources with these MANDATORY settings in your .bat
SET HB_WITH_QT=%QTINC% where QTINC is your Qt include directory
e.g. .....\Qt\Qt5.7.0\5.7\mingw53_32\include
SET HB_QTPATH=%QTBIN% where QTBIN is your Qt bin directory
e.g. .....\Qt\Qt5.7.0\5.7\mingw53_32\bin
SET HB_QT_MAJOR_VER=5 most important
3) expand
HbQt within your Harbour/addons directory and build HbQt with these MANDATORY settings in your .bat
SET HB_WITH_QT=%QTINC% see above
SET HB_QTPATH=%QTBIN% see above
SET HB_QT_MAJOR_VER=5 see above
SET HB_QT_MINOR_VER=7
SET HB_USER_CFLAGS=-std=gnu++11
SET QTCONTRIBS_REBUILD=yes
4) build your program using HbQt with these MANDATORY settings in your .bat
SET HB_WITH_QT=%QTINC% see above
SET HB_QTPATH=%QTBIN% see above
SET HB_QT_MAJOR_VER=5 see above
SET HB_QT_MINOR_VER=7 see above
Obviously, you can keep your current "folders" and create a new one structure on your HD. I think is better!
I hope this can help you.
Regards, Luigi