문제

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>
도움이 되었습니까?

해결책

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.

다른 팁

With debhelper string Depends: will be look like this

Depends: ${shlibs:Depends}, ${misc:Depends}

From Introduction to Debian Packaging

"Depends:"

field lists the packages that must be installed for the program in the binary package to work. Listing such dependencies manually is tedious, error-prone work. To make this work, the ${shlibs:Depends} magic bit needs to be in there. The other magic stuff is there for debhelper. The {misc:Depends} bit. The shlibs magic is for shared library dependencies, the misc magic is for some stuff debhelper does. For other dependencies, you need to add them manually to Depends or Build-Depends and the ${...} magic bits only work in Depends

If you use the Debhelper packaging tools, the build process can automatically detect any dependencies of your package incurred by dynamic library linking, using wrappers around the dpkg-shlibdeps tool, and fill them in to your debian/control file for you.

You need the package libqt5webkit5 as a dependency

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top