Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 924607

Summary: dev-qt/qtquicktimeline-6.6.2 error "TARGET Qt::Quick" is not met
Product: Gentoo Linux Reporter: Oleksa <leo>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ionen, leo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Log with CMake Error
qtquicktimeline-no-quiet.patch
QT6-Declarative-OK
QT6-declarative-pvqO-output

Description Oleksa 2024-02-14 22:07:55 UTC
Created attachment 884994 [details]
Log with CMake Error

Hello there!
After update up to 6.6.2 some QT packages unable to compile.

They are:
dev-qt/qtquicktimeline-6.6.2
dev-qt/qtquick3d-6.6.2

I got error:

CMake Error at CMakeLists.txt:21 (message):
Skipping the build as the condition "TARGET Qt::Quick" is not met.

Please, check and fix. Thanks!
Comment 1 Ionen Wolkens gentoo-dev 2024-02-14 22:22:47 UTC
Created attachment 884996 [details, diff]
qtquicktimeline-no-quiet.patch

Can't reproduce and both build fine.

Did it somehow not update qtdeclarative:6 first? (it depends on qtdeclarative-6.6.2 so it should, and it's what provides Qt::Quick)

What does `emerge -pvqO qtdeclarative:6` show?

If updated fine, to figure out why it failed would need to drop the QUIET, what does it show if use the attached patch? (can delete the patch after)
Comment 2 Ionen Wolkens gentoo-dev 2024-02-15 08:44:37 UTC
Also, does this file exist?

    /usr/lib64/cmake/Qt6Quick/Qt6QuickConfig.cmake

Just in case qtdeclarative didn't get installed properly, Qt's build system can be fickle and do this sometime (we try to prevent a few cases of this but there could be more).
Comment 3 Oleksa 2024-02-15 09:15:08 UTC
Hello Ionen!
Thank You for answer.

>>Did it somehow not update qtdeclarative:6 first?
>>(it depends on qtdeclarative-6.6.2 so it should,
>>and it's what provides Qt::Quick)

Yes, qtdeclarative:6 was updated first (please, see screenshot attached)

>>What does `emerge -pvqO qtdeclarative:6` show?

Please see screen attached

>>Also, does this file exist?
>>/usr/lib64/cmake/Qt6Quick/Qt6QuickConfig.cmake

No, it does not.
Just folder Qt6Quick does not exists

These folders are present:

/usr/lib64/cmake/Qt6Quick3D:
/usr/lib64/cmake/Qt6Quick3DAssetImport:
/usr/lib64/cmake/Qt6Quick3DAssetUtils:
/usr/lib64/cmake/Qt6Quick3DEffects:
/usr/lib64/cmake/Qt6Quick3DGlslParserPrivate:
/usr/lib64/cmake/Qt6Quick3DHelpers:
/usr/lib64/cmake/Qt6Quick3DHelpersImpl:
/usr/lib64/cmake/Qt6Quick3DIblBaker:
/usr/lib64/cmake/Qt6Quick3DParticleEffects:
/usr/lib64/cmake/Qt6Quick3DParticles:
/usr/lib64/cmake/Qt6Quick3DRuntimeRender:
/usr/lib64/cmake/Qt6Quick3DTools:
/usr/lib64/cmake/Qt6Quick3DUtils:
/usr/lib64/cmake/Qt6QuickTimeline:
Comment 4 Oleksa 2024-02-15 09:16:19 UTC
Created attachment 885006 [details]
QT6-Declarative-OK
Comment 5 Oleksa 2024-02-15 09:17:00 UTC
Created attachment 885007 [details]
QT6-declarative-pvqO-output
Comment 6 Ionen Wolkens gentoo-dev 2024-02-15 09:24:40 UTC
Do you still have the build.log for qtdeclarative? Something clearly went wrong there.

Re-emerging it (emerge -1 qtdeclarative:6) may still do the same to allow seeing what happened.
Comment 7 Ionen Wolkens gentoo-dev 2024-02-15 09:36:36 UTC
Think the only way qtdeclarative would skip Quick is if this failed:

    if(TARGET Qt::Gui AND TARGET Qt::qsb AND QT_FEATURE_qml_animation)
        add_subdirectory(quick)

Do these files exist?

    /usr/lib64/cmake/Qt6Gui/Qt6GuiConfig.cmake
    /usr/lib64/cmake/Qt6ShaderTools/Qt6ShaderToolsConfig.cmake

(possible that the actual problem goes back further packages -- I suspect your *FLAGS may possibly have broken something somewhere)
Comment 8 Oleksa 2024-02-15 09:48:33 UTC
Re-compiling rignt now qtdeclarative:6 - it's sloooowly
---
gentoo-plasma ~ #
gentoo-plasma ~ # ls -la  /usr/lib64/cmake/Qt6Gui/Qt6GuiConfig.cmake
-rw-r--r-- 1 root root 6009 Feb 14 16:02 /usr/lib64/cmake/Qt6Gui/Qt6GuiConfig.cmake
gentoo-plasma ~ #
gentoo-plasma ~ #
gentoo-plasma ~ # ls -la     /usr/lib64/cmake/Qt6ShaderTools/Qt6ShaderToolsConfig.cmake
-rw-r--r-- 1 root root 6497 Feb 14 19:33 /usr/lib64/cmake/Qt6ShaderTools/Qt6ShaderToolsConfig.cmake
gentoo-plasma ~ #
gentoo-plasma ~ #


Yes, both files in place
Comment 9 Ionen Wolkens gentoo-dev 2024-02-15 10:42:45 UTC
Been staring at qtdeclarative's cmake files but have no idea how it could've skipped Quick under these conditions (even with same *FLAGS).

Hopefully your rebuild should restore it, not that it'll answer what happened.

Should be seeing this early in the qtdeclarative:6 build:

    Qt Quick:
      AnimatedImage item ..................... yes
      Canvas item ............................ yes
      Support for Qt Quick Designer .......... yes
    ...

rather than

    Qt Quick:
      Qt Quick support ....................... no
Comment 10 Oleksa 2024-02-15 11:19:56 UTC
Ionen, looks like issue fixes after re-compile qtdeclarative:6
Next, I got similar issue with dev-qt/qtlocation (with CMakeLists.txt missed)
Then I have re-compiled packages in deps again and problem was solved
Thank You very much for help!
Comment 11 Ionen Wolkens gentoo-dev 2024-02-15 11:46:39 UTC
Glad to hear it's sorted then.

Would've liked to figure out how this happened (there may be a real issue to fix) but it'll probably be difficult if the issue went away and haven't heard of anyone else run into this with the 6.6.2 upgrade so far.

Guess I'll close this for now, will just keep it in mind.