K
K
Kostyan Kondr2016-05-21 14:23:27
Debian
Kostyan Kondr, 2016-05-21 14:23:27

How to build a .deb package with qt libraries as dependencies?

I have been trying to build a package for my program for a long time. It uses the following Qt modules: core, network, webkitwidgetsand xml.
At first I tried to register all possible Qt packages, and then like this:

Depends: libqt5core5a, libqt5gui5, libqt5webkit5, libqt5widgets5, libqt5network5, libqt5xml5

Didn't work at all. It turned out that for some reason the program is trying to find the libraries in the folder opt/Qt/, that is, where I have installed qtcreator.
I read about the static assembly of Qt and assembled it that way. And it doesn't suit me.
Tell me how can I force to look for libraries in the place where apt pulls them up when installing a package?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xibir, 2016-05-21
@xibir

I prescribe
Depends: libqt5core5a, libqt5gui5, libqt5widgets5
and everything works.
There are no paths in the executable file, only the names of the libraries where they are searched depends on the system itself where it is launched. If qt is set to opt, then they will be taken from there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question