You are not logged in.

#1 2024-05-31 05:40:33

carpenter
Member
Registered: 2024-04-21
Posts: 14

how do I know what's the dependencies of a qt application ?

when I try  build a QT app to an arch package, how do I know what's the dependencies of a qt application ?

such as VLC, https://archlinux.org/packages/extra-st … 86_64/vlc/ ,  it shows that this app  needs  qt5-base \ qt5-svg  \ qt5-x11extras,

how do I know that my app needs which dependencies ?

I know that I can let my app link to its own standalone libs, but reuse is good.

any one who have the experience ?

Offline

#2 2024-05-31 06:34:20

kermit63
Member
Registered: 2018-07-04
Posts: 224

Re: how do I know what's the dependencies of a qt application ?

pacman -Si <package>

Pacman/Rosetta for a list of common pacman commands.

Offline

#3 2024-05-31 07:43:40

seth
Member
Registered: 2012-09-03
Posts: 57,026

Re: how do I know what's the dependencies of a qt application ?

He's trying to write a pkgbuild for a given binary, not query the stats of an existing package.

"Knowledge", "Experience", looking closely at the binary.
https://wiki.archlinux.org/title/PKGBUILD#Dependencies
Mainly looks at the makefile (qmake .pro or cmakelist etc) for the build requirements and also "ldd /path/to/binary" to see the linked objects and query their paths w/ "pacman -Qo"
You can use fine-libdeps for that, https://wiki.archlinux.org/title/Arch_p … pendencies

Ps: "Qt" - "QT" is "QuickTime"

Offline

#4 2024-05-31 15:25:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,063

Re: how do I know what's the dependencies of a qt application ?

I resort to building it in a clean chroot and adding dependencies as they are found to the PKGBUILD until it works.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB