<div dir="ltr">hi, I have a try today, and with some different errors.<div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="tahoma, sans-serif" style="background-color:rgb(0,0,0)" color="#00ff00">loaden@qpsoft:~/qpSOFT/Projects/Qbs/examples/helloworld-qt$ qbs profile:android-qt5<br>Restoring build graph from disk<br>Building for configuration android-qt5-debug<br>compiling main.cpp<br>ERROR: /opt/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -g -Wall -Wextra -pipe -fvisibility=default -x c++ -fPIC -DQT_CORE_LIB -I/opt/android-qt5/include -I/opt/android-qt5/include/QtCore -I/opt/android-qt5/mkspecs/android-g++ -I/home/loaden/qpSOFT/Projects/Qbs/examples/helloworld-qt/android-qt5-debug/HelloWorld-Qt.android-qt5.1f430ec5/GeneratedFiles -c /home/loaden/qpSOFT/Projects/Qbs/examples/helloworld-qt/main.cpp -o /home/loaden/qpSOFT/Projects/Qbs/examples/helloworld-qt/android-qt5-debug/HelloWorld-Qt.android-qt5.1f430ec5/.obj/3a52ce780950d4d9/main.cpp.o<br>In file included from /opt/android-qt5/include/QtCore/qglobal.h:70:0,<br>                 from /opt/android-qt5/include/QtCore/qcoreapplication.h:37,<br>                 from /opt/android-qt5/include/QtCore/QCoreApplication:1,<br>                 from /home/loaden/qpSOFT/Projects/Qbs/examples/helloworld-qt/main.cpp:38:<br>/opt/android-qt5/include/QtCore/qcompilerdetection.h:882:20: fatal error: utility: No such file or directory<br> # include <utility><br>                    ^<br>compilation terminated.<br>ERROR: Process failed with exit code 1.<br>The following products could not be built for configuration android-qt5-debug:<br><span class="" style="white-space:pre"> </span>HelloWorld-Qt</font></blockquote></div><div>It's seems can't find the Android-NDK?</div><div>qmake build system just fine.</div><div>see:</div><div>
<p style="margin:0px"><span style="color:rgb(20,20,190)">20:33:18: The process "/usr/bin/make" exited normally.</span></p>
<p style="margin:0px"><span style="color:rgb(20,20,190)">20:33:18: Configuration unchanged, skipping qmake step.</span></p>
<p style="margin:0px"><span style="color:rgb(20,20,190)">20:33:18: Starting: "/usr/bin/make" </span></p>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote"><font color="#3c3c3c">/opt/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -std=gnu++0x -g -g -gdwarf-2 -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/android-qt5/mkspecs/android-g++ -I../../untitled34 -I/opt/android-qt5/include -I/opt/android-qt5/include/QtWidgets -I/opt/android-qt5/include/QtGui -I/opt/android-qt5/include/QtCore -I. </font><b><font color="#ff0000">-I/opt/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/include -I/opt/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include</font></b><font color="#3c3c3c"> -isystem /opt/android-ndk/platforms/android-16/arch-arm/usr/include -I. -o main.o ../../untitled34/main.cpp</font></blockquote><div>Any comments? thanks~! </div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-06 18:56 GMT+08:00 Christian Kandeler <span dir="ltr"><<a href="mailto:christian.kandeler@theqtcompany.com" target="_blank">christian.kandeler@theqtcompany.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 01/05/2015 09:53 PM, Jake Petroules wrote:<br>
> Hey,<br>
><br>
> So I’ve tried out the new Android support and so far there are some<br>
> major issues (I think). Since I haven’t really used profile multiplexing<br>
> yet, I’m not sure if how I’m invoking Qbs is correct:<br>
><br>
> qbs profile:android<br>
><br>
> With this I receive:<br>
><br>
</span>> *ERROR: */share/qbs/modules/cpp/linux-gcc.qbs:4 TypeError: Result of<br>
<span class="">> expression 'qbs.toolchain' [undefined] is not an object.<br>
><br>
> Maybe that’s a bug, but suppressing that I still receive an error when<br>
> running:<br>
><br>
> qbs profile:android qbs.toolchain:gcc<br>
><br>
</span>> *ERROR: *[REDACTED].qbs:3:1 Product dependency 'jsoncpp' not found for<br>
<span class="">> profile 'android'.<br>
><br>
> Since this is a closed source project I can’t really give a more<br>
> concrete example, but even if I explicitly try to build jsoncpp (which<br>
> is based on a StaticLibrary item) the build fails, even if the entire<br>
> contents are removed:<br>
><br>
> // jsoncpp.qbs<br>
> import qbs<br>
> StaticLibrary {}<br>
> // jsoncpp.qbs<br>
><br>
> qbs -p jsoncpp profile:android qbs.toolchain:gcc<br>
<br>
</span>I cannot reproduce this, and I suspect that your qbs build is screwed up<br>
(Library.qbs not up to date?). If you can really reproduce the problem<br>
with a clean qbs build, please file a bug report, preferaby with a small<br>
example that exhibits the problem.<br>
(And of course you don't need to set qbs.toolchain explicitly.)<br>
<br>
<br>
Christian<br>
_______________________________________________<br>
QBS mailing list<br>
<a href="mailto:QBS@qt-project.org">QBS@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/qbs" target="_blank">http://lists.qt-project.org/mailman/listinfo/qbs</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>Best Regards</div>
<div>Yuchen</div><div></div></div>
</div>