Logo

dev-resources.site

for different kinds of informations.

Fedora - KDE development journey (Qt5Qml / qmake)

Published at
12/14/2020
Categories
kde
linux
dev
qt
Author
robbinespu
Categories
4 categories in total
kde
open
linux
open
dev
open
qt
open
Author
10 person written this
robbinespu
open
Fedora - KDE development journey (Qt5Qml / qmake)

Qt5Qml qt5-qtdeclarative-devel

I getting compiler error when trying to build ki18n The error log said:

$ cat ~/kde/src/log/2020-10-05-02/ki18n/cmake.log     
# kdesrc-build running: 'cmake' '/home/rnm/kde/src/ki18n' '-G' 'Unix Makefiles' '-DCMAKE_BUILD_TYPE=RelWithDebInfo' '-DBUILD_TESTING=TRUE' '-DCMAKE_CXX_FLAGS:STRING=-pipe' '-DCMAKE_INSTALL_PREFIX=/home/rnm/kde/usr'
# from directory: /home/rnm/kde/build/ki18n
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 

Installing in /home/rnm/kde/usr. Run /home/rnm/kde/build/ki18n/prefix.sh to set the environment for KI18n.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
CMake Error at CMakeLists.txt:42 (find_package):
  Could not find a package configuration file provided by "Qt5Qml" (requested
  version 5.12.0) with any of the following names:

    Qt5QmlConfig.cmake
    qt5qml-config.cmake

  Add the installation prefix of "Qt5Qml" to CMAKE_PREFIX_PATH or set
  "Qt5Qml_DIR" to a directory containing one of the above files. If "Qt5Qml"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring incomplete, errors occurred!

Enter fullscreen mode Exit fullscreen mode

Where the heck is โ€œQt5Qmlโ€? I try my luck and I am right, the package from repository that I need to be install are qt5-qtdeclarative-devel

$ sudo dnf install qt5-qtdeclarative-devel

Enter fullscreen mode Exit fullscreen mode

Let try to build now

$ kdesrc-build ki18n
Updating sysadmin-repo-metadata (to branch master)
        Stashing local changes if any...

Building extra-cmake-modules from frameworks (1/2)
        Updating extra-cmake-modules (to branch master)
        Stashing local changes if any...
        No changes to extra-cmake-modules source, proceeding to build.
        Running cmake targeting Unix Makefiles...
        Compiling... succeeded (after 0 seconds)
        Installing.. succeeded (after 0 seconds)

Building ki18n from frameworks (2/2)
        No source update, but the last configure failed
        Updating ki18n (to branch master)
        Stashing local changes if any...
        Source update complete for ki18n: no files affected
        Preparing build system for ki18n.
        Removing files in build directory for ki18n
        Old build system cleaned, starting new build system.
        Running cmake targeting Unix Makefiles...
        Compiling... succeeded (after 45 seconds)
        Note: - 2 - compile warnings
        Installing.. succeeded (after 1 second)

<<< PACKAGES SUCCESSFULLY BUILT >>>
extra-cmake-modules
ki18n

Removing 1 out of 2 old log directories...

:-)

Enter fullscreen mode Exit fullscreen mode

nice to see that smiley.

qmake == qmake-qt5

I trying to build KDE dolphin but getting error said:

$ kdesrc-build dolphin
Cloning sysadmin-repo-metadata

Unable to find qmake. This program is absolutely essential for building the modules: 
knotifications plasma-wayland-protocols kcoreaddons
extra-cmake-modules kdesignerplugin kinit kparts kdnssd plasma-framework 
kitemviews kservice kauth kdoctools ktextwidgets kpackage kbookmarks kio 
polkit-qt-1 kirigami kross kiconthemes kconfigwidgets kcodecs kglobalaccel 
ktexteditor kunitconversion kguiaddons kdeclarative kconfig kfilemetadata 
kactivities kded karchive solid kwindowsystem knewstuff dolphin kjobwidgets 
oxygen-icons5 kidletime kpty kcompletion kwidgetsaddons kxmlgui kcrash attica 
kemoticons threadweaver kwayland.

Please ensure the development packages for
Qt are installed by using your distribution's package manager.

 * Aborting now to save a lot of wasted time.
 * export KDESRC_BUILD_IGNORE_MISSING_PROGRAMS=1 and re-run (perhaps with --no-src)
 * to continue anyways. If this check was in error please report a bug against
 * kdesrc-build at https://bugs.kde.org/

Enter fullscreen mode Exit fullscreen mode

So I asked about this on [email protected] mailing list properly. The hint are to check with dnf provides '*/bin/qmake' so the correct package I was looking for are โ€œqt5-qtbase-develโ€

$ dnf provides qmake-qt5
Last metadata expiration check: 0:27:48 ago on Mon 05 Oct 2020 03:35:28 PM +08.
qt5-qtbase-devel-5.15.1-5.fc34.i686 : Development files for qt5-qtbase
Repo : rawhide
Matched from:
Filename : /usr/bin/qmake-qt5

qt5-qtbase-devel-5.15.1-5.fc34.x86_64 : Development files for qt5-qtbase
Repo : rawhide
Matched from:
Filename : /usr/bin/qmake-qt5

Enter fullscreen mode Exit fullscreen mode

another good hint from Rex Dieter to just use builddep to find the requirement / dependencies / packages that needed to build the target software as example:

$ sudo dnf builddep dolphin --assumeno
enabling rawhide-modular-source repository
enabling rawhide-source repository
Fedora - Modular Rawhide - Developmental packages for the next Fedora release 509 B/s | 3.7 kB 00:07    
Fedora - Modular Rawhide - Developmental packages for the next Fedora release 289 kB/s | 481 kB 00:01    
Fedora - Modular Rawhide - Source 114 kB/s | 148 kB 00:01    
Fedora - Rawhide - Developmental packages for the next Fedora release 17 kB/s | 18 kB 00:01    
Fedora - Rawhide - Developmental packages for the next Fedora release 459 kB/s | 6.2 MB 00:13    
Fedora - Rawhide - Source 409 kB/s | 7.2 MB 00:18    
Last metadata expiration check: 0:00:01 ago on Fri 09 Oct 2020 05:06:54 PM +08.
Package desktop-file-utils-0.26-2.fc33.x86_64 is already installed.
Package libappstream-glib-0.7.18-1.fc34.x86_64 is already installed.
Package qt5-qtbase-devel-5.15.1-5.fc34.x86_64 is already installed.
Dependencies resolved.
======================================================================================================================================================
 Package Architecture Version Repository Size
======================================================================================================================================================
Installing:
 baloo-widgets-devel x86_64 20.08.1-1.fc34 rawhide 17 k
 extra-cmake-modules noarch 5.74.0-1.fc34 rawhide 373 k
 kf5-baloo-devel x86_64 5.74.0-1.fc34 rawhide 23 k
 kf5-kactivities-devel x86_64 5.74.0-1.fc34 rawhide 21 k
 kf5-kbookmarks-devel x86_64 5.74.0-1.fc34 rawhide 30 k
 kf5-kcmutils-devel x86_64 5.74.0-1.fc34 rawhide 28 k
 kf5-kcompletion-devel x86_64 5.74.0-1.fc34 rawhide 37 k
 kf5-kconfig-devel x86_64 5.74.0-1.fc34 rawhide 48 k
 kf5-kcoreaddons-devel x86_64 5.74.0-1.fc34 rawhide 81 k
 kf5-kcrash-devel x86_64 5.74.0-1.fc34 rawhide 15 k
 kf5-kdbusaddons-devel x86_64 5.74.0-1.fc34 rawhide 21 k
 kf5-kdoctools-devel x86_64 5.74.0-1.fc34 rawhide 17 k
 kf5-kfilemetadata-devel x86_64 5.74.0-1.fc34 rawhide 27 k
 kf5-ki18n-devel x86_64 5.74.0-1.fc34 rawhide 32 k
 kf5-kiconthemes-devel x86_64 5.74.0-1.fc34 rawhide 27 k
 kf5-kinit-devel x86_64 5.74.0-1.fc34 rawhide 12 k
 kf5-kio-devel x86_64 5.74.1-1.fc34 rawhide 218 k
 kf5-knewstuff-devel x86_64 5.74.0-1.fc34 rawhide 56 k
 kf5-knotifications-devel x86_64 5.74.0-1.fc34 rawhide 32 k
 kf5-kparts-devel x86_64 5.74.0-1.fc34 rawhide 86 k
 kf5-ktextwidgets-devel x86_64 5.74.0-1.fc34 rawhide 32 k
 kf5-kwindowsystem-devel x86_64 5.74.0-1.fc34 rawhide 54 k
 kf5-rpm-macros noarch 5.74.0-1.fc34 rawhide 11 k
 kf5-solid-devel x86_64 5.74.0-1.fc34 rawhide 32 k
 phonon-qt5-devel x86_64 4.11.1-6.fc33 rawhide 87 k
Installing dependencies:
 kf5-attica-devel x86_64 5.74.0-1.fc34 rawhide 412 k
 kf5-kauth-devel x86_64 5.74.0-1.fc34 rawhide 31 k
 kf5-kcodecs-devel x86_64 5.74.0-1.fc34 rawhide 26 k
 kf5-kconfig x86_64 5.74.0-1.fc34 rawhide 30 k
 kf5-kconfigwidgets-devel x86_64 5.74.0-1.fc34 rawhide 48 k
 kf5-kio x86_64 5.74.1-1.fc34 rawhide 34 k
 kf5-kitemviews-devel x86_64 5.74.0-1.fc34 rawhide 27 k
 kf5-kjobwidgets-devel x86_64 5.74.0-1.fc34 rawhide 19 k
 kf5-kservice-devel x86_64 5.74.0-1.fc34 rawhide 43 k
 kf5-kwidgetsaddons-devel x86_64 5.74.0-1.fc34 rawhide 103 k
 kf5-kxmlgui-devel x86_64 5.74.0-1.fc34 rawhide 52 k
 kf5-sonnet x86_64 5.74.0-1.fc34 rawhide 20 k
 kf5-sonnet-devel x86_64 5.74.0-1.fc34 rawhide 26 k
 perl-Any-URI-Escape noarch 0.01-22.fc33 rawhide 11 k
 qt5-linguist x86_64 5.15.1-1.fc34 rawhide 872 k

Transaction Summary
======================================================================================================================================================
Install 40 Packages

Total download size: 3.1 M
Installed size: 9.8 M
Operation aborted.

Enter fullscreen mode Exit fullscreen mode

You can read more here

kde Article's
30 articles in total
Favicon
(Quick-note) Troubleshooting Dual Monitor Issues on KDE on Ubuntu/ Linux Mint
Favicon
bash: No such file or directory
Favicon
How To Unhide Titlebars on Maximised Windows in KDE Plasma 6
Favicon
DinaWall 0.2
Favicon
How to enable auto dark mode (night theme) in KDE Plasma
Favicon
Using KConfig with Rust
Favicon
Bitflags in Rust
Favicon
Season of KDE 2022
Favicon
Creating Rust/QML Project using Templates
Favicon
My sleek and modern Linux development machine in 2021
Favicon
Activate USB Wi-Fi Receiver from Terminal
Favicon
KDE Development with Podman
Favicon
My KDE Workfloaw
Favicon
How to recover KDE if it doesn't load after updating FreeBSD from 12.x to 13.0-RELEASE
Favicon
Fuck FreeBSD
Favicon
The state of Linux as a daily use OS in 2021
Favicon
SPOTIFY SYSTEM TRAY [KDE]
Favicon
Fedora - KDE development journey (Qt5X11Extras)
Favicon
Fedora - KDE development journey (Qt5UiPlugin)
Favicon
Fedora - KDE development journey (Qt5Qml / qmake)
Favicon
KDE vs GNOME
Favicon
Setting up Arch Linux with KDE Plasma in Windows Subsystem for Linux 2
Favicon
โš™ My Arch Linux setup
Favicon
Writing a KDE Plasmoid to display JioFi Stats
Favicon
KDE Plasma & ssh keys
Favicon
Trying out KDE
Favicon
My (k)Ubuntu (OSX look alike) desktop setup
Favicon
KDE Neon on 2017 MacBook Air
Favicon
Script your Yakuake with default tabs
Favicon
How to execute Firefox with support for KDE filepicker

Featured ones: