hi, I have a try today, and with some different errors. > loaden@qpsoft:~/qpSOFT/Projects/Qbs/examples/helloworld-qt$ qbs > profile:android-qt5 > Restoring build graph from disk > Building for configuration android-qt5-debug > compiling main.cpp > 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 > In file included from /opt/android-qt5/include/QtCore/qglobal.h:70:0, > from > /opt/android-qt5/include/QtCore/qcoreapplication.h:37, > from /opt/android-qt5/include/QtCore/QCoreApplication:1, > from > /home/loaden/qpSOFT/Projects/Qbs/examples/helloworld-qt/main.cpp:38: > /opt/android-qt5/include/QtCore/qcompilerdetection.h:882:20: fatal error: > utility: No such file or directory > # include <utility> > ^ > compilation terminated. > ERROR: Process failed with exit code 1. > The following products could not be built for configuration > android-qt5-debug: > HelloWorld-Qt
It's seems can't find the Android-NDK? qmake build system just fine. see: 20:33:18: The process "/usr/bin/make" exited normally. 20:33:18: Configuration unchanged, skipping qmake step. 20:33:18: Starting: "/usr/bin/make" > /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. > *-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* > -isystem /opt/android-ndk/platforms/android-16/arch-arm/usr/include -I. -o > main.o ../../untitled34/main.cpp Any comments? thanks~! 2015-01-06 18:56 GMT+08:00 Christian Kandeler < christian.kande...@theqtcompany.com>: > On 01/05/2015 09:53 PM, Jake Petroules wrote: > > Hey, > > > > So I've tried out the new Android support and so far there are some > > major issues (I think). Since I haven't really used profile multiplexing > > yet, I'm not sure if how I'm invoking Qbs is correct: > > > > qbs profile:android > > > > With this I receive: > > > > *ERROR: */share/qbs/modules/cpp/linux-gcc.qbs:4 TypeError: Result of > > expression 'qbs.toolchain' [undefined] is not an object. > > > > Maybe that's a bug, but suppressing that I still receive an error when > > running: > > > > qbs profile:android qbs.toolchain:gcc > > > > *ERROR: *[REDACTED].qbs:3:1 Product dependency 'jsoncpp' not found for > > profile 'android'. > > > > Since this is a closed source project I can't really give a more > > concrete example, but even if I explicitly try to build jsoncpp (which > > is based on a StaticLibrary item) the build fails, even if the entire > > contents are removed: > > > > // jsoncpp.qbs > > import qbs > > StaticLibrary {} > > // jsoncpp.qbs > > > > qbs -p jsoncpp profile:android qbs.toolchain:gcc > > I cannot reproduce this, and I suspect that your qbs build is screwed up > (Library.qbs not up to date?). If you can really reproduce the problem > with a clean qbs build, please file a bug report, preferaby with a small > example that exhibits the problem. > (And of course you don't need to set qbs.toolchain explicitly.) > > > Christian > _______________________________________________ > QBS mailing list > QBS@qt-project.org > http://lists.qt-project.org/mailman/listinfo/qbs > -- Best Regards Yuchen
_______________________________________________ QBS mailing list QBS@qt-project.org http://lists.qt-project.org/mailman/listinfo/qbs