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

QtCreator can not compile the simplest app using qbs

    XMLWordPrintable

Details

    • 265d093c3606839ef90b010774b687ddad4637a1

    Description

      I am trying to build the simplest possible application using qbs.

      Here is my main.cpp: 

      int main() {
       return 0;
      }

      And here is my PrApp.qbs: 

      import qbs
      
      Application {
          Depends { name: "cpp" }
         files: [ "main.cpp" ]
      }
      

      In my system (linux) I have clang 5.0:

      $ clang++-5.0 --version
      clang version 5.0.0-3 (tags/RELEASE_500/final) 
      Target: x86_64-pc-linux-gnu
      Thread model: posix
      InstalledDir: /usr/bin
      
      $ clang-5.0 --version
      clang version 5.0.0-3 (tags/RELEASE_500/final)
      Target: x86_64-pc-linux-gnu
      Thread model: posix
      InstalledDir: /usr/bin

      both of which were added to QtCreator:

      Then I added these two compiler to the kit:

       

      And used the kit to configure the project:

       

       

      And here is the problem, I get these messages in the Issues pan:

      /home/Void/devel/QtCreator/share/qtcreator/qbs/share/qbs/modules/cpp/GenericGCC.qbs:264: warning: The following properties are not set. Set them in your profile or product:
      cpp.architecture: you might want to re-run 'qbs-setup-toolchains'
      cpp.compilerIncludePaths
      cpp.compilerFrameworkPaths
      cpp.compilerLibraryPaths
      
      /home/Void/devel/qtcandqbs/PRApp.qbs:3: warning: Product 'PRApp' had errors and was disabled.

       

      Am I missing something?

       

      Attachments

        1. qtcandqbs_1_ compilers.png
          98 kB
          DimanNe
        2. qtcandqbs_2_kits.png
          98 kB
          DimanNe
        3. qtcandqbs_3_proj.png
          127 kB
          DimanNe
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            dimanne DimanNe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes