octave-maintainers
[Top][All Lists]
Advanced

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

Re: GUI on MacOS X !


From: Daniel J Sebald
Subject: Re: GUI on MacOS X !
Date: Sun, 24 Sep 2017 19:10:27 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 09/24/2017 06:54 PM, Ben Abbott wrote:
On Sep 24, 2017, at 19:13, Mike Miller <address@hidden> wrote:

On Sun, Sep 24, 2017 at 19:09:08 -0400, Ben Abbott wrote:
I’ve made progress, but am seeing this
"QAbstractItemModel::beginResetModel not found; disabling Qt GUI”

Apparently beginResetModel is obsolete?

It's not. I think you will have to debug this closer or post more info
from your config.log.

In my config.log:

   configure:70604: checking for QAbstractItemModel::beginResetModel in 
<QAbstractItemModel>
   configure:70659: g++ -c -fPIC -g -O2 -pthread -fopenmp ...
   configure:70659: $? = 0
   configure:70675: result: yes

Are you trying to build with Qt 5 now? Are you running configure with
--with-qt=5 or letting it autodetect?

--
mike

I am setting qt=5 (4 and 5 coexist for me). I was setting QT_LIBS using 
pkg-config, but now leaving this to configure.

In any event, the additional info from config.log is below.

configure:70547: checking for QAbstractItemModel::beginResetModel in 
<QAbstractItemModel>
configure:70602: /sw/var/lib/fink/path-prefix-libcxx/c++ -std=gnu++11 -c -fPIC -O2 -g 
-fno-omit-frame-pointer -D_THREAD_SAFE -pthread  
-I/sw/lib/qt5-mac/lib/QtCore.framework/Headers 
-I/sw/lib/qt5-mac/lib/QtGui.framework/Headers 
-I/sw/lib/qt5-mac/lib/QtNetwork.framework/Headers 
-I/sw/lib/qt5-mac/lib/QtOpenGL.framework/Headers 
-I/sw/lib/qt5-mac/lib/QtWidgets.framework/Headers 
-I/sw/lib/qt5-mac/lib/QtPrintSupport.framework/Headers -I/sw/lib/qt5-mac/include -fPIC 
-I/sw/include conftest.cpp >&5
In file included from conftest.cpp:769:
In file included from 
/sw/lib/qt5-mac/lib/QtCore.framework/Headers/QAbstractItemModel:1:
/sw/lib/qt5-mac/lib/QtCore.framework/Headers/qabstractitemmodel.h:43:10: fatal 
error: 'QtCore/qvariant.h' file not found
#include <QtCore/qvariant.h>
          ^~~~~~~~~~~~~~~~~~~
1 error generated.

I can verify that qvariant.h is the QtCore framework, i.e. it is in 
QtCore.framework/Versions/5//Headers

Ben

You'll need to include that directory somehow. (And when you figure out how, a changeset for configure.ac can be made.

I would guess

-I/sw/lib/qt5-mac/lib/QtCore.framework/Versions/5/Headers

is what's missing from you c++ compiler command.  Does adding

  --includedir=/sw/lib/qt5-mac/lib/QtCore.framework/Versions/5/Headers

to the configure help? If so, then in the configure.ac file Headers needs to be added specifically for Mac OS X systems.

Dan



reply via email to

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