按照此页面的说明,我安装了 Ubuntu SDK 并下载了教程源代码。
openclipart 范围构建正确,但出现运行时错误:
$ unity-scope-tool src/openclipart-scope.ini
scoperegistry: no remote registry configured, only local scopes will be available
RegistryObject::ScopeProcess::exec(): Process for scope: "openclipart-scope" started
file:///usr/share/unity8/Dash/DashContent.qml:100: TypeError: Cannot read property 'loaded' of null
file:///usr/share/unity8/ScopeTool.qml:77:31: Unable to assign [undefined] to scopes_ng::Scope*
file:///usr/share/unity8/ScopeTool.qml:149:23: Unable to assign null to QString
(unity-scope-tool:6243): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Themes/Ambiance/TabBarStyle.qml:303: TypeError: Property 'select' of object QQuickRepeater(0x2711350) is not a function
file:///usr/share/unity8/Dash/DashContent.qml:100: TypeError: Cannot read property 'loaded' of null
Need to use QMirServerApplication
Segmentation fault (core dumped)
有什么建议么?
由于 Unity 8(以及
unity-scope-tool
扩展)的设计使其可以在 Mir 和 X11 下运行,因此依赖关系中存在一些歧义。您收到的错误表明它正在尝试使用 Mir 后端。您应该能够通过安装
unity8-fake-env
软件包来解决问题,该软件包提供了一些在 X 下运行该工具所需的 API: