Ministro 9.6.8 Invalid Qt version - Qt 4.8.2

2,329 views
Skip to first unread message

larivcl

unread,
Jan 14, 2014, 1:40:13 PM1/14/14
to andro...@googlegroups.com
Hello,

I have the "Invalid Qt version" message with Ministro version 9.6.8 and 9.5 on android devices (Galaxy S4, Galaxy Tab 2 10.2 and Galaxy Tab 3 10.2) when installing my application.
This application worked on my Galaxy Tab 2, I have made a backup of Ministro and application apks, then uninstalled all and reinstalled my app.
Ministro 9.6.8 was downloaded, but after testing SSL certificates, it displayed Invalid Qt version message.
I tested with Ministro 9.5 and had the same issue.
I use Necessitas with Qt 4.8.2, and have installed this application on many Galaxy Tab 2 with the same android version, and never had this issue.
I tested with another app and had the message again.

I have made another test with Qt 5.2, after porting my app, it can run with Qt libs embedded in the apk, but with Ministro service option to download libs, it hangs (libs are downloaded by Ministro 9.6.8).

I can't use Qt 5.2 version because QSystemInfo and battery informations can't be used, and I can't install my app with Necessitas Qt 4.8...

Thanks,

Claude

tomasl

unread,
Jan 15, 2014, 2:55:45 AM1/15/14
to andro...@googlegroups.com
Hi Claude, 

I don't have the answer on this, but can provide some additional information: 

- Samsung Galaxy Tab3 10.2 has x86 processor architecture. This is not supported by Necessitas, you will have to switch to 5.2 and compile for x86. 
- You could post the adb log from a device that fails. This would help developers pinpoint what's actually going wrong. I had a similar problem on a device some time ago. When looking at adb log, I found that the certificate test was invalid. This was due to that my device date was incorrectly set to year 2000, and the certificate was not valid at that time. 
- As this group is a Necessitas user forum, you don't have a guarantee that the Necessitas developers (BogDan et.al) and server maintainers (KDE, certificate holders) actually read the posts. Please forward the question to one of the developer lists:
Good luck, I hope you get it solved soon. 

TomasL

larivcl

unread,
Jan 15, 2014, 12:05:55 PM1/15/14
to andro...@googlegroups.com
Hi TomasL,

Thank you for your answer!
Some informations on my tests:
On my Galaxy S4 libraries have been downloaded, after several "Invalid Qt version" messages, and the application works.
For the Galaxy Tab 3, I ignored that it had intel atom processor, thank you. But I can't manage to get the battery status information with Qt 5.2...
For the Galaxy Tab 2 (android 4.1.2) Ministro displays invalid Qt version or sometimes starts to download the libraries but fails (corelib downloaded or not, next lib freezes with progress bar 0%). Maybe a problem with my internet connexion or libs repository? I have a 2MB/s access.
I tested with MMark13 downloaded from GooglePlay and a fresh Ministro download and had the same issue.

I suppose that "Invalid Qt version" message is a generic error message when something failed.

Claude


larivcl

unread,
Jan 15, 2014, 2:40:59 PM1/15/14
to andro...@googlegroups.com
With a Wifi connexion thru my phone 3G access, all libs are installed, and application works, There is something incorrect in my internet box settings.
Sorry for this useless thread.

Regards

Claude

larivcl

unread,
Jan 15, 2014, 7:03:29 PM1/15/14
to andro...@googlegroups.com
Necessitas Qt 4.8 could work on Galaxy Tab 3 as this device includes an arm emulator (Houdini), but Ministro doesn't dowload the libs.
I tested with a Qt 5.2 arm only apk, it works ! With lower performances.

If somebody knows how to read the battery level without QSystemInfo... It could help me a lot.

Thanks

tomasl

unread,
Jan 16, 2014, 3:58:09 AM1/16/14
to andro...@googlegroups.com
Claude, 
I'm glad you made it work. 

> With a Wifi connexion thru my phone 3G access, all libs are installed, and application works, There is something incorrect in my internet box settings. 
> Sorry for this useless thread.

This info is not useless at all. I've also had reports from customers/users of our app that say if they switch from or to 3g or WiFi connection, Ministro suddenly is able to download the libs. This is even if both connections seem to work fine in other apps. Since I have never seen such behaviour in my own testing, I've never filed a bug on this. Feel free to mention it (with adb logcat) to the developer list if you're able to reproduce this. 


> If somebody knows how to read the battery level without QSystemInfo
You could use JNI and java code for this. In Qt5.2, please check this example: http://qt-project.org/doc/qt-5/qtandroidextras-notification-example.html

I wasn't aware of the Houdini emulator. We have also customers that (by mistake) have bought Tab3 and cannot run our Necessitas app at the moment. We're currently rewriting it from Widgets to QML for Qt5.2, but that takes some time. If you by any chance get your Qt4.8 app run on this device, please let us know :)

Cheers, 

Tomas

larivcl

unread,
Jan 19, 2014, 3:01:04 PM1/19/14
to andro...@googlegroups.com
Tomas,

