M HYPE SPLASH
// updates

module "OpenGLUnderQML" is not installed

By Abigail Rogers

Here's what my main.qml file does to cause this error:

import OpenGLUnderQML 1.0

What should I install on ubuntu?

1 Answer

Simple search on packages.ubuntu.com for OpenGLUnderQML gives the following package name - qtdeclarative5-examples. If you install it you will get all needed dependencies such as Qt5 and Qt Quick.

So you need to install this package and qt5 development tools:

sudo apt install qtdeclarative5-examples qtdeclarative5-dev qt5-default

and if you want you can install html-help with

sudo apt install qtdeclarative5-doc-html

Also note, that you can use any of examples located in /usr/lib/x86_64-linux-gnu/qt5/examples/quick (including yours OpenGLUnderQML one - /usr/lib/x86_64-linux-gnu/qt5/examples/quick/scenegraph/openglunderqml/openglunderqml).

You can compile OpenGLUnderQML and test it with commands below:

cp -ar /usr/lib/x86_64-linux-gnu/qt5/examples/quick/scenegraph/openglunderqml ~/
cd ~/openglunderqml
qmake
make
./openglunderqml

openglunderqml on 18.04 LTS

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy