Summary: | [qt overlay] =x11-libs/qt-widgets-5.0.0_beta1 fails to build | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Markos Chandras (RETIRED) <hwoarang> |
Component: | New packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chewi |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | [qt overlay] | ||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
build.log for USE="-pch" |
Description
Markos Chandras (RETIRED)
![]() .moc/release-shared/moc_qapplication.cpp:16:2: error: #error "This file was generated using the moc from 5.0.0. It" .moc/release-shared/moc_qapplication.cpp:17:2: error: #error "cannot be used with the include files from this version of Qt." .moc/release-shared/moc_qapplication.cpp:18:2: error: #error "(The moc has changed too much.)" Are you mixing qt modules with different versions? (In reply to comment #1) > .moc/release-shared/moc_qapplication.cpp:16:2: error: #error "This file was > generated using the moc from 5.0.0. It" > .moc/release-shared/moc_qapplication.cpp:17:2: error: #error "cannot be used > with the include files from this version of Qt." > .moc/release-shared/moc_qapplication.cpp:18:2: error: #error "(The moc has > changed too much.)" > > Are you mixing qt modules with different versions? I just tried emerge @qt5-essentials and hit this bug. However, I do have all the Qt4 modules installed if this is what you are asking Try with USE=-pch please And also tell me exactly which qt5 modules you have installed when qt-widgets fails. (In reply to comment #4) > And also tell me exactly which qt5 modules you have installed when > qt-widgets fails. x11-libs/qt-core:5 x11-libs/qt-dbus:5 x11-libs/qt-gui:5 x11-libs/qt-jsbackend:5 x11-libs/qt-network:5 x11-libs/qt-sql:5 x11-libs/qt-test:5 It does not build with USE="-pch" either (build log follows) Created attachment 322936 [details]
build.log for USE="-pch"
Hmm can't reproduce :/ Can you attach qtbase-opensource-src-5.0.0-beta1/src/gui/kernel/qinputmethod.h please? (In reply to comment #7) > Hmm can't reproduce :/ > > Can you attach > qtbase-opensource-src-5.0.0-beta1/src/gui/kernel/qinputmethod.h please? Err... I mean a preprocessed version of that file... Ah I think I got it... The gtkstyle is pulling in the qt4 include paths via x11-libs/cairo[qt4]. This is obviously a recipe for disaster so I'm disabling gtkstyle entirely for qt5 until we find a proper solution. Please pull and try again. Can't you just put in a blocker to cairo[qt4]? Seems to me the most straightforward way. I could also rename that flag in cairo and disable it by default (similar to what we did with gtkstyle). Could this decision be reviewed? The qt4 flag on cairo was masked in the base profile a while back due to numerous problems. See bug #412177. It's already on my to-do list. |