Qt WebEngine not linking with Qt 5.12 on Ubuntu 14.04 - qt

I am trying to build my Qt application and I'm getting the following linking error:
/opt/Qt5.12.2/5.12.2/gcc_64/lib/libQt5WebEngineCore.so: undefined reference to 'dbus_bus_register#LIBDBUS_1_3'
/opt/Qt5.12.2/5.12.2/gcc_64/lib/libQt5WebEngineCore.so: undefined reference to 'dbus_watch_get_data#LIBDBUS_1_3'
etc etc
I am using Qt 5.12.2 on Ubuntu 14.04 which I know is a mismatch. If there's any workaround or a fix please let me know all my options.

Starting from Qt 5.12 Ubuntu 14.04 Trusty is not supported anymore: https://bugreports.qt.io/browse/QTBUG-72507
Qt 5.11 is working fine.

Related

Qt Creator Qt5Compat.GraphicalEffects - module is not installed

QQmlApplicationEngine failed to load component
"Qt5Compat.GraphicalEffects" is not installed
I'm using QtCreator.
I have the following error. I'm using Pyside 6 and Qt 6.3.1 and Python 3.10
I tried to reinstall the whole qt maintenance tool and still nothing.
Can You guys help me?
You should install this module separately from Maintenance Tool.

Qt - where to get /opt/qt59/bin/qt59-env.sh?

I have a project which relies on /opt/qt59/bin/qt59-env.sh which sets up QT environment. Without it, qmake complains:
Project ERROR: Unknown module(s) in QT: quick quickwidgets
It's not on my system (Ubuntu 17.10). I have QT 5.9 installed through qt5-default. I have been looking around but can't find. I've tried packages qtscript5-dev but qt59-env.sh did not appear.
What should I install to get it? Or what's an alternative to set up the environment?
Ubuntu's default packages don't include this kind of script.
qt59-env.sh comes from qt59base, that is from this ppa.
The ppa is for Ubuntu xenial (16.04), but it could also work on 17.10.
Otherwise you can just download qt59-env.sh from here and modify the paths to your installed Qt version.

Qt5 QOpenGL Error on Execute

I'm developing a application on Qt Creator Comunnity, Qt Version 5.4.2 on Ubuntu Vivid(15.04). At my computer, the program works fine. But when i run the program on a Ubuntu 14.04 LTS the following error occurs:
undefined symbol: _ZN13QOpenGLWidgetC1EP7QWidget6QFlagsIN2Qt10WindowTypeEE
Did it happen because of the kernel version?
On Vivid you have Qt 5.4.1, on Trusty you have Qt 5.2.1.
You can't run a program compiled with a later Qt version on a machine shipping an earlier one.

Installing Qt 5.1.1 and qwt 6.1.0 on Ubuntu 12.04

I've recently came to linux from a 1 year Windows run in Qt so I don't know how this works exactly and couldn't find any thing decent. So here it is :
As is obvious from the title I'm trying to install Qt 5.1.1 and Qwt 6.1.0 in Ubuntu 12.04. I have written a project with the same versions in Windows and now I want to run the project in Linux. The problem is I don't know If I'm doing the installing process right!
I installed Qt 5.1.1 in /opt/qt5.1.1 and compiled Qwt 6.1.0 to /usr/local. I copied the files in include, lib, plugin/designer to the related folders in qt 5.1.1. After this the plugin is fine and I can see the .h files when I type include but when I want to run my project I get the error undefined reference to ... for every method or attribute of Qwt library used!
What am I doing wrong here?

Running Qt Creator on CentOS release 5.8 - Cannot resolve 'dbus_get_version' in your libdbus-1

I succesfully build Qt 4.8 (without QtWebKit) on CentOS 5.8 (Qt Assistant and the demo's run fine). I also built Qt Creator 2.4.1 against Qt 4.8. I did not observe any errors during the process of building Qt Creator. However, when I attempt to run Qt Creator I receive the following error:
[root#localhost bin]# ./qtcreator
Cannot resolve 'dbus_get_version' in your libdbus-1.
Aborted
Has anybody encountered this error before? How did you fix it? Unfortunately upgrading to a better OS (such as Ubuntu) is not an option for me.
Thanks,
David
QtDBus module loads libdbus-1 library in runtime (via dlopen). That's why you don't have compile/link errors.
You can try either to upgrade dbus package (or whatever package contains libdbus-1.so) or use previous version of Qt.
(In Gentoo QtDBus-4.8 depends on dbus-1.2 and QtDBus-4.7.4 depends on dbus-1.0.2).

Resources