New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mingw-w64-qt5-base (5.7.0-8): CMake qt5_wrap_ui adds Qt5::uic to uic command line #11
Comments
Yes, looks like a bug in the package or the mingw-w64/Windows version of Qt. Since I lately patched the CMake files in order to provide support to use static build with CMake I might have messed something. The latest version (5.7.0-9, found in the repository on GitHub and my binary repo) might work better, but I wouldn't bet on it. AUTOUIC would work in general. I use it in my own projects instead of I'll look into this next week. Until then, you could just not apply the patch You can also play with the installed CMake files. Maybe you find a fix. I can include those changes into the package then. Just in case you can provide a patch, patches are managed here. |
I've tried to find the cause of this and I'm absolutely clueless what goes on. I noticed the following behaviour in /usr/i686-w64-mingw32/lib/cmake/Qt5Widgets/Qt5WidgetsMacros.cmake . I'm not sure if that means anything though:
Will expand ${Qt5Widgets_UIC_EXECUTABLE} to "/usr/i686-w64-mingw32/lib/qt/bin/uic Qt5::uic"
Will expand ${Qt5Widgets_UIC_EXECUTABLE} to "FOO Qt5::uic". This suggests that Qt5::uic is supposed to be replaced by the uic path, which doesn't happen, as it's merely prefixed for some strange reason?!
Will expand ${Qt5Widgets_UIC_EXECUTABLE} to "FOO Qt5::uic BAR"
Will expand ${Qt5Widgets_UIC_EXECUTABLE} to "/usr/i686-w64-mingw32/lib/qt/bin/uic Qt5::uic BAR" As a temporary workaround I'll attempt to switch to AUTOUIC, maybe compile without 0022 and 0020 |
Ok, then I guess my patches are not the source of the problem. But this reminds me of a similar problem with the macros provided by Qt Linguist (part of qt5-tools): Martchus/qttools@1f1a8e6 As you can see I've already found a workaround for this. You might be able to apply the same workaround for uic. |
If this is correct, the following patch might fix the issue: Martchus/qtbase@7e20d46 |
So, does this little change work for you? You don't need to rebuild the package to test, just modify installed file. |
Oh I forgot to get back to this. I've implemented my own hack which was a lot more cruel:
( in /usr/{i686,x86_64}-w64-mingw32/lib/cmake/Qt5Widgets/Qt5WidgetsConfigExtras.cmake ) However, being well aware how annoying it is to reproduce issues, I've also tried your hack (I wouldn't dare to call it a patch) now: It does also work. |
Ok, then I close this. Maybe ask CMake devs. Thanks for feedback and reproducing. |
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
Workaround for same problem as in #11 just for moc and rcc
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
* Otherwise the arguments aren't passed correctly leading to errors like ``` [ 3%] Generating qca_core.moc moc: Too many input files specified: 'Qt5::moc' '/build/qca-qt5/src/qca-2.1.3/include/QtCrypto/qca_safetimer.h' ``` * Just a workaround, not sure what is causing the issue (maybe a CMake bug?) * See Martchus/PKGBUILDs#11 Change-Id: I6fde86d0a3ade37b4376604a1eb6d5723eda8b4c
I'm trying to compile github.com/citra-emu/citra with mingw.
I'm getting the following problem (mingw-w64-qt5-base 5.7.0-8 on both x64 and i686 using the mingw CMake wrappers):
A native Linux build (qt5-base 5.7.0-7 x64) does this:
It appears that CMake
qt5_wrap_ui(UI_HDRS ${UIS})
(or some wrapper invokinguic
) provided by the mingw qt5 is somehow broken?Unfortunately the citra codebase is not AUTOUIC ready, so I did not try it with that yet.
As this issue does not exist natively I'm assuming it's a bug in the package?
Is there anything else you can recommend I should try or is there a known workaround for this issue?
I've tried finding other people who are affected but found nothing yet.
The text was updated successfully, but these errors were encountered: