Running Qt 4.7 app on Ubuntu 10.04 Lucid Lynx

I am working on a cross-platform application, and use the latest Qt libraries, version 4.7. The problem is that one of the users tried to run it on Ubuntu 10.04 Lucid Lynx, and it crashed using undefined symbol: _ZN9QListData11detach_growEPii. Ubuntu 10.04 has Qt4.6.3, and there seems to be a problem.

However, it seems that Ubuntu 10.04 does not support 4.7 - only Ubuntu 10.10 does, and the user does not want to update his Linux distribution, since its long-term support. What are my options in this case? The user can potentially download the 4.7 framework and compile it on his PC, but this will mean that every ubuntu 10.04 user will have to do this. Alternatively, I could make additional assemblies using Qt 4.6, but I cannot find these old libraries.

Any suggestions? Are there any flag compilations that would be compatible with 4.6? Could this be a mistake?

Thank!

EDIT: I ended up sending my Qt.so files to him and it worked. Nevertheless, all the answers here were correct and appropriate - I would like for me to accept all of them.

+3
source share
4 answers

Besides linking statically to Qt, you can also just distribute your Qt / dlls along with your executable. The instructions on the Qt deployment page are clear http://doc.qt.io/archives/qt-4.7/deployment-x11.html

+3
source

View the latest post http://ubuntuforums.org/showthread.php?t=1552263

You need to add this to your repository sources:

deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu lucid main
+5
source

, QT 4.6.3. , 10.10, Qt 10.04.

deb-src http://archive.ubuntu.com/ubuntu lucid main restricted universe multiverse

sudo apt-get build-dep libqt4-core libqt4-dev
sudo apt-get -b source -t lucid libqt4-core libqt4-dev

( qt- ).

Ps. , unix. * .

+1

You can also create your application statically against Qt libraries. See http://doc.qt.io/archives/qt-4.7/deployment-x11.html#static-linking This way you can distribute your application anywhere (Ubuntu 9./10.) Without installing the Qt SDK to target computers.

+1
source

Source: https://habr.com/ru/post/1792328/


All Articles