Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
amarok-3.1.0 qt6 CMake Error
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3516
Location: Berlin

PostPosted: Fri Sep 06, 2024 6:43 am    Post subject: amarok-3.1.0 qt6 CMake Error Reply with quote

Hallo, ich habe das ebuild von hier https://gpo.zugaina.org/media-sound/amarok
Code:

gpo.zugaina.org
Search Portage & Overlays:
Newest News Repository news GLSAs Browse USE Flags Overlays More...
media-sound/amarok
Advanced audio player based on KDE frameworks

    https://amarok.kde.org/

    amarok-9999
    ipod lastfm mariadb mtp podcast wikipedia debug +handbook

    View      Download      Browse     License: GPL-2   
    Overlay: kde
    amarok-3.1.0
    ~amd64 ~arm64 ~ppc64 ~riscv ~x86
    ipod lastfm mtp +mariadb wikipedia qt5 qt6 podcast debug +handbook test

    View      Download      Browse     License: GPL-2   
    Overlay: gentoo-zh
    amarok-3.0.0
    ~amd64
    ipod lastfm mariadb mtp podcast wikipedia debug +handbook

    View      Download      Browse     License: GPL-2   
    Overlay: robert7k

ChangeLog USE Flags Dependencies Reverse Deps Related Bugs



gpo.zugaina.org - An unofficial overlays portage website
"Gentoo" is a trademark of Gentoo Foundation, Inc.
Website code from Mike Valstar and Ycarus
Gentoo Portage Overlays by Ycarus/Zugaina.org
Close

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

EAPI=8

ECM_HANDBOOK="optional"
ECM_TEST="true"
KFMIN=6.5.0
QTMIN=6.7.2
inherit ecm gear.kde.org

DESCRIPTION="KDE calculator"
HOMEPAGE="https://apps.kde.org/kcalc/"

LICENSE="GPL-2" # TODO: CHECK
SLOT="6"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
IUSE="ipod lastfm mtp +mariadb wikipedia qt5 qt6 podcast"

RESTRICT="mirror"

REQUIRED_USE="^^ ( qt5 qt6 )"

SRC_URI="https://invent.kde.org/multimedia/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"

DEPEND="

   virtual/mysql
   media-libs/taglib-extras
   media-libs/taglib
   media-libs/phonon[qt5?,qt6?]

   qt6? (
      dev-qt/qttools:6
      dev-qt/qt5compat:6
      >=dev-qt/qtbase-${QTMIN}:6[gui,widgets,xml]
      dev-qt/qtdeclarative:6
      >=kde-frameworks/karchive-${KFMIN}:6
      >=kde-frameworks/kcodecs-${KFMIN}:6
      >=kde-frameworks/kconfig-${KFMIN}:6
      >=kde-frameworks/kconfigwidgets-${KFMIN}:6
      >=kde-frameworks/kcoreaddons-${KFMIN}:6
      >=kde-frameworks/kcrash-${KFMIN}:6
      >=kde-frameworks/kdbusaddons-${KFMIN}:6
      >=kde-frameworks/kdeclarative-${KFMIN}:6
      >=kde-frameworks/kdnssd-${KFMIN}:6
      >=kde-frameworks/kdoctools-${KFMIN}:6
      >=kde-frameworks/kglobalaccel-${KFMIN}:6
      >=kde-frameworks/kguiaddons-${KFMIN}:6
      >=kde-frameworks/ki18n-${KFMIN}:6
      >=kde-frameworks/kiconthemes-${KFMIN}:6
      >=kde-frameworks/kcmutils-${KFMIN}:6
      >=kde-frameworks/kio-${KFMIN}:6
      >=kde-frameworks/knotifications-${KFMIN}:6
      >=kde-frameworks/kpackage-${KFMIN}:6
      >=kde-frameworks/solid-${KFMIN}:6
      >=kde-frameworks/ktexteditor-${KFMIN}:6
      >=kde-frameworks/threadweaver-${KFMIN}:6
      >=kde-frameworks/kwidgetsaddons-${KFMIN}:6
      >=kde-frameworks/kwindowsystem-${KFMIN}:6

      kde-frameworks/kcolorscheme:6
      kde-frameworks/kirigami:6
      kde-frameworks/kstatusnotifieritem:6
   )

   qt5? (

      dev-qt/linguist-tools
      dev-qt/qtcore:5
      dev-qt/qtdeclarative:5
      dev-qt/qtgui:5
      dev-qt/qtwidgets:5
      dev-qt/qtxml:5
      dev-qt/qtsql:5

      kde-frameworks/karchive:5
      kde-frameworks/kcodecs:5
      kde-frameworks/kconfig:5
      kde-frameworks/kconfigwidgets:5
      kde-frameworks/kcoreaddons:5
      kde-frameworks/kcrash:5
      kde-frameworks/kdbusaddons:5
      kde-frameworks/kdeclarative:5
      kde-frameworks/kdnssd:5
      kde-frameworks/kdoctools:5
      kde-frameworks/kglobalaccel:5
      kde-frameworks/kguiaddons:5
      kde-frameworks/ki18n:5
      kde-frameworks/kiconthemes:5
      kde-frameworks/kcmutils:5
      kde-frameworks/kio:5
      kde-frameworks/knotifications:5
      kde-frameworks/kpackage:5
      kde-frameworks/solid:5
      kde-frameworks/ktexteditor:5
      kde-frameworks/threadweaver:5
      kde-frameworks/kwidgetsaddons:5
      kde-frameworks/kwindowsystem:5

      kde-frameworks/kirigami:5

      ipod? ( media-libs/libmygpo-qt )
   )

"
RDEPEND="${DEPEND}"

RDEPEND="${DEPEND}
   media-video/ffmpeg
"

S="${WORKDIR}/${PN}-v${PV}"

src_configure() {
   local mycmakeargs=(
      -DBUILD_WITH_QT6=$(usex qt6)
      -DWITH_MP3Tunes=OFF
      -DWITH_PLAYER=ON
      -DWITH_UTILITIES=ON
      -DCMAKE_DISABLE_FIND_PACKAGE_Googlemock=ON
      -DCMAKE_DISABLE_FIND_PACKAGE_LibOFA=ON
      -DCMAKE_DISABLE_FIND_PACKAGE_MySQLe=ON
      -DWITH_IPOD=$(usex ipod)
      -DWITH_GPODDER=OFF
      $(cmake_use_find_package lastfm LibLastFm)
#      $(cmake_use_find_package !mariadb MySQL)
      $(cmake_use_find_package mtp Mtp)
      $(cmake_use_find_package wikipedia Qt6WebEngineWidgets)
   )
   use ipod && mycmakeargs+=( DWITH_GDKPixBuf=ON )
   use qt5 &&  mycmakeargs+=( $(cmake_use_find_package podcast Mygpo-qt5) )

   ecm_src_configure
}

pkg_postinst() {
   ecm_pkg_postinst

   pkg_is_installed() {
      echo "${1} ($(has_version ${1} || echo "not ")installed)"
   }

   db_name() {
      use mariadb && echo "MariaDB" || echo "MySQL"
   }

   optfeature "Audio CD support" "kde-apps/audiocd-kio:6"

   if [[ -z ${REPLACING_VERSIONS} ]]; then
      elog "You must configure ${PN} to use an external database server."
      elog " 1. Make sure either MySQL or MariaDB is installed and configured"
      elog "    Checking local system:"
      elog "      $(pkg_is_installed dev-db/mariadb)"
      elog "      $(pkg_is_installed dev-db/mysql)"
      elog "    For preliminary configuration of $(db_name) Server refer to"
      elog "    https://wiki.gentoo.org/wiki/$(db_name)#Configuration"
      elog " 2. Ensure 'mysql' service is started and run:"
      elog "    # emerge --config amarok"
      elog " 3. Run ${PN} and go to 'Configure Amarok - Database' menu page"
      elog "    Check 'Use external MySQL database' and press OK"
      elog
      elog "For more information please read:"
      elog "  https://community.kde.org/Amarok/Community/MySQL"
   fi
}

pkg_config() {
   # Create external mysql database with amarok default user/password
   local AMAROK_DB_NAME="amarokdb"
   local AMAROK_DB_USER_NAME="amarokuser"
   local AMAROK_DB_USER_PWD="password"

   einfo "Initializing ${PN} MySQL database 'amarokdb':"
   einfo "If prompted for a password, please enter your MySQL root password."
   einfo

   if [[ -e "${EROOT}"/usr/bin/mysql ]]; then
      "${EROOT}"/usr/bin/mysql -u root -p -e "CREATE DATABASE IF NOT EXISTS ${AMAROK_DB_NAME}; GRANT ALL PRIVILEGES ON ${AMAROK_DB_NAME}.* TO '${AMAROK_DB_USER_NAME}' IDENTIFIED BY '${AMAROK_DB_USER_PWD}'; FLUSH PRIVILEGES;"
   fi
   einfo "${PN} MySQL database 'amarokdb' successfully initialized!"
}
Code:
ebuild  N    ~] media-sound/amarok-3.1.0:6::local  USE="mariadb mtp qt6 -debug -handbook -ipod -lastfm -podcast -qt5 -test -wikipedia"

Code:
-- Found KF6KIO: /usr/lib64/cmake/KF6KIO/KF6KIOConfig.cmake (found version "6.5.0")
-- Found KF6Notifications: /usr/lib64/cmake/KF6Notifications/KF6NotificationsConfig.cmake (found version "6.5.0")
-- Found KF6Package: /usr/lib64/cmake/KF6Package/KF6PackageConfig.cmake (found version "6.5.0")
-- Found KF6Solid: /usr/lib64/cmake/KF6Solid/KF6SolidConfig.cmake (found version "6.5.0")
-- Found KF6TextEditor: /usr/lib64/cmake/KF6TextEditor/KF6TextEditorConfig.cmake (found version "6.5.0")
-- Found KF6ThreadWeaver: /usr/lib64/cmake/KF6ThreadWeaver/KF6ThreadWeaverConfig.cmake (found version "6.5.0")
-- Found KF6WidgetsAddons: /usr/lib64/cmake/KF6WidgetsAddons/KF6WidgetsAddonsConfig.cmake (found version "6.5.0")
-- Found KF6WindowSystem: /usr/lib64/cmake/KF6WindowSystem/KF6WindowSystemConfig.cmake (found version "6.5.0")
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find KF6 (missing: DocTools) (found suitable version "6.5.0",
  minimum required is "6.0.0")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/ECM/find-modules/FindKF6.cmake:93 (find_package_handle_standard_args)
  CMakeLists.txt:57 (find_package)

Weiß jemand, was hier fehlt?
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5279

PostPosted: Fri Sep 06, 2024 7:12 am    Post subject: Reply with quote

Laut der der ausgabe vermutlich das hier:

Quote:
Could NOT find KF6 (missing: DocTools)

_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9124

PostPosted: Fri Sep 06, 2024 7:33 am    Post subject: Reply with quote

Wie wär's stattdessen mit KDE overlay?
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5279

PostPosted: Fri Sep 06, 2024 8:46 am    Post subject: Reply with quote

asturm wrote:
Wie wär's stattdessen mit KDE overlay?

Weil dort keine Version für KF6/Qt6 existiert?
Es gibt dort nur https://gitweb.gentoo.org/proj/kde.git/tree/media-sound/amarok/amarok-9999.ebuild
Und das hat nur unterstützung für Qt5/KF5
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9124

PostPosted: Fri Sep 06, 2024 10:07 am    Post subject: Reply with quote

Weil es zumindest bis vor kurzem als nicht fertig bezeichnet war.
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3516
Location: Berlin

PostPosted: Fri Sep 06, 2024 1:49 pm    Post subject: Reply with quote

kdoctools-6.5.0 war/ ist installiert. Ich hatte bisher die Amarok Version 3.1 mit den Abhängigkeiten von kde5 installiert. Jetzt fand ich den Umstieg auf kde6 (das ich schon lange nutze) interessant.
Code:
Cleanup of unused code and various changes that improve Qt6 compatibility but shouldn't affect functionality. (n.b. one won't be able to compile a Qt6 Amarok with 3.1 yet, but perhaps with the eventual 3.2)
OK - warten
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum