简体   繁体   English

在ubuntu sdk中运行html5应用模板失败?

[英]Running html5 app template in ubuntu sdk failed?

My configuration : 我的配置:

Ubuntu 14.04 LTS
64bit
Qtcreator 3.1.1
everything is up-to-date

Hello everyone, I'm trying to just compile and run an HTML5 App for ubuntu Phone, but after trying and searching for a week now, I still can't make it run ! 大家好,我正在尝试为ubuntu Phone编译并运行HTML5应用,但是尝试并搜索了一周之后,我仍然无法运行它! For the moment I just want to run the simple html5 app template. 目前,我只想运行简单的html5应用模板。

This is the situation : 这是情况:

The problem is when I compile the default template : theses are the errors I get : 问题是当我编译默认模板时:这些是我得到的错误:

  1. desktop_Exec(app): found unexpected Exec with architecture 'all':./qtc_device_debughelper.py desktop_Exec(app):发现架构为“ all”的意外Exec:./ qtc_device_debughelper.py
  2. security_policy_groups_safe_app(debug):(REJECT)reserved policy group 'debug':not for production use security_policy_groups_safe_app(debug):( REJECT)保留策略组'debug':不适用于生产
  3. security_policy_version_matches_framework(app.apparmor):invalid framework 'ubuntu-core-15.04' security_policy_version_matches_framework(app.apparmor):无效的框架'ubuntu-core-15.04'

And when I try to edit it anyway : This is what I get : 当我尝试编辑它时:这就是我得到的:

Traceback (most recent call last):
File "/tmp/qtc_device_applaunch.py", line 29, in <module>
gi.Repository.get_default().require("UbuntuAppLaunch")
gi.RepositoryError: Typelib file for namespace 'UbuntuAppLaunch' (any version) not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 2158, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/qtc_device_applaunch.py", line 33, in <module>
from gi.repository import UpstartAppLaunch as UAL
File "/usr/lib/python3/dist-packages/gi/importer.py", line 53, in find_module
'introspection typelib not found' % namespace)
ImportError: cannot import name UpstartAppLaunch, introspection typelib not found

I have been looking for this everywhere but I couldn't find something that works. 我一直在到处寻找它,但是找不到有效的东西。 I need some of your knowledge to help me understand all this! 我需要您的一些知识来帮助我理解所有这一切!

I have the same errors. 我有同样的错误。 I think that the 'ubuntu-core-15.04'-error is related to the version of Ubuntu you are using. 我认为“ ubuntu-core-15.04”错误与您使用的Ubuntu版本有关。 I use Mint 17, which is based on Ubuntu 14.04. 我使用基于Ubuntu 14.04的Mint 17。 Canonical recommends the newer Ubuntu Versions for app-developing, because there is some stuff in it they changed. Canonical建议使用较新的Ubuntu版本进行应用程序开发,因为其中有些内容已经更改。

unfortunately, I can't help you with the other errors. 不幸的是,我无法帮助您解决其他错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM