Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1691

The assembly for android breaks when there is a "version" file in the root folder of the project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 1.21
    • Platforms: Android
    • None
    • Android
    • 2d85e7fd52 (qbs/qbs/1.22) 2d85e7fd52 (qbs/qbs/master) 2d85e7fd52 (qbs/qbs/1.23) 2d85e7fd52 (qbs/qbs/1.24)

    Description

      When building a project for Android, if there is a "version" file in the root directory of the project, qbs stops with an error:

      In file included from /opt/x-tools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/vector:274:
      In file included from /opt/x-tools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__bit_reference:14:
      In file included from /opt/x-tools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/bit:57:
      In file included from /opt/x-tools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/limits:105:
      In file included from /opt/x-tools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/type_traits:417:
      In file included from /opt/x-tools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/cstddef:37:
      <path_to_my_project>/version:1:1: error: expected unqualified-id
      2.3.3.0
      

      The contents of the "version" file looks like this:

      2.3.3.0
      

      The problem occurred here: https://github.com/qbs/qbs/blob/c1af290c995ef9791731fa59fdb7d24443c6b035/share/qbs/modules/cpp/android-gcc.qbs#L130
      When I changed "" to [] at the end of the line, my project has built.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            kdator Dmitrii Kolpakov
            Votes:
            5 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes