Using use_local_qt_libs

/#!/JoePea trusktr at gmail.com
Thu Jan 3 20:21:53 UTC 2013


For BogDan's step 3, you can find the "deploy local qt libs" option in the
"Run" settings for your project in the "Projects" tab of Qt Creator. After
you click on "Projects", you'll see the various targets for your builds,
and underneath the name of each target you'll see "Build" and "Run". Click
on "Run". That's where the settings are.

*/#!/*JoePea


On Thu, Jan 3, 2013 at 3:13 AM, BogDan <bog_dan_ro at yahoo.com> wrote:

> There is too much magic behind it, and to be honest I don't remember it
> all now  :)
> Try the following steps instead:
> 1. download necessitas sdk (make sure you are checking the right arm
> version for your device (v5 or v7)).
> 2. use QtCreator to create a dummy qt gui application for android.
> 3. check "deploy local qt libs" and run the application. Now on your
> device you'll have Ministro's libs deployed as local. Then you can start
> your application with local libs. Check [1] to see how qtc is running apps
> with local qt libs.
> 4. build your own qt and follow the steps from my previous mails.
>
>
> [1]
> http://quickgit.kde.org/?p=android-qt-creator.git&a=blob&h=261c62bc35e4c665fb01c0bf1dea82c9b646593c&hb=db11e6f73de37894aa2076ffa08af75df2a977c5&f=src%2Fplugins%2Fandroid%2Fandroidrunner.cpp
>
> BogDan.
>
>
>
>
>   ------------------------------
> *From:* "micke.prag at telldus.se" <micke.prag at telldus.se>
> *To:* BogDan <bog_dan_ro at yahoo.com>
> *Cc:* necessitas-devel at kde.org
> *Sent:* Thursday, January 3, 2013 1:03 PM
> *Subject:* Re: Using use_local_qt_libs
>
>  Ok. I might need to clarify what I am trying to do a bit more.
> I want a custom build of the qt libraries on the device. The ministro
> folder is read only so I cannot replace them directly. My idea was the
> following
> 1) Point my application to load Ministro libs (which I know is working) as
> local.
> 2) Copy the Ministro libs to a new writable folder and point the
> application there instead
> 3) Replace the libraries with my version and hopfully the application will
> still work ;)
> Currently I am stuck on 1...
> I don't mind doing things by hand and skip the "magic" so I learn how
> things are working. Things will be much easier to correct if something goes
> wrong. But maybe I need to install the Necessitas/QtCreator? I am currently
> using the stock QtCreator with my CMake setup and it is working really well
> for normal deployment...
>
>
> 2013-01-03 11:49 skrev BogDan:
>
> Hi,
>
> Hi, Thank you BogDan. I am not acctually using the QtCreator plugin. I am
> trying to do the same thing but using the command line approach. Mostly for
> two reasons. 1) Learning. This way I know what is going on and understands
> better how things are working together 2) In the final project it is all
> integrated in CMake so QtCreator isn't needed. So, back to my initial
> question. Could the downloaded libs from Ministro be used as "local"? I
> know it is not what I want in the end but it is a minor step so I can
> deploy my own set of libraries to another location. Or is the directory
> structure different when using local libs than the ministro folders?
>
> I'm sorry but why you want to use Ministro's libs as "local"? Why your application can't use Ministro's libs as they are? I'm confused ...
>
> Anyway if you want to build your own Qt libs and use them as local, the easiest way is to use QtCreator to deploy them to device, because it does all the "magic" things for you.
>
> BogDan.
>
> Regards Micke   2013-01-03 11:28 skrev BogDan: Hi, Try to use QtCreator.
> This are the steps I'm using to develop qt on android:
>
> 1. build qt for Android.
> 2. Add it to QtCreator Qt Versions and Kits.
> 3. Import qt build to QtCreator.
> 4. create a new application based on previous kit.
> 5. check "Deploy local Qt libs" to push these libs to the device.
> 6. start application and debug.
> 7. most of the time I need to restart the debugging or to change only the application so I go to step 6
> 8. (only if) I do some changes to qt.
> 9. build qt (build all projects)
> 10. go to step 5 (not 6 !).  BogDan.
>
>  ________________________________ From: Micke Prag <micke.prag at telldus.se>
> To: necessitas-devel at kde.org Sent: Wednesday, January 2, 2013 11:34 PM
> Subject: Using use_local_qt_libs Hello, I am trying to build the qt
> libraries so I can help out with the project. I have the same issues as
> Kate (
> http://mail.kde.org/pipermail/necessitas-devel/2012-December/001293.html)
> with overriding the necessitas libraries.
> Since /data/data/org.kde.necessitas.ministro/files/qt/libs is read-only on
> my device my idea was to use the feature "use_local_qt_libs" to be able to
> supply my own set of libraries. My first step was to try getting it to work
> with the libraries supplied by Ministro. I am starting my application like
> this: adb shell am start -n
> com.telldus.live.mobile/org.kde.necessitas.origo.QtActivity -e
> use_local_qt_libs true -e libs_prefix
> /data/data/org.kde.necessitas.ministro/files/qt/ This doesn't work and I
> get the following in the logcat: W/System.err( 2140):
>
>   java.lang.ClassNotFoundException: Didn't find class "org.kde.necessitas.industrius.QtActivityDelegate" on path: W/System.err( 2140):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65) W/System.err( 2140):    at java.lang.ClassLoader.loadClass(ClassLoader.java:501) W/System.err( 2140):    at java.lang.ClassLoader.loadClass(ClassLoader.java:461) W/System.err( 2140):    at org.kde.necessitas.origo.QtActivity.loadApplication(QtActivity.java:178) W/System.err( 2140):    at org.kde.necessitas.origo.QtActivity.startApp(QtActivity.java:369) W/System.err( 2140):    at org.kde.necessitas.origo.QtActivity.onCreate(QtActivity.java:578) W/System.err( 2140):    at android.app.Activity.performCreate(Activity.java:5104) W/System.err( 2140):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) W/System.err( 2140):    at
>  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
>  W/System.err( 2140):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) W/System.err( 2140):    at android.app.ActivityThread.access$600(ActivityThread.java:141) W/System.err( 2140):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) W/System.err( 2140):    at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err( 2140):    at android.os.Looper.loop(Looper.java:137) W/System.err( 2140):    at android.app.ActivityThread.main(ActivityThread.java:5039) W/System.err( 2140):    at java.lang.reflect.Method.invokeNative(Native Method) W/System.err( 2140):    at java.lang.reflect.Method.invoke(Method.java:511) W/System.err( 2140):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) W/System.err( 2140):    at
>  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) W/System.err( 2140):    at dalvik.system.NativeStart.main(Native Method) I
>  using these parameters correctly for starting my application with local libraries? Is this suppose to work? Can I do something else to get write access to the minister folder? Kate, how did you solve it? --  Micke Prag _______________________________________________ Necessitas-devel mailing list Necessitas-devel at kde.org https://mail.kde.org/mailman/listinfo/necessitas-devel
>
>
>
>
> _______________________________________________
> Necessitas-devel mailing list
> Necessitas-devel at kde.org
> https://mail.kde.org/mailman/listinfo/necessitas-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/necessitas-devel/attachments/20130103/42929723/attachment.html>


More information about the Necessitas-devel mailing list