LyX compilation fails after reinstalling OS

Pavel Sanda sanda at lyx.org
Fri Mar 12 17:17:40 UTC 2021


On Fri, Mar 12, 2021 at 06:12:18PM +0100, Jean-Pierre Chrétien wrote:
> Dear developers
> 
> I had to reinstall my Debian buster after a big mistake while using rsync.
> 
> Now here is what I get when I run the config command in the build dir:
> 
> ../master/configure --with-version-suffix --with-included-hunspell
> 
> <cite>
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for QT_CORE... yes
> checking for QT_FRONTEND... checking for X... libraries , headers
> checking for gethostbyname... yes
> checking for connect... yes
> checking for remove... yes
> checking for shmat... yes
> checking for IceConnectionNumber in -lICE... no
> checking for Qt library name... failed, retrying with Qt4
> checking for QT_CORE... yes
> Package QtCore was not found in the pkg-config search path.
> Perhaps you should add the directory containing `QtCore.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'QtCore' found
> Package QtCore was not found in the pkg-config search path.
> Perhaps you should add the directory containing `QtCore.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'QtCore' found
> checking for QT_FRONTEND... checking for X... libraries , headers
> checking for gethostbyname... (cached) yes
> checking for connect... (cached) yes
> checking for remove... (cached) yes
> checking for shmat... (cached) yes
> checking for IceConnectionNumber in -lICE... (cached) no
> checking for Qt library name... (cached) failed
> configure: error: cannot compile a simple Qt executable. Check you have the
> right $QTDIR.
> </cite>
> 
> Looking in the log for what causes the
> "checking for Qt library name... failed", I see :
> 
> <cite>configure:10708: checking for Qt library name
> configure:10747: g++ -o conftest  -I/usr/lib/x86_64-linux-gnu/qt5/include -I/usr
> /lib/x86_64-linux-gnu/qt5/include/Qt -I/usr/lib/x86_64-linux-gnu/qt5/include/QtC
> ore -I/usr/lib/x86_64-linux-gnu/qt5/include/QtGui -I/usr/lib/x86_64-linux-gnu/qt
> 5/include/QtWidgets -I/usr/lib/x86_64-linux-gnu/qt5/include/QtSvg -I/usr/lib/x86
> _64-linux-gnu/qt5/include/QtConcurrent -I/usr/lib/x86_64-linux-gnu/qt5/include/Q
> tMacExtras -L/usr/lib/x86_64-linux-gnu/qt5/lib     conftest.cpp    -lX11  -lQt5C
> ore >&5
> conftest.cpp:36:11: fatal error: qglobal.h: No such file or directory
>   #include <qglobal.h>
> </cite>
> 
> When I look at the contents of the qt5 dir, I see this :
> 
> $ ls /usr/lib/x86_64-linux-gnu/qt5/
> bin  libexec  mkspecs  plugins	qml  qt.conf
> 
> No include there, I must have missed some qt5 package when I reinstalled. So
> in which qt5 package are the includes located ?
> 
> Sorry for the lengthy mail, and thanks for your help.

Did you run debian's
apt-get build-dep lyx
before compiling?

Let's continue discussion on lyx-devel this really does not belong to this
list.

Pavel


More information about the lyx-devel mailing list