无法运行 Unity 8 openclipart 范围示例

无法运行 Unity 8 openclipart 范围示例

按照指示页面上,我已经安装了 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)

有什么建议么?

答案1

由于 Unity 8(以及unity-scope-tool其扩展)的设计使其可以在 Mir 和 X11 下运行,因此依赖关系中存在一些歧义。您收到的错误表明它正在尝试使用 Mir 后端。

您应该能够通过安装该unity8-fake-env软件包来修复该问题,该软件包提供了在 X 下运行该工具所需的一些 API:

sudo apt-get install unity8-fake-env

相关内容