Score:1

Why does ./configure not find Qt5? Needed for building phonesim from source

cn flag

Background: I'm trying to build and install ofono-phonesim from source, on Ubuntu 20.04 aarch64, so I can get HFP to work with Pulseaudio 13.99. I'm doing this because of the following: This answer says to go here, however the package there is still unavailable to me, I presume because it's amd64.

However when run ./configure on the repo directory I get notified that Qt is not found, even though I've installed Qt5:

checking for QT... no

configure: error: Qt is required

The line in configure.ac: PKG_CHECK_MODULES(QT, Qt5Core Qt5Gui Qt5Xml Qt5Network Qt5Qml Qt5DBus [Qt5Widgets >= 5.10], dummy=yes, AC_MSG_ERROR(Qt is required))

full console output:

user@machine:~/directory/phonesim$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for QT... no
configure: error: Qt is required

however, I've already installed Qt5:

user@machine:~/directory/phonesim$ dpkg -l | grep libqt5
ii  libqt5concurrent5:arm64                       5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 concurrent module
ii  libqt5core5a:arm64                            5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 core module
ii  libqt5dbus5:arm64                             5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 D-Bus module
ii  libqt5designer5:arm64                         5.12.8-0ubuntu1                        arm64        Qt 5 designer module
ii  libqt5gui5:arm64                              5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 GUI module
ii  libqt5help5:arm64                             5.12.8-0ubuntu1                        arm64        Qt 5 help module
ii  libqt5network5:arm64                          5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 network module
ii  libqt5opengl5:arm64                           5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 OpenGL module
ii  libqt5opengl5-dev:arm64                       5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 OpenGL library development files
ii  libqt5printsupport5:arm64                     5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 print support module
ii  libqt5qml5:arm64                              5.12.8-0ubuntu1                        arm64        Qt 5 QML module
ii  libqt5quick5:arm64                            5.12.8-0ubuntu1                        arm64        Qt 5 Quick library
ii  libqt5quickcontrols2-5:arm64                  5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 Quick Controls 2 library
ii  libqt5quicktemplates2-5:arm64                 5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 Quick Templates 2 library
ii  libqt5sql5:arm64                              5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 SQL module
ii  libqt5svg5:arm64                              5.12.8-0ubuntu1                        arm64        Qt 5 SVG module
ii  libqt5test5:arm64                             5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 test module
ii  libqt5texttospeech5:arm64                     5.12.8-0ubuntu1                        arm64        Speech library for Qt - libraries
ii  libqt5waylandclient5:arm64                    5.12.8-0ubuntu1                        arm64        QtWayland client library
ii  libqt5waylandcompositor5:arm64                5.12.8-0ubuntu1                        arm64        QtWayland compositor library
ii  libqt5widgets5:arm64                          5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 widgets module
ii  libqt5x11extras5:arm64                        5.12.8-0ubuntu1                        arm64        Qt 5 X11 extras
ii  libqt5xdg3:arm64                              3.4.0-1build2                          arm64        Implementation of the XDG Specifications for Qt (shared lib)
ii  libqt5xdgiconloader3:arm64                    3.4.0-1build2                          arm64        Implementation of the XDG Iconloader for Qt (shared lib)
ii  libqt5xml5:arm64                              5.12.8+dfsg-0ubuntu1                   arm64        Qt 5 XML module

How can I make Qt5 visible in this context? A little new to Linux and Autotools, so please and thank you.

Bodo avatar
pt flag
You probably need the development libraries, probably `qtbase5-dev` and maybe more packages with `qt`, `5` and `-dev`.
enwave64 avatar
cn flag
Thanks @Bodo. I've done `sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-dtools` and the system says "already the newest version" for each
Score:1
zw flag

Reproducible method would be an adaptation of already known answer - you compile the software using deb-src from PPA repository:

sudo add-apt-repository -s ppa:smoser/bluetooth
sudo apt-get update
sudo apt-get build-dep ofono-phonesim # will install all dependencies

cd ~/Downloads
apt-get source -b ofono-phonesim
sudo apt-get install ../ofono-phonesim_1.21-16-gadf231a8-0smoser0_arm64.deb

Notes:

  1. you can replace last two commands with yours planned commands such as ./configure, make -j$(nproc) and sudo checkinstall. But I would recommend to use two above last commands as they were written.
  2. I wrote an request for armhf and arm64 builds to PPA owner.
enwave64 avatar
cn flag
Thanks @N0rbert. When I run that command I get "qt5-default is already the newest version (5.12.8+dfsg-0ubuntu1)"
N0rbert avatar
zw flag
Check update above with alternative method.
enwave64 avatar
cn flag
Thanks looks like the installation went well so far, following your exact instructions. `ofono-phonesim -v` shows 1.21. ofono/test/listmodems shows /phonesim now
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.