Error when compling Qt 5.15.2
Solved
General and Desktop
-
I'm using conan to compile qt (among other things) and I get the following error:
The reason turned out to be an extra line in a seemingly generated file called
qmimeprovider_database
:
This second extra line in
qmimeprovider_database
is coming from my powershell profile. Basically, I'm writingWrite-Host
with the time it took to load the profile.My question is, is this a bug?
-
@Palli , what happens is that qmake runs a command like
cmd /c mimetypes\mime\generate.bat mimetypes/mime/packages/freedesktop.org.xml > qmimeprovider_database.cpp
generate.bat, in turn, relies on powershell:
:: No Compression and no Perl :: Just hex-dump with Powershell powershell -ExecutionPolicy Bypass %me%hexdump.ps1 %1 %1 exit /b %errorlevel%
So yeah, if you have a setup where above powershell call will result in additional output, this will break the build.
Is it a bug? Maybe, but it's unlikely that this still will be changed, as the code got rewritten in Qt 6.
-