Fedora - KDE 개발 여정(Qt5Qml/qmake)

9469 단어 kdeqtlinuxdev

Qt5Qml qt5-qt선언적 개발



빌드를 시도할 때 컴파일러 오류가 발생합니다ki18n. 오류 로그에 다음과 같이 표시됩니다.

$ 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!



"Qt5Qml"은 어디에 있습니까? 나는 내 운을 시험해 보았고 내가 옳았다. 내가 설치해야 하는 저장소의 패키지는 qt5-qtdeclarative-devel
$ sudo dnf install qt5-qtdeclarative-devel



지금 빌드를 시도하자

$ 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...

:-)



웃는 모습이 보기 좋습니다.

qmake == qmake-qt5



KDE 돌고래를 만들려고하는데 오류가 발생했습니다.

$ 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/



그래서 [email protected] 메일링 리스트에 제대로 물어봤습니다. 힌트는 dnf provides '*/bin/qmake'로 확인하는 것이므로 내가 찾던 올바른 패키지는 "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



Rex Dieter의 또 다른 좋은 힌트는 builddep를 사용하여 대상 소프트웨어를 빌드하는 데 필요한 요구 사항/종속성/패키지를 예로 들 수 있습니다.

$ 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.



더 읽을 수 있습니다here

좋은 웹페이지 즐겨찾기