Please confirm you’re running the new script. It should include the part below. The “-F…” indicates that frameworks should be used. The warning you’re seeing was resolved when I switched to frameworks and included QT_CPPFLAGS in CPPFLAGS and QT_LDFLAGS in LDFLAGS.
brew switch qt5 5.12.0
QCOLLECTIONGENERATOR=qhelpgenerator
export QCOLLECTIONGENERATOR
QT_CPPFLAGS="-I/usr/local/opt/qt/include"
export QT_CPPFLAGS
QT_LDFLAGS="-F/usr/local/opt/qt/lib"
export QT_LDFLAGS
The easiest way to confirm is to edit config.log and search on "Qt LDFLAGS” (case-sensitive), and examine the Qt related lines. Mine are below.
Qt CPPFLAGS: -I/usr/local/Cellar/qt/5.12.0/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtHelp.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers
Qt LDFLAGS: -F/usr/local/Cellar/qt/5.12.0/lib
Qt GUI libraries: -framework QtNetwork -framework QtPrintSupport -framework QtHelp -framework QtWidgets -framework QtGui -framework QtSql -framework QtXml -framework QtCore -lqscintilla2_qt5
Qt OpenGL libraries: -framework QtOpenGL -framework QtWidgets -framework QtGui -framework QtCore
Qt moc: moc
Qt uic: uic
Qt rcc: rcc
Qt lrelease: lrelease
Qt qcollectiongenerator: qhelpgenerator
Qt qhelpgenerator: qhelpgenerator
Ben
I checked and I'm using the same one as your's:
QT_LDFLAGS="-F/usr/local/opt/qt/lib"
This is from config.log that I found to be interesting:
configure:72939: checking for QAbstractItemModel::beginResetModel in <QAbstractItemModel>
In file included from /usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers/QAbstractItemModel:1:
/usr/local/Cellar/qt/5.12.0/lib/QtCore.framework/Headers/qabstractitemmodel.h:43:10: fatal error: 'QtCore/qvariant.h' file not found
| #include <QAbstractItemModel>
| class item_model : public QAbstractItemModel
| item_model (QObject *parent = 0) : QAbstractItemModel (parent) {}
configure:74619: WARNING: QAbstractItemModel::beginResetModel not found; disabling Qt GUI
configure:83175: WARNING: QAbstractItemModel::beginResetModel not found; disabling Qt GUI
Any idea why qvariant.h wasn't found?