How to use qt without ministro?

269 views
Skip to first unread message

Leaf John

unread,
Mar 16, 2011, 1:38:37 AM3/16/11
to android-qt
I've build necessitas, and used script push_xxx.sh install the .so
files into my android virtual device, the procedure is ok.

And when I try to launch an Qt Application via android qt creator, the
emulator ask me to install ministro.

How to launch this app without installing ministro?

Damien Buhl

unread,
Mar 16, 2011, 4:47:26 AM3/16/11
to andro...@googlegroups.com
Hi John,

Starting from Android Qt Creator without ministro is easy, just go in the Projects tab and choose the Run view, there you can choose the Deploy Configurations.

You'll get more information on this page: http://sourceforge.net/p/necessitas/wiki/How%20to%20write%20Qt%20apps%20for%20Android/

Cheers,

--
daminetreg


----- Message d'origine -----
De: Leaf John <leaf...@gmail.com>
Date: Tue, 15 Mar 2011 22:38:37 -0700 (PDT)
Sujet: How to use qt without ministro?
À: android-qt <andro...@googlegroups.com>

Martin Koller

unread,
Mar 16, 2011, 6:26:45 AM3/16/11
to andro...@googlegroups.com

AFAIU, Ministro installs device system wide Qt libs.
If you don't want that, then you need to deliver the Qt libs
in your .apk package.
I did that in my app and it works.
--
Best regards/Schöne Grüße

Martin
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments

favor

unread,
Mar 17, 2011, 7:20:23 AM3/17/11
to android-qt

> AFAIU, Ministro installs device system wide Qt libs.
> If you don't want that, then you need to deliver the Qt libs
> in your .apk package.
> I did that in my app and it works.
> --

how to deliver the Qt libs in my .apk package? please give me many
hints, thanks

Martin Koller

unread,
Mar 17, 2011, 2:41:53 PM3/17/11
to andro...@googlegroups.com

in the file res/values/libs.xml include e.g.

<?xml version='1.0' encoding='utf-8'?>
<resources>
<array name="bundled_libs">
<item>QtCore</item>
<item>QtXml</item>
<item>QtGui</item>
<item>QtNetwork</item>
<item>QtSql</item>
<item>QtSvg</item>
<item>Qt3Support</item>
</array>
</resources>

The order of the libs is important as Android loads them in this order and
a loaded lib must be able to resolve all symbols.

--
Best regards/Schöne Grüße

Martin
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at

signature.asc

favor

unread,
Mar 17, 2011, 10:14:18 PM3/17/11
to android-qt
I changed my res/values/libs.xml file, like what you had told me;
it does nothing different with the below configuration xml file:

<?xml version='1.0' encoding='utf-8'?>
<resources>

<array name="qt_libs">
<item>QtCore</item>
<item>QtGui</item>
</array>
<array name="bundled_libs"/>
</resources>

I don't know why? I have tried serial times today.
sorry for this silly question.

> <?xml version='1.0' encoding='utf-8'?>                                                                                          
> <resources>                                                                                                                    
>     <array name="bundled_libs">                                                                                                
>         <item>QtCore</item>                                                                                                    
>         <item>QtXml</item>                                                                                                      
>         <item>QtGui</item>                                                                                                      
>         <item>QtNetwork</item>                                                                                                  
>         <item>QtSql</item>
>         <item>QtSvg</item>
>         <item>Qt3Support</item>
>     </array>
> </resources>
>
> The order of the libs is important as Android loads them in this order and
> a loaded lib must be able to resolve all symbols.
>
> --
> Best regards/Schöne Grüße
>
> Martin
> ()  ascii ribbon campaign - against html e-mail
> /\  www.asciiribbon.org  - against proprietary attachments
>
> Geschenkideen, Accessoires, Seifen, Kulinarisches:www.bibibest.at
>

>  signature.asc
> < 1KViewDownload

Martin Koller

unread,
Mar 18, 2011, 8:37:52 AM3/18/11
to andro...@googlegroups.com
On Friday, 18. March 2011 03:14:18 favor wrote:
> <array name="qt_libs">

Do you see the difference in my XML and in yours ?

signature.asc
Reply all
Reply to author
Forward
0 new messages