Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-14250

Qt Creator fails to build QBS projects using non-default Kit

    XMLWordPrintable

Details

    • bcbf0d84179421706b07578b541ff50c3dfdfe62

    Description

      I have QBS project, configured for arm-none-eabi toolchain. It successfully can be built in the Qt Creator 3.3. But when I open it using recent git version (d15e4ff2c9f31f5470c7c7dbc0ef46607e75fa6c) of Qt Creator then targer build fails. Reason QBS uses kit "ARM_989a80" istead of just "ARM". There is no such kit in the settings page, but "ARM" is present (I have configured it in Qt Creator 3.3). I going to QBS section of settings and see, that cpp.compilerPathByLanguage contains

      {"c":"/usr/bin/gcc"...}

      instead of

      {"c":"/usr/bin/arm-none-eabi-gcc"...}

      , but cpp.compilerName is correct: "arm-none-eabi-gcc"
      This is part of toolchains.xml:

       <data>
        <variable>ToolChain.0</variable>
        <valuemap type="QVariantMap">
         <value type="QString" key="ProjectExplorer.GccToolChain.Path">/usr/bin/arm-none-eabi-gcc</value>
         <valuelist type="QVariantList" key="ProjectExplorer.GccToolChain.PlatformCodeGenFlags">
          <value type="QString">-marm</value>
          <value type="QString">-march=armv5</value>
         </valuelist>
         <valuelist type="QVariantList" key="ProjectExplorer.GccToolChain.PlatformLinkerFlags">
          <value type="QString">-marm</value>
          <value type="QString">-march=armv5</value>
         </valuelist>
         <valuelist type="QVariantList" key="ProjectExplorer.GccToolChain.SupportedAbis"/>
         <value type="QString" key="ProjectExplorer.GccToolChain.TargetAbi">arm-unknown-unknown-elf-32bit</value>
         <value type="bool" key="ProjectExplorer.ToolChain.Autodetect">false</value>
         <value type="QString" key="ProjectExplorer.ToolChain.DisplayName">GCC-ARM</value>
         <value type="QString" key="ProjectExplorer.ToolChain.Id">ProjectExplorer.ToolChain.Gcc:{4fe5d9e6-5488-444f-bb14-16538f6d3c06}</value>
        </valuemap>
       </data>
      

      This is part of profiles.xml:

       <data>
        <variable>Profile.2</variable>
        <valuemap type="QVariantMap">
         <value type="bool" key="PE.Profile.AutoDetected">false</value>
         <value type="QString" key="PE.Profile.AutoDetectionSource"></value>
         <valuemap type="QVariantMap" key="PE.Profile.Data">
          <value type="QString" key="Android.GdbServer.Information"></value>
          <value type="QString" key="CMakeProjectManager.KitInformation">CMakeProjectManager.DefaultCMakeTool</v
      alue>
          <value type="QString" key="Debugger.Information">{f918a905-0f25-46c6-bec7-fbc5902bfab1}</value>
          <value type="QString" key="PE.Profile.Device">{9ce625d4-ec3b-466c-a66c-4b0b82317b96}</value>
          <value type="QString" key="PE.Profile.DeviceType">BareMetalOsType</value>
          <valuelist type="QVariantList" key="PE.Profile.Environment"/>
          <value type="QString" key="PE.Profile.SysRoot"></value>
          <value type="QString" key="PE.Profile.ToolChain">ProjectExplorer.ToolChain.Gcc:{4fe5d9e6-5488-444f-bb1
      4-16538f6d3c06}</value>
          <valuemap type="QVariantMap" key="QbsProjectManager.qbs-properties"/>
          <value type="QString" key="QtPM4.mkSpecInformation"></value>
          <value type="int" key="QtSupport.QtInformation">-1</value>
         </valuemap>
         <value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
         <value type="QString" key="PE.Profile.Id">{5e0c4fb6-a16b-4ce2-90c2-9cc8827cfbf8}</value>
         <valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
         <value type="QString" key="PE.Profile.Name">ARM</value>
         <value type="bool" key="PE.Profile.SDK">false</value>
         <valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
        </valuemap>
       </data>
      

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-14250
        # Subject Branch Project Status CR V

        Activity

          People

            hunger Tobias Hunger
            b-s-a Sergey Belyashov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes