Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error when compling Qt 5.15.2
Qt 6.11 is out! See what's new in the release blog

Error when compling Qt 5.15.2

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 519 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Palli
    wrote on last edited by
    #1

    I'm using conan to compile qt (among other things) and I get the following error:
    BuildQtWithConanMimeError.png

    The reason turned out to be an extra line in a seemingly generated file called qmimeprovider_database:
    BuildQtWithConanMimeReason.png

    This second extra line in qmimeprovider_database is coming from my powershell profile. Basically, I'm writing Write-Host with the time it took to load the profile.

    My question is, is this a bug?

    kkoehneK 1 Reply Last reply
    0
    • P Palli

      I'm using conan to compile qt (among other things) and I get the following error:
      BuildQtWithConanMimeError.png

      The reason turned out to be an extra line in a seemingly generated file called qmimeprovider_database:
      BuildQtWithConanMimeReason.png

      This second extra line in qmimeprovider_database is coming from my powershell profile. Basically, I'm writing Write-Host with the time it took to load the profile.

      My question is, is this a bug?

      kkoehneK Offline
      kkoehneK Offline
      kkoehne
      Moderators
      wrote on last edited by
      #2

      @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.

      Director R&D, The Qt Company

      1 Reply Last reply
      2
      • P Palli has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved