Trying to run my project test in Android Device I receive this message QML module not found (QtQuick.VirtualKeyboard). I Checked my apt list and I have those libaries installed.
qml-module-qtquick-virtualkeyboard/bionic 5.9.5+dfsg-0ubuntu1 amd64
qtvirtualkeyboard-plugin/bionic 5.9.5+dfsg-0ubuntu1 amd64
qtvirtualkeyboard5-examples/bionic 5.9.5+dfsg-0ubuntu1 amd64
This error does not occur when I deploy to Dekstop.
Related
I'm using Wayland session on Debian 11 (sid).
Installed QtCreator from their website via .sh script but it doesn't launch. When running from '~/Qt/Tools/QtCreator/bin' directory in the terminal I get:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use
QT_QPA_PLATFORM=wayland to run on Wayland anyway. qt.qpa.plugin: Could
not find the Qt platform plugin "wayland" in "" This application
failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl,
offscreen, vnc, xcb.
Aborted
Tried
QT_QPA_PLATFORM=wayland ./qtcreator
and
export QT_QPA_PLATFORM=wayland
./qtcreator
and
./qtcreator --platform=wayland
Also tried installing qt 6.0.3 and 5.15.
No luck, qtcreator doesn't launch.
We need to support to mp4 file in QtwebengineView. So we are trying to build qtwebengine of Qt 5.9.1 on msvc2015 x64, with proprietary codecs, by using following command at cmd with working directory is qtwebengine in source.
"D:\qt-everywhere-opensource-src-5.9.1\qtbase\bin\qmake.exe WEBENGINE_CONFIG+=use_proprietary_codecs"
we are facing below error.
WinRT is not supported.
QtWebEngine will not be built
We tried to follow following link:
How to compile Qt webengine (5.11) on Windows with proprietary codecs
But that didn't work either.
How can we build qtwebengine of qt 5.9.1 with proprietary codecs?
I just successfully build QtWebEngine 5.9.6
My build environment:
Windows7 x64
Visual Studio 2015 x64
jom 1.1.2
You can refer to my build process.
Before we start building, let's install the tools:
Python 2.7.13 from https://www.python.org/downloads/windows/
Perl (Strawberry vesion) from http://strawberryperl.com/
Bison and flex from https://sourceforge.net/projects/winflexbison/ (Rename win-bison.exe to bison.exe and win-flex.exe to flex.exe)
Gperf from http://gnuwin32.sourceforge.net/packages/gperf.htm
Download the source code for qt
git clone https://code.qt.io/qt/qt5.git
cd qt5
git checkout 5.9.6
perl init-repository --module-subset=qtwebengine,qtwebview
Let's start the formal build
cd qtwebengine
qmake.exe WEBENGINE_CONFIG+=use_proprietary_codecs
jom.exe
Then there's the long build process...
The final file will be generated in the qt5/qtwebengine/bin directory after the build is completed
I tried with the example modules given from Qt. and I downloaded the qt-everywhere-opensource-src-5.9.3 tar file and extract it.
then I run the following command.
./configure -v -prefix $PWD/qtbase -commercial -nomake tests -opengl
es2 -egl
but I got these errors.
Note: Also available for Linux: linux-clang linux-icc
Note: Dropped compiler flags '-pthread' when detecting library 'glib'.
Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.
Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
ERROR: Feature 'egl' was enabled, but the pre-condition '(features.opengl || features.openvg) && (features.angle || libs.egl)' failed.
EGL related libraries installed on the system.
Qt: 5.9.3
Qt Creator: 4.4.1
OS: Ubuntu 16.04
GPU: Intel Haswell
libva: 1.7.0
VA-API: 0.39.0
You're probably missing some packages. If you want wayland, you're most likely going to need dev packages for libwayland and libwayland-egl, but I'm not sure what they're called on Ubuntu.
I was trying to install pyotherside, but when running make I get:
cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/christian/pyotherside-1.5.1/src/src.pro -o Makefile
) && make -f Makefile
Project MESSAGE: PYTHON_CONFIG = python3-config
Project ERROR: Unknown module(s) in QT: qml quick svg
Makefile:44: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 3
I already checked this question suggesting to my Qt version would be to old, but qmake --version shows I have :
QMake version 3.0
Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu
which meets the requirements (5.1.0.). What else could it be? I am running Ubuntu 16.04.
You must install the following packages:
sudo apt-get install qtdeclarative5-dev libqt5svg5-dev
List of all Qt5 developement packages, available on Ubuntu.
Qt module dev package lib package
-------------------------------------------------------------------------
bluetooth qtconnectivity5-dev libqt5bluetooth5
concurrent qtbase5-dev libqt5concurrent5
connectivity qtmobility-dev libqtconnectivity1
contacts qtmobility-dev libqt5contacts5
core qtbase5-dev libqt5core5a
dbus qtbase5-dev libqt5dbus5
designer qttools5-dev libqt5designer5
designercomponents qttools5-dev libqt5designercomponents5
feedback qtmobility-dev libqt5feedback5
gallery qtmobility-dev libqtgallery1
gui qtbase5-dev libqt5gui5
help qttools5-dev libqt5help5
location qtmobility-dev libqt5location5
multimedia qtmultimedia5-dev libqt5multimedia5
multimediakit qtmobility-dev libqtmultimediakit1
network qtbase5-dev libqt5network5
nfc qtconnectivity5-dev libqt5nfc5
opengl libqt5opengl5-dev libqt5opengl5
organizer qtmobility-dev libqt5organizer5
positioning qtpositioning5-dev libqt5positioning5
printsupport qtbase5-dev libqt5printsupport5
publishsubscribe qtmobility-dev libqt5publishsubscribe5
qml qtdeclarative5-dev libqt5qml5
quick qtdeclarative5-dev libqt5quick5
quickparticles qtdeclarative5-dev libqt5quickparticles5
quicktest qtdeclarative5-dev libqt5quicktest5
quickwidgets qtdeclarative5-dev libqt5quickwidgets5
script qtscript5-dev libqt5script5
scripttools qtscript5-dev libqt5scripttools5
sensors qtmobility-dev, libqt5sensors5-dev libqt5sensors5
serialport libqt5serialport5-dev libqt5serialport5
serviceframework qtmobility-dev libqt5serviceframework5
sql qtbase5-dev libqt5sql5
svg libqt5svg5-dev libqt5svg5
systeminfo qtmobility-dev libqt5systeminfo5
test qtbase5-dev libqt5test5
uitools qttools5-dev ?
versit qtmobility-dev libqtversit1
webchannel ? ?
webkit libqt5webkit5-dev libqt5webkit5
websockets libqt5websockets5-dev libqt5websockets5
widgets qtbase5-dev libqt5widgets5
x11extras libqt5x11extras5-dev libqt5x11extras5
xml qtbase5-dev libqt5xml5
xmlpatterns libqt5xmlpatterns5-dev libqt5xmlpatterns5
I have just downloaded the source code for Qt 5.0 and compiled it on Ubuntu 12.10 64-bit. Running sudo make install seems to have copied the files to /usr/local/Qt-5.0.0:
So far so good. But when I fire up Qt Creator 2.5.2 and try to point it to the new build, I get an unusual error: The default mkspec symlink is broken.
What could possibly cause this sort of error? All of the symlinks under /usr/local/Qt-5.0.0/mkspecs are valid. The output of qmake -query is as follows:
QT_SYSROOT:
QT_INSTALL_PREFIX:/usr/local/Qt-5.0.0
QT_INSTALL_ARCHDATA:/usr/local/Qt-5.0.0
QT_INSTALL_DATA:/usr/local/Qt-5.0.0
QT_INSTALL_DOCS:/usr/local/Qt-5.0.0/doc
QT_INSTALL_HEADERS:/usr/local/Qt-5.0.0/include
QT_INSTALL_LIBS:/usr/local/Qt-5.0.0/lib
QT_INSTALL_LIBEXECS:/usr/local/Qt-5.0.0/libexec
QT_INSTALL_BINS:/usr/local/Qt-5.0.0/bin
QT_INSTALL_TESTS:/usr/local/Qt-5.0.0/tests
QT_INSTALL_PLUGINS:/usr/local/Qt-5.0.0/plugins
QT_INSTALL_IMPORTS:/usr/local/Qt-5.0.0/imports
QT_INSTALL_QML:/usr/local/Qt-5.0.0/qml
QT_INSTALL_TRANSLATIONS:/usr/local/Qt-5.0.0/translations
QT_INSTALL_CONFIGURATION:/etc/xdg
QT_INSTALL_EXAMPLES:/usr/local/Qt-5.0.0/examples
QT_INSTALL_DEMOS:/usr/local/Qt-5.0.0/examples
QT_HOST_PREFIX:/usr/local/Qt-5.0.0
QT_HOST_DATA:/usr/local/Qt-5.0.0
QT_HOST_BINS:/usr/local/Qt-5.0.0/bin
QMAKE_SPEC:linux-g++-64
QMAKE_XSPEC:linux-g++-64
QMAKE_VERSION:3.0
QT_VERSION:5.0.0
I should also point out that I do not have the Qt 4.x development files installed on this machine:
nathan#nathan-ubuntu:~$ dpkg -l | grep qt4
ii libqt4-dbus:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 D-Bus module
ii libqt4-declarative:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 Declarative module
ii libqt4-designer:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 designer module
ii libqt4-help:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 help module
ii libqt4-network:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 network module
rc libqt4-opengl:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 OpenGL module
rc libqt4-qt3support:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 3 compatibility library for Qt 4
ii libqt4-script:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 script module
ii libqt4-scripttools:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 script tools module
ii libqt4-sql:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 SQL module
ii libqt4-sql-sqlite:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 SQLite 3 database driver
ii libqt4-svg:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 SVG module
ii libqt4-test:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 test module
ii libqt4-xml:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 XML module
ii libqt4-xmlpatterns:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 XML patterns module
ii python-qt4 4.9.3-4 amd64 Python bindings for Qt4
ii python-qt4-dbus 4.9.3-4 amd64 D-Bus Support for PyQt4
You can not make Qt 5 work with Qt Creator prior to version 2.6.1. The patchlevel is important, version 2.6.0 will not work for the final.
Qt 5 is sufficiently different from Qt 4 with its new modules, library names and qmake to require quite a few changes all over the place to get it supported.
After upgrading to Qt Creator 2.6.1, the problem went away.
The exact steps for installing v2.6.1 went something like this:
Grab the binary installer from here:
32-bit Linux Installer
64-bit Linux Installer
After you have downloaded the file, change the permissions to 755 with chmod:
chmod 755 qt-creator-linux-*-opensource-2.6.1.bin
Run the installer as root:
sudo ./qt-creator-linux-*-opensource-2.6.1.bin
Leave all of the installation settings at their defaults and finish the installation.
Launch the application through your desktop environment's dash or equivalent.