Gecode 6.2.0 won't compile on Ubuntu 20.04.1 LTS

139 views
Skip to first unread message

Mats Carlsson

unread,
Jan 12, 2021, 1:27:09 PM1/12/21
to Gecode

Hi, I'm running a freshly upgraded Ubuntu with no special modifications to the downloaded packages.  I'm getting this:

$ configure
$ make
[...]
g++ -I. -fcx-limited-range -fno-signaling-nans -fno-rounding-math -ffinite-math-only -fno-math-errno -fno-strict-aliasing -O3 -fvisibility=hidden -ggdb -std=c++11 -pipe -Wall -Wextra -fPIC -pthread -DNDEBUG   \
 \
-c -o gecode/gist/drawingcursor.o  gecode/gist/drawingcursor.cpp
In file included from ./gecode/gist/spacenode.hh:37,
                 from ./gecode/gist/visualnode.hh:37,
                 from ./gecode/gist/nodecursor.hh:37,
                 from ./gecode/gist/drawingcursor.hh:37,
                 from gecode/gist/drawingcursor.cpp:34:
./gecode/gist/node.hh:39:10: fatal error: QHash: No such file or directory
   39 | #include <QHash>
      |          ^~~~~~~
compilation terminated.

Can you help me?

Thanks, --Mats

Marco Correia

unread,
Jan 12, 2021, 1:33:25 PM1/12/21
to gec...@googlegroups.com
Hi,

Do you have the QT libraries installed (https://www.qt.io/) ? I believe that is necessary for gist.

Marco

--
You received this message because you are subscribed to the Google Groups "Gecode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gecode+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gecode/cea41fcd-8862-4750-beca-908c64b5d5fbn%40googlegroups.com.

Mats Carlsson

unread,
Jan 12, 2021, 3:07:51 PM1/12/21
to Gecode
I have not installed anything specific for Qt.  I get this:

$ apt list | grep qt5-default
qt5-default/focal 5.12.8+dfsg-0ubuntu1 amd64
qt5-default/focal 5.12.8+dfsg-0ubuntu1 i386

Does that look OK or not? Do I need anything else?

Marco Correia

unread,
Jan 12, 2021, 3:42:49 PM1/12/21
to gec...@googlegroups.com
I don't know about ubuntu, but on debian I would need to install the -dev version of QT (that installs the required c++ headers).

Mats Carlsson

unread,
Jan 12, 2021, 3:59:52 PM1/12/21
to Gecode
I have this:

$ apt list | grep qttools
qttools5-dev-tools/focal 5.12.8-0ubuntu1 amd64
qttools5-dev-tools/focal 5.12.8-0ubuntu1 i386
qttools5-dev/focal 5.12.8-0ubuntu1 amd64
qttools5-dev/focal 5.12.8-0ubuntu1 i386
qttools5-doc-html/focal,focal 5.12.8-0ubuntu1 all
qttools5-doc/focal,focal 5.12.8-0ubuntu1 all
qttools5-examples/focal 5.12.8-0ubuntu1 amd64
qttools5-examples/focal 5.12.8-0ubuntu1 i386
qttools5-private-dev/focal 5.12.8-0ubuntu1 amd64
qttools5-private-dev/focal 5.12.8-0ubuntu1 i386

Do I need anything else?

Marco Correia

unread,
Jan 12, 2021, 4:11:52 PM1/12/21
to gec...@googlegroups.com
Don't you need the "--installed" flag to "apt list" to list the installed packages?

I am not sure which one. Perhaps try this one:
qtbase5-dev
The MPG page 31 also provides some information.

Mats Carlsson

unread,
Jan 12, 2021, 4:27:53 PM1/12/21
to Gecode
Right, I missed the --installed flag!  Now I see:

$ apt list --installed | grep ^qt
qt5-default/focal,now 5.12.8+dfsg-0ubuntu1 amd64 [installed]
qt5-gtk-platformtheme/focal,now 5.12.8+dfsg-0ubuntu1 amd64 [installed,automatic]
qt5-qmake-bin/focal,now 5.12.8+dfsg-0ubuntu1 amd64 [installed,automatic]
qt5-qmake/focal,now 5.12.8+dfsg-0ubuntu1 amd64 [installed,automatic]
qtbase5-dev-tools/focal,now 5.12.8+dfsg-0ubuntu1 amd64 [installed,automatic]
qtbase5-dev/focal,now 5.12.8+dfsg-0ubuntu1 amd64 [installed]
qtchooser/focal,now 66-2build1 amd64 [installed,automatic]
qtdeclarative5-dev-tools/focal,now 5.12.8-0ubuntu1 amd64 [installed]
qtdeclarative5-test-plugin/now 5.9.5-0ubuntu1.1 amd64 [installed,local]
qttranslations5-l10n/focal,focal,now 5.12.8-0ubuntu1 all [installed,automatic]

but "make" still fails, just like before.

Marco Correia

unread,
Jan 12, 2021, 4:35:47 PM1/12/21
to gec...@googlegroups.com
Did you try to run configure again?

Other than the notes in page 31 of https://www.gecode.org/doc-latest/MPG.pdf , I am out of ideas. Perhaps some maintainer can help (I am just another gecode user).

Good luck!

Mats Carlsson

unread,
Jan 13, 2021, 9:28:45 AM1/13/21
to Gecode
Running configure again did the trick, many thanks!
Reply all
Reply to author
Forward
0 new messages