我在我的系统上运行的是 Ubuntu 12.04.2 LTS 版本,并且还按照以下步骤安装了 Ubuntu SDK:
另外,我已经尝试按照以下内容开发我的第一个应用程序:
但问题是,当我运行该程序时,我只得到一个空白屏幕作为输出,并且运行该程序后,我在控制台上看到以下一组行:
Starting /usr/lib/i386-linux-gnu/qt5/bin/qmlscene /home/roopa/CurrencyConverter/CurrencyConverter.qml
Qt at-spi: error getting the accessibility dbus address: "The name org.a11y.Bus was not provided by any .service files"
Accessibility DBus not found. Falling back to session bus.
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
/usr/lib/i386-linux-gnu/qt5/bin/qmlscene exited with code 0
我不明白这是什么。有人能帮我解决一下吗?
请找到我尝试运行的代码:
import QtQuick 2.0
import Ubuntu.Components 0.1
MainView {
objectName: "mainView"
applicationName: "CurrencyConverter"
id: root
width: units.gu(60)
height: units.gu(80)
property real margins: units.gu(2)
property real buttonWidth: units.gu(9)
Label {
id: title
ItemStyle.class: "title"
text: i18n.tr("Currency Converter")
height: contentHeight + root.margins
anchors {
left: parent.left
right: parent.right
top: parent.top
}
}
}