Error when compling Qt 5.15.2
-
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_databaseis coming from my powershell profile. Basically, I'm writingWrite-Hostwith the time it took to load the profile.My question is, is this a bug?
-
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_databaseis coming from my powershell profile. Basically, I'm writingWrite-Hostwith 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.cppgenerate.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.
-
P Palli has marked this topic as solved on