Forums

OverviewV-Play 2 Support (Qt 5) › Can't run flappy bird tutorial from sample in android.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #14186

    Fabian Tjandra

    Hi I”m new here, please guide me. So, I want to run FlappyBird tutorial in my Android, and learn to modify the code. But from the default run I can’t run it, If compile from desktop, works fine. Please help me , thanks !

     

    ============================================================================

    09:36:50: Running steps for project untitled…

    09:36:50: Configuration unchanged, skipping qmake step.

    09:36:50: Starting: “C:\Users\ideapad\V-PlaySDK\Tools\mingw530_32\bin\mingw32-make.exe”

    mingw32-make: Nothing to be done for ‘first’.

    09:36:50: The process “C:\Users\ideapad\V-PlaySDK\Tools\mingw530_32\bin\mingw32-make.exe” exited normally.

    09:36:50: Starting: “C:\Users\ideapad\V-PlaySDK\Tools\mingw530_32\bin\mingw32-make.exe” “INSTALL_ROOT=C:\Users\ideapad\Documents\untitled\android-build” install

    Makefile:850: recipe for target ‘install_itemqmlFolder’ failed

    process_begin: CreateProcess(C:\Users\ideapad\AppData\Local\Temp\make13240-1.bat, C:\Users\ideapad\AppData\Local\Temp\make13240-1.bat, …) failed.

    make (e=5): Access is denied.

    mingw32-make: *** [install_itemqmlFolder] Error 5

    09:36:51: The process “C:\Users\ideapad\V-PlaySDK\Tools\mingw530_32\bin\mingw32-make.exe” exited with code 2.

    Error while building/deploying project untitled (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.0))

    When executing step “Copy application data”

    09:36:51: Elapsed time: 00:02.

    #14187

    Günther
    V-Play Team

    Hi Fabian!

    Did you set up everything for Android correctly as described in our documentation?
    You can also have a look at our Tutorial Video about Android Deployment.

    If you have questions about one of the steps, I’m happy to help!

    Best,
    Günther

    #14188

    Fabian Tjandra

    Yeah I did, quick question, do the sample can run on Android?

     

    I’m still confused tho..

    #14192

    Günther
    V-Play Team

    Yes, the demo should run on Android, I also tested it myself now to confirm this.

    To find out what’s wrong, can you try the following:
    First of all, open Qt Creator options/preferences and have a look at the “Android” tab. Do you see any errors here? Is JDK/Android SDK/NDK correctly set up?

    • Now please create a new Empty V-Play Game Project in Qt Creator (select V-Play Games – Empty V-Play 2 Project in the wizard)
    • Use a simple and short project path without white-spaces (to avoid path-related issues)
    • After creating the project, open the “Projects” tab in Qt Creator and add  the “Android for armeabi” Kit
    • Expand the “Build Android APK” section and make sure “Use Gradle” is selected
    • Select the Android Kit in the bottom-left of Qt Creator (above the play-button)
    • Right click the project in the Project Tree and select “Run qmake
      -> do you see any errors in the Compile Output or does it work?
    • If it works, build the application (hammer-button in the bottom-left of Qt Creator)
      -> do you see any errors in the Compile Output?
    • If everything works up until here, you can connect your device (make sure that you allow USB Debugging in the device settings) and deploy the game to the device with the green play-button.

    Does this work?

    Best,
    Günther

    #14193

    Fabian Tjandra

    http://imgur.com/E5QBURR My Kit Setting

    http://imgur.com/a/sU7mr Use Gradle selected

    • If it works, build the application (hammer-button in the bottom-left of Qt Creator)
      -> do you see any errors in the Compile Output?
    18:12:22: Running steps for project GuntherTutorial...
    18:12:22: Configuration unchanged, skipping qmake step.
    18:12:22: Starting: "C:\Users\ideapad\V-PlaySDK\Tools\mingw530_32\bin\mingw32-make.exe" 
    I:\android-ndk-r12b-windows-x86_64\android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-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 -fno-builtin-memmove -std=c++11 -g -g -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_3DQUICK_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_3DRENDER_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I..\GuntherTutorial -I. -I..\..\V-PlaySDK\5.7\android_armv7\include\VPlay -I..\..\V-PlaySDK\5.7\android_armv7\include -I..\..\V-PlaySDK\5.7\android_armv7\include\Qt3DQuick -I..\..\V-PlaySDK\5.7\android_armv7\include\QtQuick -I..\..\V-PlaySDK\5.7\android_armv7\include\QtWidgets -I..\..\V-PlaySDK\5.7\android_armv7\include\QtMultimedia -I..\..\V-PlaySDK\5.7\android_armv7\include\Qt3DRender -I..\..\V-PlaySDK\5.7\android_armv7\include\Qt3DInput -I..\..\V-PlaySDK\5.7\android_armv7\include\Qt3DCore -I..\..\V-PlaySDK\5.7\android_armv7\include\QtGui -I..\..\V-PlaySDK\5.7\android_armv7\include\QtQml -I..\..\V-PlaySDK\5.7\android_armv7\include\QtWebSockets -I..\..\V-PlaySDK\5.7\android_armv7\include\QtNetwork -I..\..\V-PlaySDK\5.7\android_armv7\include\QtSql -I..\..\V-PlaySDK\5.7\android_armv7\include\QtCore -I. -isystem I:\android-ndk-r12b-windows-x86_64\android-ndk-r12b\sources\cxx-stl\gnu-libstdc++\4.9\include -isystem I:\android-ndk-r12b-windows-x86_64\android-ndk-r12b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a\include -isystem I:\android-ndk-r12b-windows-x86_64\android-ndk-r12b\platforms\android-16\arch-arm\usr\include -I..\..\V-PlaySDK\5.7\android_armv7\mkspecs\android-g++ -o main.obj ..\GuntherTutorial\main.cpp
    C:\Users\ideapad\V-PlaySDK\5.7\android_armv7\bin\rcc.exe -name resources_user ..\..\V-PlaySDK\5.7\android_armv7\mkspecs\common\vplay\resources_user.qrc -o qrc_resources_user.cpp
    I:\android-ndk-r12b-windows-x86_64\android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-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 -fno-builtin-memmove -std=c++11 -g -g -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_3DQUICK_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_3DRENDER_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I..\GuntherTutorial -I. -I..\..\V-PlaySDK\5.7\android_armv7\include\VPlay -I..\..\V-PlaySDK\5.7\android_armv7\include -I..\..\V-PlaySDK\5.7\android_armv7\include\Qt3DQuick -I..\..\V-PlaySDK\5.7\android_armv7\include\QtQuick -I..\..\V-PlaySDK\5.7\android_armv7\include\QtWidgets -I..\..\V-PlaySDK\5.7\android_armv7\include\QtMultimedia -I..\..\V-PlaySDK\5.7\android_armv7\include\Qt3DRender -I..\..\V-PlaySDK\5.7\android_armv7\include\Qt3DInput -I..\..\V-PlaySDK\5.7\android_armv7\include\Qt3DCore -I..\..\V-PlaySDK\5.7\android_armv7\include\QtGui -I..\..\V-PlaySDK\5.7\android_armv7\include\QtQml -I..\..\V-PlaySDK\5.7\android_armv7\include\QtWebSockets -I..\..\V-PlaySDK\5.7\android_armv7\include\QtNetwork -I..\..\V-PlaySDK\5.7\android_armv7\include\QtSql -I..\..\V-PlaySDK\5.7\android_armv7\include\QtCore -I. -isystem I:\android-ndk-r12b-windows-x86_64\android-ndk-r12b\sources\cxx-stl\gnu-libstdc++\4.9\include -isystem I:\android-ndk-r12b-windows-x86_64\android-ndk-r12b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a\include -isystem I:\android-ndk-r12b-windows-x86_64\android-ndk-r12b\platforms\android-16\arch-arm\usr\include -I..\..\V-PlaySDK\5.7\android_armv7\mkspecs\android-g++ -o qrc_resources_user.obj qrc_resources_user.cpp
    I:\android-ndk-r12b-windows-x86_64\android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ --sysroot=I:\android-ndk-r12b-windows-x86_64\android-ndk-r12b/platforms/android-16/arch-arm/ -Wl,-soname,libGuntherTutorial.so -Wl,-rpath-link=C:/Users/ideapad/V-PlaySDK/5.7/android_armv7/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libGuntherTutorial.so main.obj qrc_resources_user.obj   -LI:\android-ndk-r12b-windows-x86_64\android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -LI:\android-ndk-r12b-windows-x86_64\android-ndk-r12b/platforms/android-16/arch-arm//usr/lib -LC:/Users/ideapad/V-PlaySDK/5.7/android_armv7/lib -lVPlay -lQt53DQuick -Lc:/utils/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -Lc:/utils/android-ndk-r10e/platforms/android-9/arch-arm//usr/lib -LC:\Users\ideapad\V-PlaySDK\5.7\android_armv7/lib -lQt5Quick -lQt5Widgets -lQt5Multimedia -lQt53DRender -lQt5Concurrent -lQt53DInput -lQt53DCore -lQt5Gui -lQt5Qml -lQt5WebSockets -lQt5Network -lQt5Sql -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc
    18:12:24: The process "C:\Users\ideapad\V-PlaySDK\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
    18:12:24: Starting: "C:\Users\ideapad\V-PlaySDK\Tools\mingw530_32\bin\mingw32-make.exe" "INSTALL_ROOT=C:\Users\ideapad\Documents\build-GuntherTutorial-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug\android-build" install
    Makefile:543: recipe for target 'install_itemqmlFolder' failed
    process_begin: CreateProcess(C:\Users\ideapad\AppData\Local\Temp\make12992-1.bat, C:\Users\ideapad\AppData\Local\Temp\make12992-1.bat, ...) failed.
    make (e=5): Access is denied.
    
    mingw32-make: *** [install_itemqmlFolder] Error 5
    18:12:25: The process "C:\Users\ideapad\V-PlaySDK\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project GuntherTutorial (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.0))
    When executing step "Copy application data"
    18:12:25: Elapsed time: 00:03.

     

    Thanks for your reply Gunther, here’s my problem with some screenshot

     

    EDIT : When run qmake =====

    21:04:34: Running steps for project GuntherTutorial...
    21:04:34: Starting: "C:\Users\ideapad\V-PlaySDK\5.7\android_armv7\bin\qmake.exe" C:\Users\ideapad\Documents\GuntherTutorial\GuntherTutorial.pro -r -spec android-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
    21:04:35: The process "C:\Users\ideapad\V-PlaySDK\5.7\android_armv7\bin\qmake.exe" exited normally.
    21:04:35: Elapsed time: 00:00.

     

    #14194

    Günther
    V-Play Team

    Hi Fabian!

    The settings look good, I also tried building with the same SDK and NDK version that you use and the build succeeds.

    The only error hint that we can go with is the message

    process_begin: CreateProcess(C:\Users\ideapad\AppData\Local\Temp\make12992-1.bat, C:\Users\ideapad\AppData\Local\Temp\make12992-1.bat, ...) failed.
    make (e=5): Access is denied.
    

    Are you certain that you that you and also the required tools have access rights to the project directory and the build directory?
    Please try creating the project in a simple and public folder like C:/V-PlayProjects/ instead of the User Documents folder.
    Does it work?

    Best,
    Günther

     

    #14216

    Fabian Tjandra

    Yo gunther, sorry for late reply, at last i can make it run !

     

    here’s my solution :

     

    run QT code as admin

     

    damn I don’t even realize what happen but maybe when QT try to acccess my appdata got denied.. thanks for the support though ! really appreciate it, gonna try and experiment some stuff with V-play !

     

    quick question : do we need to upgrade license to set up custom splash screen? or can we just disable the redirect link when we click the default splash screen?

    EDIT : http://imgur.com/geP8yQH another problem? lol sorry to ask too much x.x (When I try to design the qml page)

     

    cheers !

    #14217

    Günther
    V-Play Team

    Glad to hear you got it working!

    Changing the default splash screen is not possible, but starting with our indie license, the splash screen by V-Play is removed (no splash at all then).
    Of course you can then also show a custom splash screen that you prepare with QML, for example while loading the other game scenes.

    For the Qt Creator Designer: The designer has troubles if there’s already a lot of logic and different components in the QML code. So we usually recommend to use the designer mainly in the initial creation/design phase of the components you create. For example, create a new Qt Quick Item and use the Designer to create a first design. I personally prefer to directly write the code with QML instead of using the designer.

    Best,
    Günther

    #14218

    Fabian Tjandra

    Hi Gunther,

    So basically v-play splash – my state splash – the game ?

     

    Ahh I see.. How bout if I want to make an edittext field, for name input , then I will save the name and it’s score , I want to make my own highscore board. Do you have any idea ?

    #14219

    Günther
    V-Play Team

    Yes, if you use the V-Play free version it is V-Play Splash -> Your Application (which can also show a splash before other stuff).

    You can use the Qt Quick TextField component to enter the name. How you then store the data and create the leaderboard is up to you. However, I strongly recommend to use the highscore leaderboards provided by our VPlayGameNetwork (like in the Flappy Bird demo). The only thing you need to do then is report the score to the GameNetwork and display the leaderboard.

    Best,
    Günther

    #14222

    Fabian Tjandra

    Hi Gunther,

     

    I’ve read the documentation, but seems the leaderboard is online. I just wanna make a offline leaderboard, where we play like old arcade game, we play, game over, insert name, then it display the highest.

    #14223

    Günther
    V-Play Team

    I understand, then I would recommend to store the leaderboard (or only top ten or so?) locally on the device.
    You can use the Storage type to save key-value pairs persistent on the device and load them again when needed.

    The value you store can be any javascript object. The getValue and setValue methods automatically serialize/deserialize the values to/from JSON format.

    Best,
    Günther

Viewing 12 posts - 1 through 12 (of 12 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