Using use_local_qt_libs

Micke Prag micke.prag at telldus.se
Wed Jan 2 21:34:27 UTC 2013


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/necessitas-devel/attachments/20130102/87258a1c/attachment.html>


More information about the Necessitas-devel mailing list