octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #59813] Build failure with Qt4


From: Hg200
Subject: [Octave-bug-tracker] [bug #59813] Build failure with Qt4
Date: Mon, 4 Jan 2021 17:09:04 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0

Follow-up Comment #5, bug #59813 (project octave):

My system has both Qt4 and Qt5. But it seems to fail. What i did was:

++
hg update stable
patch -p1 < ../qt4-diffs.txt
./configure --prefix=/home/Octave/ --with-qt=4
 make -j 12

Build Octave Qt GUI:                  yes (version: 4)
--

++
libgui/src/octave-dock-widget.cc: In member function ‘void
octave::octave_dock_widget::handle_settings(const octave::gui_settings*)’:
libgui/src/octave-dock-widget.cc:515:40: error: no matching function for call
to ‘QVariant::canConvert(QMetaType::Type&)’
  515 |     if (dock_geom.canConvert (rect_type))
      |                                        ^
In file included from /usr/include/QtGui/qaction.h:48,
                 from /usr/include/QtGui/QAction:1,
                 from libgui/src/octave-dock-widget.cc:30:
/usr/include/QtCore/qvariant.h:233:10: note: candidate: ‘bool
QVariant::canConvert(QVariant::Type) const’
  233 |     bool canConvert(Type t) const;
--

I have in config.h:

++
/* Define to 1 if `QRect' is a member of `QMetaType'. */
#define HAVE_QMETATYPE_QRECT 1

/* Define to 1 if `QString' is a member of `QMetaType'. */
#define HAVE_QMETATYPE_QSTRING 1
--

Is it possible that this happens when both Qt versions are installed?

@Torsten: Did you test with 4 or 5? You write 5.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59813>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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