Search code examples
qtubuntudeblaunchpad

Qt dependencies in a deb package


When creating a .deb package I create a file named control that contains some fields:

Package: my-qt-app-name
Version: 0.01
Architecture: all
Maintainer: my name <my email address>
Installed-Size: 2
Depends: ??????
Section: extras
Priority: optional
Homepage: my homepage
Description: some description

You see the field named Depends. To be sure that my application will work on another computer that runs Ubuntu (or one of its distributions) what value must has this field?

My Qt version is 5.1.1.

The first lines from main.cpp contain:

#include "mainwindow.h"
#include <QWebView>
#include <QtWidgets>
#include <QWebFrame>
#include <QDir>
#include <QApplication>
#include <QDebug>
#include <QWebPage>
#include <QObject>

Solution

  • I fixed the problem adding the following libraries to the debian control file:

    Depends: libqt5webkit5-dev, qtquick1-5-dev, qtlocation5-dev, qtsensors5-dev, qtdeclarative5-dev, libsqlite3-dev
    

    Finally my problem is fixed.