[QBS] Change in qt-labs/qbs[master]: Make toolchain version in Android NDK flexible.

Yuchen Deng loaden at gmail.com
Wed Jan 14 02:53:16 CET 2015


thx, Jake!
I have changed a little bit for examples/helloworld-complex/hello.qbs

>     Application {
>         name: 'HelloWorld-Complex'
>         *architectures: ["armeabi-v7a"] // add this line*

then I've got this:

> loaden at qpsoft:~/qpSOFT/Projects/Qbs/examples/helloworld-complex$ *qbs
> profile:android*
> ......
> ERROR: The process '/opt/android-ndk/toolchains/arm-linux-androideabi
> *-4.9*/prebuilt/bin/arm-linux-androideabi-gcc' could not be started: No
> such file or directory
> The following products could not be built for configuration android-debug:
> HelloWorld-Complex (*for profile 'android_armeabi-v7a'*)


The `-4.9` should be `-4.8`.
so, I have to add toolchainVersion && platform && hostArch from command
line:

> qbs profile:android Android.ndk.toolchainVersion:4.8
> Android.ndk.hostArch:linux-x86_64 Android.ndk.platform:android-16

It's seems works.
But when I added them into android profile and run `qbs profile:android`
it's does not work.

> qbs config profiles.android.Android.ndk.toolchainVersion 4.8
> qbs config profiles.android.Android.ndk.platform android-16

SO, THE QUESTION:
Why `android` does not be `baseProfile` *for profile 'android_armeabi-v7a'
?*
It's should added `profiles. android_XXX.baseProfile* android` *after run
`qbs-setup-android`, that's right?

2015-01-13 23:24 GMT+08:00 Jake Petroules <jake.petroules at petroules.com>:

> There's no Qt support yet for Android. Also, Android profiles are laid out
> in a particular way -- namely a base Android profile, with additional
> profiles suffixed with _<abi> that contain the properties for each
> supported Android ABI.
>
> Unless you know specifically what you are doing, always use the
> qbs-setup-android tool to create profiles instead of doing it manually.
>
> On Jan 13, 2015, at 4:25 AM, Yuchen Deng <loaden at gmail.com> wrote:
>
> hi, jake
> still I have got some errors:
>
>> loaden at qpsoft:~/qpSOFT/Projects/Qbs/examples/helloworld-complex$ qbs
>> profile:android-qt5
>
> Restoring build graph from disk
>
> Resolving project for configuration android-qt5-debug
>
> ERROR:
>> /home/loaden/qpSOFT/Projects/Qbs/examples/helloworld-complex/hello.qbs:42:5
>> The profile 'android-qt5*_armeabi*' does not exist.
>
> Why auto added the suffix `_armeabi` ?
> Please have a see what's the wrong with my qbs config?
>
> 2015-01-13 0:53 GMT+08:00 Jake Petroules (Code Review) <
> gerrit-noreply at qt-project.org>:
>
>> Jake Petroules has uploaded a new change for review.
>>
>>   https://codereview.qt-project.org/103384
>>
>>
>> Change subject: Make toolchain version in Android NDK flexible.
>> ......................................................................
>>
>> Make toolchain version in Android NDK flexible.
>>
>> This paves the way for Clang-based toolchain support.
>>
>> Change-Id: I426ea434c562a03cd96ece6a3f19e86a2480de07
>> ---
>> M share/qbs/modules/Android/ndk/ndk.qbs
>> M share/qbs/modules/cpp/android-gcc.qbs
>> M src/app/qbs-setup-android/android-setup.cpp
>> 3 files changed, 24 insertions(+), 13 deletions(-)
>>
>>
>>   git pull ssh://codereview.qt-project.org:29418/qt-labs/qbs
>> refs/changes/84/103384/1
>> --
>> To view, visit https://codereview.qt-project.org/103384
>> To unsubscribe, visit https://codereview.qt-project.org/settings
>>
>> Gerrit-MessageType: newchange
>> Gerrit-Change-Id: I426ea434c562a03cd96ece6a3f19e86a2480de07
>> Gerrit-PatchSet: 1
>> Gerrit-Project: qt-labs/qbs
>> Gerrit-Branch: master
>> Gerrit-Owner: Jake Petroules <jake.petroules at petroules.com>
>>
>
>
>
> --
> Best Regards
> Yuchen
>  <s5.png>
>
>
> --
> Jake Petroules - jake.petroules at petroules.com
> Chief Technology Officer - Petroules Corporation
>
>


-- 
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150114/5d0c4aca/attachment.html>


More information about the Qbs mailing list