Forums

OverviewFelgo 2 Support (Qt 5) › Error while building/deploying project FirstTesApp (kit: Android for x86

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17546

    Niyazi

    Hi, I am new to Felgo. I install Felgo on Mac OS Sierra (on VMware workstation12) and follow the instruction for installation. I get error while building simple application. I need help?

     

    Here is the my compile error.

     
    <div>12:42:03: Running steps for project FirstTesApp…
    12:42:03: Configuration unchanged, skipping qmake step.
    12:42:03: Starting: “/usr/bin/make”
    /Users/ntms/android-ndk-r10e/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-g++ -c -D__ANDROID_API__=16 –sysroot=/Users/ntms/android-ndk-r10e/platforms/android-16/arch-x86/ -isystem /Users/ntms/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /Users/ntms/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/include -fstack-protector-strong -DANDROID -O2 -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I../FirstTesApp -I. -I../FelgoSDK/Felgo/android_x86/include/VPlay -I../FelgoSDK/Felgo/android_x86/include -I../FelgoSDK/Felgo/android_x86/include/QtQuick -I../FelgoSDK/Felgo/android_x86/include/QtWidgets -I../FelgoSDK/Felgo/android_x86/include/QtMultimedia -I../FelgoSDK/Felgo/android_x86/include/QtGui -I../FelgoSDK/Felgo/android_x86/include/QtQml -I../FelgoSDK/Felgo/android_x86/include/QtWebSockets -I../FelgoSDK/Felgo/android_x86/include/QtNetwork -I../FelgoSDK/Felgo/android_x86/include/QtSql -I../FelgoSDK/Felgo/android_x86/include/QtCore -I. -I../FelgoSDK/Felgo/android_x86/mkspecs/android-g++ -o main.o ../FirstTesApp/main.cpp
    /Users/ntms/FelgoSDK/Felgo/android_x86/bin/rcc -name resources_user ../FelgoSDK/Felgo/android_x86/mkspecs/common/vplay/resources_user.qrc -o qrc_resources_user.cpp
    /Users/ntms/android-ndk-r10e/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-g++ -c -D__ANDROID_API__=16 –sysroot=/Users/ntms/android-ndk-r10e/platforms/android-16/arch-x86/ -isystem /Users/ntms/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /Users/ntms/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/include -fstack-protector-strong -DANDROID -O2 -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I../FirstTesApp -I. -I../FelgoSDK/Felgo/android_x86/include/VPlay -I../FelgoSDK/Felgo/android_x86/include -I../FelgoSDK/Felgo/android_x86/include/QtQuick -I../FelgoSDK/Felgo/android_x86/include/QtWidgets -I../FelgoSDK/Felgo/android_x86/include/QtMultimedia -I../FelgoSDK/Felgo/android_x86/include/QtGui -I../FelgoSDK/Felgo/android_x86/include/QtQml -I../FelgoSDK/Felgo/android_x86/include/QtWebSockets -I../FelgoSDK/Felgo/android_x86/include/QtNetwork -I../FelgoSDK/Felgo/android_x86/include/QtSql -I../FelgoSDK/Felgo/android_x86/include/QtCore -I. -I../FelgoSDK/Felgo/android_x86/mkspecs/android-g++ -o qrc_resources_user.o qrc_resources_user.cpp
    /Users/ntms/android-ndk-r10e/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-g++ –sysroot=/Users/ntms/android-ndk-r10e/platforms/android-16/arch-x86/ -Wl,-soname,libFirstTesApp.so -Wl,-rpath=/Users/ntms/FelgoSDK/Felgo/android_x86/lib -Wl,–no-undefined -Wl,-z,noexecstack -shared -o libFirstTesApp.so main.o qrc_resources_user.o   -L/Users/ntms/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86 -L/Users/ntms/android-ndk-r10e/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/i686-linux-android/4.9 -L/Users/ntms/FelgoSDK/Felgo/android_x86/lib -lVPlay -lcrypto -lssl -lQt5Quick -L/opt/android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86 -L/opt/android/android-ndk-r10e/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/i686-linux-android/4.9 -lQt5Widgets -lQt5Multimedia -lQt5Gui -lQt5Qml -lQt5WebSockets -lQt5Network -lQt5Sql -lQt5Core -lGLESv2 -lgnustl_shared -lgcc -llog -lz -lm -ldl -lc
    12:42:04: The process “/usr/bin/make” exited normally.
    12:42:04: Removing directory /Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/android-build/assets
    12:42:05: Removing directory /Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/android-build/libs
    12:42:05: Starting: “/usr/bin/make” INSTALL_ROOT=/Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/android-build install
    /Users/ntms/FelgoSDK/Felgo/android_x86/bin/qmake -install qinstall /Users/ntms/FirstTesApp/qml /Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/android-build/assets/qml
    /Users/ntms/FelgoSDK/Felgo/android_x86/bin/qmake -install qinstall /Users/ntms/FirstTesApp/assets /Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/android-build/assets/assets
    /Users/ntms/FelgoSDK/Felgo/android_x86/bin/qmake -install qinstall -exe libFirstTesApp.so /Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/android-build/libs/x86/libFirstTesApp.so
    12:42:05: The process “/usr/bin/make” exited normally.
    12:42:05: Starting: “/Users/ntms/FelgoSDK/Felgo/android_x86/bin/androiddeployqt” –input /Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/android-libFirstTesApp.so-deployment-settings.json –output /Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/android-build –deployment bundled –android-platform android-27 –jdk /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home –gradle
    Generating Android Package
    Input file: /Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/android-libFirstTesApp.so-deployment-settings.json
    Output directory: /Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/android-build/
    Application binary: /Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/libFirstTesApp.so
    Android build platform: android-27
    Install to device: No
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :prepareDebugDependencies
    :compileDebugAidl UP-TO-DATE
    :compileDebugRenderscript UP-TO-DATE
    :generateDebugBuildConfig UP-TO-DATE
    :generateDebugResValues UP-TO-DATE
    :generateDebugResources UP-TO-DATE
    :mergeDebugResources UP-TO-DATE
    :processDebugManifest UP-TO-DATE
    :processDebugResources UP-TO-DATE
    :generateDebugSources UP-TO-DATE
    :incrementalDebugJavaCompilationSafeguard UP-TO-DATE
    :javaPreCompileDebug
    :compileDebugJavaWithJavac UP-TO-DATE
    :compileDebugNdk NO-SOURCE
    :compileDebugSources UP-TO-DATE
    :mergeDebugShaders UP-TO-DATE
    :compileDebugShaders UP-TO-DATE
    :generateDebugAssets UP-TO-DATE
    :mergeDebugAssets UP-TO-DATE
    :transformClassesWithDexForDebug UP-TO-DATE
    :mergeDebugJniLibFolders UP-TO-DATE
    :transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
    :transformNativeLibsWithStripDebugSymbolForDebug UP-TO-DATE
    :processDebugJavaRes NO-SOURCE
    :transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :validateSigningDebug
    :packageDebug UP-TO-DATE
    :assembleDebug UP-TO-DATE</div>
    <div>BUILD SUCCESSFUL</div>
    <div>Total time: 6.395 secs
    Android package built successfully in 9.579 ms.
    — File: /Users/ntms/build-FirstTesApp-Android_for_x86_GCC_4_9_Qt_5_9_2_Android_x86_V_Play-Release/android-build//build/outputs/apk/android-build-debug.apk
    12:42:14: The process “/Users/ntms/FelgoSDK/Felgo/android_x86/bin/androiddeployqt” exited normally.
    Error while building/deploying project FirstTesApp (kit: Android for x86 (GCC 4.9, Qt 5.9.2 Android x86 Felgo))
    When executing step “Deploy to Android device”
    12:44:46: Elapsed time: 02:43.</div>

    #17548

    Günther
    Felgo Team

    Hi,

    based on the log output the build was successful (Android package built successfully in 9.579 ms.), but deployment to the Android device failed.

    Can you make sure that your Android device has Developer Options Activated and USB Debugging activated? (see here)
    After activating the settings and trusting your development pc, you should be able to deploy your built android package to your device.

    Let me know if this helps!

    Best,
    Günther

    #17549

    Niyazi

    Thank you very much Günther, it worked.

    #19936

    Didier

    i get this error to build debug app in android (build or debug):

     

    In file included from ../../FelgoSDK/Felgo/android_armv7/include/QtCore/qglobal.h:45:0,

    from ../../FelgoSDK/Felgo/android_armv7/include/QtGui/qtguiglobal.h:43,

    from ../../FelgoSDK/Felgo/android_armv7/include/QtWidgets/qtwidgetsglobal.h:43,

    from ../../FelgoSDK/Felgo/android_armv7/include/QtWidgets/qapplication.h:43,

    from ../../FelgoSDK/Felgo/android_armv7/include/QtWidgets/QApplication:1,

    from ../SwMeet/main.cpp:1:

    /Users/torrefuertesas/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/type_traits:52:15: error: expected ‘{‘ before ‘_GLIBCXX_VISIBILITY’

    namespace std _GLIBCXX_VISIBILITY(default)

    ^

    /Users/torrefuertesas/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/type_traits:52:34: error: expected constructor, destructor, or type conversion before ‘(‘ token

    namespace std _GLIBCXX_VISIBILITY(default)

    ^

    In file included from /Users/torrefuertesas/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/utility:75:0,

    from ../../FelgoSDK/Felgo/android_armv7/include/QtCore/qglobal.h:47,

    from ../../FelgoSDK/Felgo/android_armv7/include/QtGui/qtguiglobal.h:43,

    from ../../FelgoSDK/Felgo/android_armv7/include/QtWidgets/qtwidgetsglobal.h:43,

    from ../../FelgoSDK/Felgo/android_armv7/include/QtWidgets/qapplication.h:43,

    from ../../FelgoSDK/Felgo/android_armv7/include/QtWidgets/QApplication:1,

    from ../SwMeet/main.cpp:1:

    /Users/torrefuertesas/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/initializer_list:39:37: error: expected ‘}’ before end of line

    #pragma GCC visibility push(default)

    ^

    /Users/torrefuertesas/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/initializer_list:39:37: error: expected declaration before end of line

    make: *** [main.o] Error 1

    00:12:21: The process “/usr/bin/make” exited with code 2.

    Error while building/deploying project SwMeet (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.1 Android armv7 Felgo))

    #19955

    Günther
    Felgo Team

    Hi Didier,

    which version of Android NDK are you using? Qt recommends to use NDK version r10e, as later versions can cause compatibility issues.

    To rule out a possible issue related to Felgo, you can also try to create a plain Qt Quick project with Qt Creator.

    Are you able to build and deploy a plain Qt Quick project to Android?

    Best,
    Günther

Viewing 5 posts - 1 through 5 (of 5 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support