module "QtQuick.Controls" is not installed

11,119 views
Skip to first unread message

David Skinner

unread,
Apr 2, 2014, 11:13:49 PM4/2/14
to go-...@googlegroups.com
I am just getting started with qml and I am pretty much clueless. Any help would be appreciated.

I am running go 1.2 on Debian sid with QT 5.2.1

With my first go program and my first qml file, I am getting:

2014/04/02 21:50:24 file:///home/david/local/src/dasa.cc/universe/qml/SenetWindow/SenetWindow.qml:2 module "QtQuick.Controls" is not installed
file:///home/david/local/src/dasa.cc/universe/qml/SenetWindow/SenetWindow.qml:3 module "QtQuick.Window" is not installed
file:///home/david/local/src/dasa.cc/universe/qml/SenetWindow/SenetWindow.qml:2 module "QtQuick.Controls" is not installed
file:///home/david/local/src/dasa.cc/universe/qml/SenetWindow/SenetWindow.qml:3 module "QtQuick.Window" is not installed
exit status 1

in my QML file I have the following imports:
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Window 2.0

Is there an easy fix for this? Something I need to Install perhaps?

Gustavo Niemeyer

unread,
Apr 2, 2014, 11:23:28 PM4/2/14
to David Skinner, Go QML
Hey David,

Debian probably splits the QtQuick.Controls plugin in its own package.
Try running something like this:

$ apt-cache search quick controls | grep 'quick.*controls'
> --
> You received this message because you are subscribed to the Google Groups
> "go-qml" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to go-qml+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--

gustavo @ http://niemeyer.net

David Skinner

unread,
Apr 2, 2014, 11:38:58 PM4/2/14
to go-...@googlegroups.com
Brilliant! :)

$  apt-cache search quick controls | grep 'quick.*controls'
libqt5qml-quickcontrols - transitional dummy package for Qt 5 Quick Controls module plugin
$ sudo apt-get install libqt5qml-quickcontrols

2014/04/02 22:32:02 file:///home/david/local/src/dasa.cc/universe/qml/SenetWindow/SenetWindow.qml:3 module "QtQuick.Window" is not installed
exit status 1

You made one error go away completely. I am now looking for the other one.

Mark Saward

unread,
Apr 3, 2014, 5:14:43 AM4/3/14
to go-...@googlegroups.com
iirc, there's a whole bunch of packages on debian to install.  Just keep repeating searches like your one below, and install everything that sounds like it might be vaguely related :)  That's how I managed to get all the dependencies installed.

David Skinner

unread,
Apr 3, 2014, 3:01:34 PM4/3/14
to go-...@googlegroups.com
I had to install  qtdeclarative5-window-plugin

Everything is now working.

Thanks to everyone that assisted me. Much appreciated.

Gour

unread,
May 29, 2014, 6:29:33 AM5/29/14
to go-...@googlegroups.com
On Thursday, April 3, 2014 11:14:43 AM UTC+2, Mark Saward wrote:
iirc, there's a whole bunch of packages on debian to install.  Just keep repeating searches like your one below, and install everything that sounds like it might be vaguely related :)  That's how I managed to get all the dependencies installed.

I did install everything I could think of releated to Qt5 on my Debian Sid, but the attempt to build go-qml gives:

$ go get gopkg.in/qml.v0
# pkg-config --cflags Qt5Core Qt5Widgets Qt5Quick
Package Qt5Quick was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Quick.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Quick' found
exit status 1


Any clue?

David Marceau

unread,
May 29, 2014, 8:18:06 AM5/29/14
to go-...@googlegroups.com
For it to work on ubuntu desktop:
sudo apt-get install git golang pkg-config golang-go.tools
sudo apt-get install qtbase5-private-dev
sudo apt-get install qtdeclarative5-private-dev
sudo apt-get install libqt5opengl5-dev
sudo apt-get install gccgo gccgo-go
sudo apt-get install g++ g++-multilib

mkdir -p /home/gour/goqmlstuff
export GOPATH=/home/gour/goqmlstuff

go get gopkg.in/qml.v0
cd /home/gour/goqmlstuff/src/gopkg.in/qml.v0/examples/customtype
go build

For it to work on ubuntu touch, I found a trick to avoid getting
"storage exceeded" errors when installing the above packages. Do the
following after every apt-get install:
sudo apt-get clean
sudo apt-get autoremove
This explains why I didn't make the apt-get install lines into ONE HUGE
apt-get install command above.

Cheers,
David Marceau
http://adequatech.ca

Eric Martens

unread,
Jun 6, 2014, 9:48:16 PM6/6/14
to go-...@googlegroups.com
David,

I ran through your instructions, but I'm still hitting the same issue as the original poster. Tried Gustavo's apt-cache search as well, but it's telling me all the relevant packages are already installed. The example source code builds, but on execution (for the particles example) I get the following:
module "QtQuick" is not installed
module "QtQuick.Particles" is not installed
module "QtGraphicalEffects" is not installed
... and so on.

I have to be missing an environment variable somewhere, right?

Thanks in advance,
Eric

Eric Martens

unread,
Jun 6, 2014, 10:13:22 PM6/6/14
to go-...@googlegroups.com
... and I should learn to read better. sudo apt-get install ubuntu-sdk fixed my issue. Thanks to all for the answers and help posted here, you guys are great.

Eric

David Skinner

unread,
Jun 8, 2014, 11:02:07 AM6/8/14
to Eric Martens, Go QML
I have never created a package in Debian, do not know how. I cannot help but think that if i deploy my software I will have to learn. I am also new to QML so I do not understand all of the dependencies. I cannot help but think that is would be nice if some one smarter than me that actually knows what they are doing could prepare a dependencies package for Debian that would make life easier for the debian/qml community. I know that my system is working but I am not entirely sure why. Sorry I was not more help.


--
You received this message because you are subscribed to a topic in the Google Groups "go-qml" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/go-qml/7zLwORmaUOc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to go-qml+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages