Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Install issue: fatal error: QtCore: No such file or directory #include <QtCore>

2,851 views
Skip to first unread message

bor...@gmail.com

unread,
Oct 14, 2017, 12:01:03 PM10/14/17
to
I'm trying to install from source 5.2 on Ubuntu 17.04. At first I had this:

gnuplot wxterminal/wxt_gui.o: undefined reference to symbol 'XInitThreads'

Then I followed this:

http://knanagnostopoulos.blogspot.com/2016/02/ubuntu-1510-compiling-gnuplot-50-tweaks.html

But now I have

qtterminal/qt_term.cpp:51:18: fatal error: QtCore: No such file or directory
#include <QtCore>
^
compilation terminated.
Makefile:916: recipe for target 'qtterminal/qt_term.o' failed
make[4]: *** [qtterminal/qt_term.o] Error 1
...

Any ideas what I need to do?

Ethan A Merritt

unread,
Oct 14, 2017, 3:57:59 PM10/14/17
to
It looks that the search path for Qt libraries was not correctly
configured by the autoconfigure script. You would have to look
at the screen output from ./configure and perhaps the more detailed
output in config.log.

Failure at build time is a bit strange because normally if the
configure script cannot find the appropriate libraries it disables
building the qt terminal and you just get a line
qt terminal: no
in the output.

Anyhow, probably it just comes down to not having all of the
needed qt development packages installed. I don't know how
Ubuntu breaks those out but on my linux box that would include
lib64qt5widgets-devel
lib64qt5network-devel
lib64qt5core-devel
lib64qt5gui-devel
lib64qt5svg-devel
lib64qt5printsupport-devel
qttools5

Lawrence Bottorff

unread,
Oct 14, 2017, 7:48:25 PM10/14/17
to
I don't have

lib64qt5widgets-devel
lib64qt5network-devel
lib64qt5core-devel
lib64qt5gui-devel
lib64qt5svg-devel
lib64qt5printsupport-devel

and Ubuntu doesn't seem to offer these. What Linux are you using?

Ethan A Merritt

unread,
Oct 15, 2017, 12:17:56 AM10/15/17
to
I'm using Mageia.

DIfferent distros split the Qt libraries out into different packages.
It looks to me that Ubuntu has a top-level package
qtbase5-dev
that will pull in at least some of the other pieces as dependencies.

Ethan

Karl Ratzsch

unread,
Oct 16, 2017, 3:57:51 AM10/16/17
to
Am 15.10.2017 um 06:17 schrieb Ethan A Merritt:

> DIfferent distros split the Qt libraries out into different packages.
> It looks to me that Ubuntu has a top-level package
> qtbase5-dev
> that will pull in at least some of the other pieces as dependencies.

Last time I tried on ubuntu, you only additionally needed

libqt5svg5-dev

evth. else is installed automatically with qtbase5-dev.

Karl

Lawrence Bottorff

unread,
Oct 16, 2017, 9:11:05 AM10/16/17
to
Thnaks. That got me a bit further along. But now I've got:


/usr/bin/ld: wxterminal/wxt_gui.o: undefined reference to symbol 'XInitThreads'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status


Lawrence Bottorff

unread,
Oct 16, 2017, 9:35:35 AM10/16/17
to
Hold the phone. I just found this:

http://gnuplot-beta.narkive.com/lCVNUILw/cvs-build-fails-on-ubuntu-14-04-i386

from Ethan 3 years ago, which says to try

TERMLIBS="-lX11" ./configure

and that did the trick.

Karl Ratzsch

unread,
Oct 16, 2017, 1:11:30 PM10/16/17
to
That info you would also have found under "known issues" in the
release notes. ;-)

Karl
0 new messages