August 15, 2011

fxtech fxtech
Lab Rat
11 posts

[solved] Qt on Android (Necessitas) - working in simulator - how to get it on my phone?

 

I’ve got Necessitas up and running on a Windows 7 (x64) box and have gotten a basic do-nothing app up in the simulator. Now how do I deploy this thing to my phone? I can’t find any documentation to this effect.

8 replies

August 15, 2011

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

you need either to install local libs (but you should keep in mind that plugins will not work in this way. And yes, QML ones too) or install Ministro on your phone and install apk with your app. Depolying to device is really similar to deploying to emulator.

August 15, 2011

sierdzio sierdzio
Area 51 Engineer
2536 posts

just run as normal in Necessitas Qt Creator, but with the device plugged in. Also, as Denis pointed out, you will need Ministro. Look into packaging inside Qt Creator (Project->Run config, if I remember well), as your device might require API choice other than default.

At least, that worked on Linux, maybe Windows has some tricks up it’s sleeve here :)

 Signature 

(Z(:^

August 15, 2011

fxtech fxtech
Lab Rat
11 posts

Ah – silly me! All I had to was Press F5. I was pressing “Run” before and that was launching the simulator. Thanks!

January 13, 2013

trusktr trusktr
Ant Farmer
44 posts

I can’t get Qt Creator to deploy to device no matter what I try. It’s getting annoying. It always starts the blasted emulator. How in the world do I deploy to devive?

“adb devices” shows my device and “adb get-state” shows “device”. I know it’s working because I successfully installed my apk file using “adb install blah.apk”.

But no matter what, it just won’t deploy to the device! Any ideas?

January 20, 2013

jetrix74 jetrix74
Lab Rat
5 posts

I had the same problem and solved it by re-installing java environment…

January 20, 2013

utcenter utcenter
Dinosaur Breeder
768 posts

Hopefully, with Digia being committed to officially supporting Android, we will see better working android toolchain, I myself had mostly negative experiences with Necessitas under windows, I never managed to get anything running on the simulator or deploy to a device, my greatest success was the successful creation of an APK that I manually copy and install on the device.

Official beta support for Android is expected this spring, hopefully finalized for an Autumn release.

February 4, 2013

mbnoimi mbnoimi
Robot Herder
223 posts

Do you know anything about running Necessitas over Qt5?

February 4, 2013

mbnoimi mbnoimi
Robot Herder
223 posts

By the way Digia didn’t mention anything about android supporting so I’m wondering Does Necessitas will really merge into Qt project or it will be under KDE supporting?

 
  ‹‹ !!Symbian Simulator Error:(Internal error: pc 0x0 in read in psymtab, but not in symtab.)      Graphics Performance ››

You must log in to post a reply. Not a member yet? Register here!