pkg-config can not find Qt5Help. Some package files are missing

Bug #1858261 reported by tomdean
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qttools-opensource-src (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

> lsb_release -rd
Description: Ubuntu 18.04.3 LTS
Release: 18.04

> apt-cache policy libqt5help5
libqt5help5:
  Installed: 5.9.5-0ubuntu1
  Candidate: 5.9.5-0ubuntu1
  Version table:
 *** 5.9.5-0ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

Building Octave from HG sources shows the package is broken.
I created /usr/lib/x86_64-linux-gnu/pkgconfig/Qt5Help.pc
containing
    prefix=/usr
    exec_prefix=${prefix}
    libdir=${prefix}/lib/x86_64-linux-gnu
    includedir=${prefix}/include/x86_64-linux-gnu/qt5

    Name: Qt5 Help
    Description: Qt Help module
    Version: 5.9.5
    Libs: -lQt5help
    Cflags: -I${includedir}/QtGui -I${includedir}
and pkg-config satisfied --exists.
But, compiling showed some of the files are missing.
...
QtHelp/QHelpEngine: No such file or directory
#include <QtHelp/QHelpEngine>

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libqt5help5 5.9.5-0ubuntu1
ProcVersionSignature: Ubuntu 5.0.0-31.33~18.04.1-generic 5.0.21
Uname: Linux 5.0.0-31-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
Date: Sat Jan 4 00:29:00 2020
InstallationDate: Installed on 2019-08-25 (131 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: qttools-opensource-src
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
tomdean (tomdean) wrote :
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Do you have qttools5-dev package installed?

Changed in qttools-opensource-src (Ubuntu):
status: New → Incomplete
Revision history for this message
tomdean (tomdean) wrote : Re: [Bug 1858261] Re: pkg-config can not find Qt5Help. Some package files are missing

On 1/4/20 12:50 AM, Dmitry Shachnev wrote:
> Do you have qttools5-dev package installed?
>
> ** Changed in: qttools-opensource-src (Ubuntu)
> Status: New => Incomplete
>

 >
 > dpkg -l | grep qttools5-dev
ii qttools5-dev-tools 5.9.5-0ubuntu1 amd64 Qt 5 development tools

Tom Dean

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Then /usr/lib/x86_64-linux-gnu/pkgconfig/Qt5Help.pc is already present. Why did you create it manually?

https://packages.ubuntu.com/bionic/amd64/qttools5-dev/filelist

In your manually created file the include path is wrong. You need to replace -I${includedir}/QtGui with -I${includedir}/QtHelp.

Revision history for this message
tomdean (tomdean) wrote :

On 2020-01-04 01:22, Dmitry Shachnev wrote:
> Then /usr/lib/x86_64-linux-gnu/pkgconfig/Qt5Help.pc is already present.
> Why did you create it manually?
>
> https://packages.ubuntu.com/bionic/amd64/qttools5-dev/filelist
>
> In your manually created file the include path is wrong. You need to
> replace -I${includedir}/QtGui with -I${includedir}/QtHelp.
>

I created the file /usr/lib/x86_64-linux-gnu/pkgconfig/Qt5Help.pc to see
if that was part of the problem.

The file Qt5Help.pc was not on my system.

 > sudo apt-get install libqt5help5 --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
   linux-headers-4.15.0-70 linux-headers-4.15.0-70-generic
   linux-headers-5.0.0-32 linux-headers-5.0.0-32-generic
   linux-image-4.15.0-70-generic linux-image-5.0.0-32-generic
   linux-modules-4.15.0-70-generic linux-modules-5.0.0-32-generic
   linux-modules-extra-4.15.0-70-generic
linux-modules-extra-5.0.0-32-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 15 not
upgraded.
Need to get 0 B/133 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 414587 files and directories currently installed.)
Preparing to unpack .../libqt5help5_5.9.5-0ubuntu1_amd64.deb ...
Unpacking libqt5help5:amd64 (5.9.5-0ubuntu1) over (5.9.5-0ubuntu1) ...
Setting up libqt5help5:amd64 (5.9.5-0ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

 > ls /usr/lib/x86_64-linux-gnu/pkgconfig/Qt5Help.pc
ls: cannot access '/usr/lib/x86_64-linux-gnu/pkgconfig/Qt5Help.pc': No
such file or directory

Several of the .h files are missing.

Tom Dean

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

You reinstalled libqt5help5, but please try also reinstalling qttools5-dev.

That is the package that contains the .pc and header files.

/usr/include/x86_64-linux-gnu/qt5/QtHelp/QHelpEngine is present in that package. If some other includes are missing, please let me know which ones.

Revision history for this message
tomdean (tomdean) wrote :

On 2020-01-04 02:07, Dmitry Shachnev wrote:
> You reinstalled libqt5help5, but please try also reinstalling
> qttools5-dev.
>
> That is the package that contains the .pc and header files.
>
> /usr/include/x86_64-linux-gnu/qt5/QtHelp/QHelpEngine is present in that
> package. If some other includes are missing, please let me know which
> ones.
>

Thanks, now I have the .pc file and QHelpEngine.

I will clean out my octave build tree and see if that fixes all the qt5
issues.

Please mark this as closed.

Tom Dean

Changed in qttools-opensource-src (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.