octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Having problem building on macOS Mojave


From: Ben Abbott
Subject: Re: Having problem building on macOS Mojave
Date: Tue, 25 Dec 2018 19:38:14 +0800

On Dec 25, 2018, at 6:09 PM, Anadi Kashyap <address@hidden> wrote:

On Tue, Dec 25, 2018 at 2:22 PM Ben Abbott <address@hidden> wrote:

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?

My test, and the one before it,  looks like …

configure:72921: checking for munmap
configure:72921: gcc -o conftest -g -O2 -D_THREAD_SAFE -pthread   -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/qt/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include  -L/usr/local/opt/readline/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/icu4c/lib -F/usr/local/opt/qt/lib -L/usr/local/opt/sundials27/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/qrupdate/lib conftest.c  -lm  >&5
configure:72921: $? = 0
configure:72921: result: yes
configure:72939: checking for QAbstractItemModel::beginResetModel in <QAbstractItemModel>
configure:72994: g++ -std=gnu++11 -c -fPIC -g -O2 -D_THREAD_SAFE -pthread  -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 -fPIC  -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/openssl/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/qt/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/zlib/include conftest.cpp >&5
configure:72994: $? = 0
configure:73010: result: yes

You can see that both "-I/usr/local/opt/qt/include" and the "-F/usr/local/opt/qt/lib" are present in the check for munmap and QAbstractItemModel::beginResetModel. Please confirm each are present in your check for munmap.

Ben





reply via email to

[Prev in Thread] Current Thread [Next in Thread]