I think that a minor change in Ministro could allow the use of Necessitas on Galaxy S3, the CPU.ABI info is x86 but CPU_ABI2 is armeabi-v7a, so it could be tested if CPU_ABI isn't compatible.
I can't test it, I'm not really Java compatible... But BogDan could...

On galaxy tab 3 10.1
android.os.Build.CPU_ABI: x86
android.os.Build.CPU_ABI2: armeabi-v7a

https://jogamp.org/bugzilla/show_bug.cgi?id=853 

Regards,

Claude

tomasl

unread,
Jan 19, 2014, 3:59:26 PM1/19/14
to andro...@googlegroups.com
Claude, that's good news :)

I suppose you still mean Samsung Galaxy Tab 3 (not S3) when it comes to this. 

I forwarded this suggestion to the Necessitas developer list. (see http://mail.kde.org/pipermail/necessitas-devel/2013-November/thread.html)

TomasL

BogDan Vatra

unread,
Jan 23, 2014, 2:00:53 AM1/23/14
to android-qt, Necessitas
Hello folks,

I apologize for the slow reply.

Regarding the use of Necessitas on Galaxy Tab 3, well, I'm afraid I
don't have good news for you, because is not that easy as it sounds.
Let me explain why:
- First and foremost, I really don't believe that emulated Qt libs
will perform ok on that device. Qt does a lot of CPU computation and
IMHO your application will run very very slow, probably close to
unusable.
- The application sends to Ministro a list with all needed modules,
but it doesn't specify the architecture. Ministro downloads the best
libs for that device! E.g. if your application is compiled only for
armv5 and the device has an armv7 CPU, Ministro downloads the armv7
libs, and your application still runs ok because they are ABI
compatible. Actually in this case your application will run faster
because it uses faster libs (armv7 libs are compiled with VFP and
AFAIK they also have some faster instructions).
- Ministro doesn't know if it used by Necessitas SDK (Qt 4.x) or by
Qt-Project SDK (Qt 5.x) and I don't want to download arm Qt 5 libs on
such devices.

I see only two feasible solutions for you:
- manually unlist that device (all x86 devices) for your application.
- create a x86 Necessitas SDK and upload it to Ministro repos. For
sure is not an easy job, it needs a lot of time for developing and
testing! Sadly I don't have that time to do it, all my Qt/free time is
spent for Qt 5. Necessitas SDK didn't had x86 support from the start
because Android x86 devices were (I think they still are) very
uncommon comparing with arm devices.


Cheers,
BogDan.


2014/1/19 tomasl <toma...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "android-qt" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-qt+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

olear

unread,
Jan 23, 2014, 7:42:00 PM1/23/14
to andro...@googlegroups.com
Got issues here too, it seems Ministro don't support Qt4 anymore(?) Are there any fixes/workarounds for this? Got several applications that suffers from this problem, and are now completely broken and useless on new installations or reinstalls.

I'm unable to upgrade to Qt5 (I need to support api-7).

Regards
olear

BogDan Vatra

unread,
Jan 24, 2014, 1:34:13 AM1/24/14
to android-qt
Hi,

Can you please give us more info on this matter? I need to know some
details about the devices that you are using and links to your
applications, of course the apps should be free (gratis) and they
don't need strange permissions, otherwise please send me the .apks and
I'll install them into an emulator.

Cheers,
BogDan.


2014/1/24 olear <ole...@gmail.com>:

olear

unread,
Jan 24, 2014, 11:32:25 AM1/24/14
to andro...@googlegroups.com
Hi,

Did some more testing, I get "Wrong Qt version" with Android 2.1 (api7) on a Xperia U20i, but not on Android 4.0 on a Galaxy S2 using the same apk.

I run Necessitas on CentOS6/Windows7 and test on Android 2.1 (Xperia U20i and others) and 4.0 (Galaxy S2 and others).

It's easy to replicate the problem, just create a new project and build.

http://bob.fxarena.net/android/Foo-debug.apk
http://bob.fxarena.net/android/foo.tgz

I also tested with different versions of Ministro, but no changes. Maybe you check for Android version at server level? Ministro worked perfectly with this setup, I just didn't notice the issue before I reinstalled one of the devices.

olear

larivcl

unread,
Jan 26, 2014, 9:46:08 AM1/26/14
to andro...@googlegroups.com, Necessitas
Hello Bogdan, all

Bogdan, thank you for your answer, I have some additional informations

Houdini does not work as a simulator but uses the binary code translation, the performance loss is minimized.

Please see :
http://stackoverflow.com/questions/13005303/how-does-native-android-code-written-for-arm-run-on-x86

I did some additional testing.

Please don't do that, it's only for testing purpose !

I have two rooted devices, one with an arm processor and the other with an intel atom, my applications work on the arm device with the Necessitas version, and I have ported them on Qt5.2.
After a Ministro fresh install on the atom device, I copied the directories "dl" and "xml" of org.kde.necessitas.ministro/files from the arm to the atom device and installed my Necessitas based apps . Everything works well with arm libs, fluidity is quite comparable.
After deploying Qt5.2 "Elastic nodes" example with the x86 kit and Ministro option,  Qt5 x86 libs were downloaded. The example works with the same fluidity with Qt5.2 or Necessitas.
In the directory org.kde.necessitas.ministro a second directory "1" has been created, containing Qt5 libs.
I think that no confusion can be made between Necessitas and Qt5 libs as they don't have the same name.
The application's speed is only slightly affected by Houdini.

So if an application requires necessitas libs (4.x) and Android indicates two processors (x86 and ARMv7), it would be possible to download the Necessitas armv7, Qt5 based applications will always use Qt5 libs.

It could be very interesting to allow Necessitas compatibility for x86 devices with Houdini arm code translation.

Regards,

Claude

Vincent GRETILLAT

unread,
Jan 27, 2015, 9:56:51 AM1/27/15
to andro...@googlegroups.com, necessit...@kde.org
Hello All !
 
I got the same problem with the message "Invalid Qt version" when I try to compile via C4droid the available Qt single file example.
 
When I installed the C4droid software, I checked the installation of Qt and SDL libraries. Something was unpacked but when I launch the compilation I get the message "Additional SDL libraries need to be installed". When approved, Ministro try to load the additional libraries and I get the "Invalid Qt version" that stops immediately the compilation process.
 
Can anybody help me or have any suggestion to try some fixing tests ?
 
Other information : the SDL examples are compiled without any problem.
 
Hw configuration : Samsung S4
Sw configuration : Android v4.4.2 / Latest version of C4droid used to compile the C4droid examples.
 
Regards,
 
Vincent.

Marco Bernasocchi

unread,
Jan 27, 2015, 10:02:21 AM1/27/15
to andro...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

FYI:

Hi BogDan,

I found that https://download.qt.io points to the same location and has
a valid certificate.
If you would be able to replace any occurrence of
download.qt-project.org with download.qt.io in the libs-5.4.xml file I
assume that the issues should be fixed.

Cheers,
Matthias

On 27.01.2015 12:32, BogDan wrote:

- - hide quoted text -
> Hi, I'm sorry for the inconvenience, it will be soon fixed by
Digia.Sadly, is not possible to use unencrypted connections by default
for security concerns.But if you want to use it locally you can set
the non-secured url in your ANDROID_DIR/res/libs.xml
> Cheers,BogDan.
>
>
> From: Matthias Kuhn <matt...@opengis.ch> To: BogDan
> <bog_d...@yahoo.com> Cc: Marco Bernasocchi <ma...@opengis.ch>
> Sent: Tuesday, January 27, 2015 1:25 PM Subject: Expired
> Certificate for ministro repository
>
>
> Hi BogDan,
>
> How are you?
>
> Fresh installations of Qt-based applications on Android are
> currently complaining about missing Qt. The reason seems to be that
> the certificate for the repository expired two days ago.
>
> Opening the following link in a web browser also gives a security
> error:
> https://download.qt-project.org/ministro/android/qt5/qt-5.4/
>
> I will try to use an unencrypted http connection for the moment but
> it would be nice to have this fixed.
>
> Thank you very much, Matthias
> -- You received this message because you are subscribed to the
> Google Groups "android-qt" group. To unsubscribe from this group
> and stop receiving emails from it, send an email to
> android-qt+...@googlegroups.com
> <mailto:android-qt+...@googlegroups.com>. For more options,
> visit https://groups.google.com/d/optout.

- --
Marco Bernasocchi
opengis.ch - berna.io - 27summits.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUx6h1AAoJEGU18tQ5+5haaEoP/izqvw8W4w6rIk+OO/4kNbD0
RF8sy3BrtFpZ6krH09+nE/3GWyRdopSyAhHZ4pF+SxwDUfKEW3SBSvI2Ew+ZH4pa
DBad0Ts5mrsf8KrnkgQ51rjirAmCFhdx8vxL7fHke6eTsj8bhAwTbBYHHp57JaqD
BFptukwh0s0rDxVEcd4V9qSFaNEyDbAETEtH0E5nRlsQYaVwzLNcbqlQCbtgI/6U
pW0oYrxavm7xr6To3FOCDEFz92RIrE5fMbPNLfmN0CppQapqQar29s+WDtsSsHpM
hV+0cDolebmzyCZlfk6qRBKeZYepFPWqXOYdx/xUtj/I9mLFzqehPk8yDY69x+aL
SCv6Tud9ZuOXx72MlRAgFgeCqF651GRgAkm6QhEGPSQs6EjfrH6K1RNVdPcQD6lp
2L1EzMzrghTZs3WrfcR6ZFC7oTk2S+koEWAcaxrFvONg+3ojkYeccfZ0ntvjusQP
a9LyoFcEIIfRbYqkxQNXxRbq4oHHtFTWxuP/RlRHNTIXeFoemAvZbrw8RD9J2K/s
eo0E86DODeb8TdW2z3UCFTWDLZXesk5aj+hl1K7zFDg6GEblqpCNT0W6MTXopCmS
B06egwNZATxF8paKv9ok3d2QDgXIogv4ZU4qWiQS9L0UtSXuH/0kpz90wiq6U+sR
5t4bdw14SdKsb24ELuaQ
=EIDa
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages