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

[BareMetal] errors with the opening a custom QBS project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 3.0.0-rc1
    • All Other Issues
    • None
    • * QtCreator v3.0.81, from Git: b75919cb89707502e0b94bb4426530b9bb5fad63
      * QBS, from Git: 8e1cba759fa91d2537bed76eb604c6a26df415b2
      * Host OS: Windows 8x64
      * Target OS: None
      * GCC: v4.7, arm-none-eabi-gcc
    • 97f5b31cc0ab13c200eb1ba1369185827abb357c

    Description

      This continuation of the thread begun on mail-list, can be found here:

      http://lists.qt-project.org/pipermail/qt-creator/2013-November/002953.html

      Short prehistory:

      I try to use the BareMetal plug-in from the QtCreator for creation a
      project for the STM32F4DISCOVERY board with use the QBS on the Windows
      host PC.

      Note: To the attach added the archive of the minimum source project (qbststapp.zip).

      Steps to reproduce a problem:

      1) Add a custom GCC compiler and specify a path to him, e.g.:

      • Name: ARM-GCC
      • Compiler Path (in my case): C:\Program Files (x86)\GNU Tools ARM Embedded\4.72013q3\bin\arm-none-eabi-gcc.exe
      • ABI: arm-unknown-unknown-unknown-32bit

      2) Add a custom GCC debugger and specify a path to him, e.g.:

      • Name: ARM-Debugger
      • Path (in my case): C:\Program Files (x86)\GNU Tools ARM Embedded\4.72013q3\bin\arm-none-eabi-gdb.exe
      • ABI: arm-unknown-unknown-unknown-32bit

      3) Add a custom Kit:

      • Name: ARM-kit
      • Device type: Bare Metal Device
      • Device: Bare Metal Device (default for Bare Metal)
      • Sysroot: Empty
      • Compiler: ARM-GCC
      • Debugger: ARM-Gebugger
      • Qt version: None
      • Qt mkspec: Empty

      Note: I.e. in my case available only one Kit!

      4) At trying to open a "Bare Metal" QBS project (from an attachment) I got an error:

      "C:\Qt\qt-creator-debug-git\share\qtcreator\qbs\share\qbs\modules\cpp\windows-mingw.qbs:7:
      error: TypeError: Result of expression 'qbs.toolchain' [undefined] is
      not an object."

      Thus opens the file "windows-mingw.qbs" and the marker is set on a
      condition:

      Bar.java
      import  qbs1.0
      import  qbs.FileInfo
      import  '../utils.js'  as  ModUtils
      import  "windows.js"  as  Windows
      
      GenericGCC  {
      ==>   condition:  qbs.targetOS.contains("windows")  &&  qbs.toolchain.contains("mingw")
      
      ...
      ...
      ...
      }
      
      

      5) Next, I tried to delete modules the "windows-mingw.qbs" and the
      "windows-msvc.qbs" and re-open the project.
      But in this case I got an other error:

      "E:\git\ng\git\qbststapp\qbstest.qbs:5: error: Module cpp could not be
      loaded."

      Thus opens the qbs file of my project and the marker is set on "depends":

      Bar.java
      import  qbs1.0
      
      Product  {
            type:  "application"
      ==>   Depends  {  name:"cpp"  }
      ...
      ...
      ...
      }
      
      

      Attachments

        1. debuggers.xml
          2 kB
        2. profiles.xml
          2 kB
        3. qbststapp.zip
          90 kB
        4. toolchains.xml
          9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            kuzulis Denis Shienkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes