It was my fault... another tab in firefox... sorry
Roberto Lopez wrote:Why can't we simply instruct hbmk2 to pick qt libs in hmg.hbc without need for other external files?
Try to follow one of the file present in hbqt.hbc, qtcore.hbc
it loads qtcore/hbqtcore.hbc that is:
incpaths=. g
libs=../hbqt_common.hbc
{!HB_STATIC_QT}libs=hbqtcore${__HB_DYN__}
{!HB_STATIC_QT&(allwin|os2)}libs=QtCore4 QtGui4
{!HB_STATIC_QT&(linux|symbian)}libs=QtCore QtGui
{!HB_STATIC_QT&darwin}libs=/Library/Frameworks/QtCore.framework/QtCore /Library/Frameworks/QtGui.framework/QtGui
{HB_STATIC_QT&allwin}libs=hbqtcores${__HB_DYN__}
{HB_STATIC_QT&linux}libs=hbqtcore
{HB_STATIC_QT&(allwin|linux)}libs=QtCore QtGui
it sets the include paths (but it not useful to you since youhave include files in main include dir)
it adds hbqt_common.hbc (that sets a bunch of other settings and adds some c++ compiler libraries)
then adds library according to the operating system we are using....
So, it is true that you can add libraries to build.bat, but we may be probably forgetting to set some other settings...
for the moment, please keep that contrib/hbqt directory in the package, you have to keep ONLY the *.hb* files, you can delete all other *.prg *.cpp *.ch files