Qt的Necessitas错误 - 找不到部长的服务 [英] Qt Necessitas error - Can't find Ministro service

查看:436
本文介绍了Qt的Necessitas错误 - 找不到部长的服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了 Necessitas安装用于Linux,但我不能让我的 Hello World的在调试器的A​​ndr​​oid虚拟机的Qt应用程序的运行。

I downloaded the Necessitas installer for Linux, but I can't make my "Hello World" Qt application run on the debugger's Android VM.

这给出了这样的错误:

Can't find Ministro service.
The application can't start.

这是从Qt Creator的调试日志:

And this is the Debug log from Qt Creator:

Starting remote process...D/dalvikvm( 2497): GC freed 699 objects / 55432 bytes in 152ms
D/dalvikvm( 2497): GC freed 65 objects / 2640 bytes in 58ms
W/System.err( 2497): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://search?q=pname:org.kde.necessitas.ministro }
W/System.err( 2497):    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1408)
W/System.err( 2497):    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
W/System.err( 2497):    at android.app.Activity.startActivityForResult(Activity.java:2749)
W/System.err( 2497):    at org.kde.necessitas.origo.QtActivity$4.onClick(QtActivity.java:266)
W/System.err( 2497):    at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:158)
W/System.err( 2497):    at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 2497):    at android.os.Looper.loop(Looper.java:123)
W/System.err( 2497):    at android.app.ActivityThread.main(ActivityThread.java:4363)
W/System.err( 2497):    at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 2497):    at java.lang.reflect.Method.invoke(Method.java:521)
W/System.err( 2497):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
W/System.err( 2497):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
W/System.err( 2497):    at dalvik.system.NativeStart.main(Native Method)

所以我不能运行我的程序。它编译不然。从我所看到的互联网上,部长是部署在Android需要Qt应用程序共享Qt库的服务。

So I can't run my program. It compiles otherwise. From what I've seen on the Internet, Ministro is a service for deploying the shared Qt libraries needed by Qt applications on Android.

那么,为什么我收到此错误(在新安装的Necessitas +空的Andr​​oid项目)?而我该怎么做才能让我的程序运行,是否需要手动安装Qt库?从哪里?

So why am I getting this error (on a freshly installed Necessitas+empty Android project)? And what do I do to make my program run, do I need to manually install the Qt libs? From where?

推荐答案

如果我没记错的话,你必须使用修改后的Qt Creator的附带Necessitas并在第一时间你想你的应用程序部署到Android设备上,你有采取以下步骤:

If I remember correctly, you had to use the modified Qt creator that comes with Necessitas and the first time you wanted to deploy your application to Android device, you had to take the following steps:

  1. 在Qt Creator中的左侧去项目
  2. 在在Necessitas的Qt对于Android的运行选项卡中的项目窗口,你必须去 部署配置,单击展开详细信息
  3. 在详细检查安装部长全系统的Qt的共享库安装程序,并选择您先前下载的APK(我想我从这里<一个得到它href="http://necessitas.kde.org/necessitas/ministro.php">http://necessitas.kde.org/necessitas/ministro.php)
  4. 在刚刚建立并运行程序的正常
  1. On the left side of Qt Creator go to Projects
  2. In the projects window in the run tab of Necessitas Qt for android you have to go to Deploy configurations and click to expand details
  3. In details check Install Ministro system wide Qt shared libraries installer and select the APK you downloaded earlier (I think I got it from here http://necessitas.kde.org/necessitas/ministro.php)
  4. Just build and run your program as normally

让我知道,如果下面的步骤为你工作。我认为还有另一种方式,这涉及到亚行和命令行,但我不得不查找我的笔记,我现在不跟我有...

Let me know if the following steps worked for you. I think there is yet another way, which involves ADB and command line, but for that I would have to lookup my notes, which I currently do not have with me...

这篇关于Qt的Necessitas错误 - 找不到部长的服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