Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476578 - [qt overlay] dev-util/cmake - Qt5 found, but uses Qt4's uic version (/usr/bin/uic)
Summary: [qt overlay] dev-util/cmake - Qt5 found, but uses Qt4's uic version (/usr/bin...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-11 20:45 UTC by Stefan Böhmann
Modified: 2013-07-14 10:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Qt5WidgetsConfig.cmake (Qt5WidgetsConfig.cmake,4.64 KB, text/x-cmake)
2013-07-13 13:18 UTC, Stefan Böhmann
Details
Qt5WidgetsConfigExtras.cmake (Qt5WidgetsConfigExtras.cmake,348 bytes, text/x-cmake)
2013-07-13 13:19 UTC, Stefan Böhmann
Details
Qt5WidgetsConfigVersion.cmake (Qt5WidgetsConfigVersion.cmake,307 bytes, text/x-cmake)
2013-07-13 13:20 UTC, Stefan Böhmann
Details
Qt5WidgetsMacros.cmake (Qt5WidgetsMacros.cmake,2.63 KB, text/x-cmake)
2013-07-13 13:20 UTC, Stefan Böhmann
Details
List of files installed by QtWidgets (equery f qtwidgets output) (qtwidgets_files.txt,24.38 KB, text/plain)
2013-07-13 13:22 UTC, Stefan Böhmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Böhmann 2013-07-11 20:45:28 UTC
With Qt5 (5.1.0 from qt overlay) a cmake based project can find the right Qt version (if Qt5 and Qt4 is installed) and can compile and link basic code. 

But the build fails, when I use ui files (Qt Designer files) in my Qt5 project. Looks like cmake then uses the wrong uic binary (/usr/bin/uic instead of /usr/lib64/qt5/bin/uic). Therefor it generates code with an QtCore/QAction include instead of the right QtWidgets/QAction include and the compile fails. 

Maybe similar applies for other Qt executables (rcc, moc, ...).

Reproducible: Always
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2013-07-11 23:44:14 UTC
Attach the cmake files installed by qtwidgets please
Comment 2 Stefan Böhmann 2013-07-13 13:18:46 UTC
Created attachment 353202 [details]
Qt5WidgetsConfig.cmake

1 of 4 cmake files installed by QtWidgets into /usr/lib64/cmake/Qt5Widgets/
Comment 3 Stefan Böhmann 2013-07-13 13:19:31 UTC
Created attachment 353204 [details]
Qt5WidgetsConfigExtras.cmake

2 of 4 cmake files installed by QtWidgets into /usr/lib64/cmake/Qt5Widgets/
Comment 4 Stefan Böhmann 2013-07-13 13:20:04 UTC
Created attachment 353206 [details]
Qt5WidgetsConfigVersion.cmake

3 of 4 cmake files installed by QtWidgets into /usr/lib64/cmake/Qt5Widgets/
Comment 5 Stefan Böhmann 2013-07-13 13:20:27 UTC
Created attachment 353208 [details]
Qt5WidgetsMacros.cmake

4 of 4 cmake files installed by QtWidgets into /usr/lib64/cmake/Qt5Widgets/
Comment 6 Stefan Böhmann 2013-07-13 13:22:20 UTC
Created attachment 353210 [details]
List of files installed by QtWidgets (equery f qtwidgets output)
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2013-07-13 14:31:11 UTC
In the second file you attached there's

    set(imported_location "${_qt5Widgets_install_prefix}/lib64/qt5/bin/uic")

so the path looks good to me.

Can you attach a testcase that reproduces the failure please?
Comment 8 Stefan Böhmann 2013-07-13 20:16:36 UTC
Sorry guys. It turned out that there was an error in my makefile. I had forgotten to call find_package(Qt5Widgets), but the error message has put me on the wrong track.

Thank you for your efforts!