I'm trying to follow the old adage of you can give a man fish and he will eat for a day, teach him to fish and he will eat every day.
So here goes...
Here is an example of how you might search for dependencies indicated by error messages at compilation.
Code:
mustard@slave:~$ apt-cache search libqt
libcppunit-dev - Unit Testing Library for C++
libguile-dev - Development headers and static library for libguile
libqt0-ruby1.8 - Qt bindings for Ruby
libqt3-i18n - i18n files for Qt3 library
libqt3-mt-dbg - debugging symbols for libqt3-mt
libqt3-mt-ibase - InterBase/FireBird database driver for Qt3 (Threaded)
libqt3-mt-mysql - MySQL database driver for Qt3 (Threaded)
libqt3-mt-odbc - ODBC database driver for Qt3 (Threaded)
libqt3-mt-psql - PostgreSQL database driver for Qt3 (Threaded)
libqt3-mt-sqlite - SQLite database driver for Qt3 (Threaded)
libqt4-core - Qt 4 core non-GUI functionality runtime library
libqt4-debug - Qt 4 debugging runtime libraries
libqt4-designer - Qt 4 Designer libraries
libqt4-dev - Qt 4 development files
libqt4-gui - Qt 4 core GUI functionality runtime library
libqt4-qt3support - Qt 3 compatibility library for Qt 4
libqt4-sql - Qt 4 SQL database module
libqttestrunner1c2 - Unit Testing Library for C++
qt3-assistant - The Qt3 assistant application
adept - package manager for KDE
libqt-perl - Perl bindings for the Qt library
libqt3-compat-headers - Qt 1.x and 2.x compatibility includes
libqt3-headers - Qt3 header files
libqt3-mt - Qt GUI Library (Threaded runtime version), Version 3
libqt3-mt-dev - Qt development files (Threaded)
libqthreads-12 - QuickThreads library for Guile
With 20/20 hindsight I probably could have used the grep command which would have filtered the above list and produced a shorter list of candidates..
Code:
mustard@slave:~$ apt-cache search libqt | grep mt
libqt3-mt-dbg - debugging symbols for libqt3-mt
libqt3-mt-ibase - InterBase/FireBird database driver for Qt3 (Threaded)
libqt3-mt-mysql - MySQL database driver for Qt3 (Threaded)
libqt3-mt-odbc - ODBC database driver for Qt3 (Threaded)
libqt3-mt-psql - PostgreSQL database driver for Qt3 (Threaded)
libqt3-mt-sqlite - SQLite database driver for Qt3 (Threaded)
libqt3-mt - Qt GUI Library (Threaded runtime version), Version 3
libqt3-mt-dev - Qt development files (Threaded)
This list a number of available packages that could indicate a possible choice. In particular its looking for libqt-mt with a version number greater than 3.2, so that gives a hint that libqt3-mt might be the one you need. So you look for the -dev package that might fill that dependency and then show the information on that package with the command below.
Code:
mustard@slave:~$ apt-cache show libqt3-mt-dev
Package: libqt3-mt-dev
Priority: optional
Section: libdevel
Installed-Size: 160
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Architecture: i386
Source: qt-x11-free
Version: 3:3.3.4-8ubuntu5
Replaces: libqt-mt-dev, libqt3-dev (>= 3.0.5-4), libqt3-helper, libqt3-headers (<= 3:3.1.1-3), libqt3-emb (<= 3:3.0.3-1)
Depends: xlibs-static-dev (>= 4.3.0.dfsg.1-4), libxext-dev (>= 4.3.0.dfsg.1-4), libxrandr-dev (>= 4.3.0.dfsg.1-4), x-dev (>= 4.3.0.dfsg.1-4), libsm-dev (>= 4.3.0.dfsg.1-4), libxmu-dev (>= 4.3.0.dfsg.1-4), libice-dev (>= 4.3.0.dfsg.1-4), libx11-dev (>= 4.3.0.dfsg.1-4), libxt-dev (>= 4.3.0.dfsg.1-4), libxrender-dev, libxcursor-dev, libxinerama-dev, libxi-dev, libmng-dev (>= 1.0.3), libpng12-0-dev, libjpeg62-dev, zlib1g-dev, libfreetype6-dev, libc6-dev, libqt3-mt (= 3:3.3.4-8ubuntu5), libqt3-headers (= 3:3.3.4-8ubuntu5), qt3-dev-tools (= 3:3.3.4-8ubuntu5), libgl1-mesa-dev | libgl-dev, libglu1-mesa-dev | libglu-dev, libxft-dev, libaudio-dev
Recommends: libqt3-compat-headers
Suggests: libqt3-i18n, qt3-doc
Conflicts: libqt-mt-dev, libqt3-emb (<= 3:3.0.3-1)
Filename: pool/main/q/qt-x11-free/libqt3-mt-dev_3.3.4-8ubuntu5_i386.deb
Size: 51054
MD5sum: 13546fed7b184e6cf7033429faa57e8b
Description: Qt development files (Threaded)
Qt is a C++ class library optimized for graphical user interface
development. This package contains the libqt-mt.so symlink, necessary
for building threaded Qt applications as well as the libqui.so symlink
and the necessary header files for libqui.so. (See README.Debian and
the Qt Documentation for instructions on libqui.so)
.
WARNING: If you plan to build some older Qt3 applications, you will
most probably have to install the libqt3-compat-headers package. It
contains all the headers which are not part of the official Qt3 API
anymore but which are still used by some programs. So if you encounter
problems with missing header files, please install this package first
before you send a bugreport.
Bugs: mailto:ubuntu-users@lists.ubuntu.com
Origin: Ubuntu
mustard@slave:~$
The above library seems to fall within the parameters for version numbers that your dependency error is showing.
Usually a liberal use of apt-cache search commands used in conjuction with the grep command as a filter can help to locate the correct package.
Code:
mustard@slave:~$ apt-cache search libqt | grep headers
libguile-dev - Development headers and static library for libguile
libqt3-compat-headers - Qt 1.x and 2.x compatibility includes
libqt3-headers - Qt3 header files
This search produces the headers package.
Of course if you do all this and come up with nothing, then it's quite possible that its not in the repositories for your version of Ubuntu. Sometimes you might find them included in the development version. Installing stuff outside of the repositories for your particular version of Ubuntu can be fraught with problems. It's possible, but not always practical or wise to do so.
Bookmarks