-
Notifications
You must be signed in to change notification settings - Fork 267
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
Qt5: qmlcachegen.exe: Bad address #1584
Comments
Please advise how to make progress here. I tried mentioning this in #msys2 IRC but got no reply at that time. |
I'm not sure atm as I haven't had time to test and debug anything, one thing you might want to do if you have time and will power to look at qt stuff is find any mention of qmlcache under the qt folders or under the local folder and look for a file that ends or begins with pf, it's been a while since I looked for it to fix the same error for another qml* program |
I guess you might mean: local32/mkspecs/features/qmlcache.prf |
We weren’t able to properly fix this yet. The workaround does not work in all cases. |
based on my guesses, the main reason why this occurs is that upstream qt does not consider msys2+mingw-w64 a supported configuration, so they hardcode assumptions for the windows platform |
Rather they even mislabeled mingw-w64 as MinGW, which can be considered an offense to both projects. https://doc.qt.io/qt-5/windows.html#supported-configurations |
We mostly had this problem with Windows CI. As a workaround we disabled qtquickcompiler: monero-project/monero-gui#2921 |
Now I wonder if we can do that with qt5 and vlc |
There may be some other workarounds. I'll share what I tried so far and works in other project where I use Qt and I have the same error message One way: Standalone build of the loader with command below and then re-running the build process
Another way: Add a small delay before calling qmlcachegen Find in the build\Makefile.Release
Replace:
With:
|
Are the makefiles that bad? Do they not have the target dependencies properly set? |
Seems to be an issue with Qt running on MSYS. Also as an update, the |
Maybe some background task in Windows (e.g. Defender or an Explorer extension) blocks access to files just long enough to annoy an MSYS2 task. |
I think I might have a fix for this, by making qt5 build those tools as static as mentioned https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW I think it might be that those tools were loading the wrong dlls |
similar error here: msys2/MINGW-packages#7528 (comment) so likely a msys2 runtime bug
|
Sometimes when compiling a Qt5 project for the first time, one of the projects fails creating cache files. One example:
logs.zip
You can find this issue reported for MSYS2 in several locations, one is "monero". They made an interesting discovery and created a workaround by including a shell script as source. One suspects the reason in the MinGW version of make.
The text was updated successfully, but these errors were encountered: