Forums

OverviewV-Play 2 Support (Qt 5)Build issue: Package deploy: Failed to pull "/system/bin/sh: readlink: not found › Reply To: Build issue: Package deploy: Failed to pull "/system/bin/sh: readlink: not found

OverviewV-Play 2 Support (Qt 5)Build issue: Package deploy: Failed to pull "/system/bin/sh: readlink: not found › Reply To: Build issue: Package deploy: Failed to pull "/system/bin/sh: readlink: not found
#11843

Marcin

Thank you Günther for answer.
QtCreator- agree. There is nothing we can do, it’s pure QtCreator trying to catch up with the changes in Android SDK and the way they move stuff around.

The code weird behaviour- you say that is not fatal- that is interesting.
Will take a look more but in general works on Desktop, doesn’t on Android.
What I do is I create an entity, do fixture.onComplete and inside I change the entity x position to show it on a spot where I want.
On Desktop works, on Andoid, even if I hard code values, it always show at x=0.
This is very basic operation, really similar to what you do in one of your demos(balloons), small snippet with parts of the code(Balloon.qml):

import QtQuick 2.0
import VPlay 2.0

EntityBase {
    entityType: "Balloon"
    opacity: 1
... some properties here

    property variant matrix: {1: 0, 2:107, 3:214, 4: 321, 5: 428, 6: 535 }
    // to do random position but on preferred column
  
... Image here

    BoxCollider {
        id: collider
        anchors.fill: parent
        gravityScale: parent.gravityScale

... more code

    Component.onCompleted: {
        var columns = 6;
        var position = Math.floor(Math.random() * columns) + 1


        entity.x = matrix[position]
// this doesn't work
// just x=matrix[position] also works
// even if I do x=150, it still goes to x=0
// it is always x=0 on Smartphone
// was working fine in older versions of VPlay.net 

    }
}

Is there a way I can downgrade VPlay, maybe will be find the exact versions where it works.
This code is really basic code.
It is either really weird edge case or I have some logic which only triggers on physical device.
If you have any idea I would be grateful.
Until then will do some tests, maybe will track the issue.

  • This reply was modified 2 years, 8 months ago by  senkal.

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