Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
1.21
-
None
-
-
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.