Wine "ldd" -required dependencies (*.so files) WINE AppImage

Questions about Wine on Linux
Locked
gamerz
Level 1
Level 1
Posts: 9
Joined: Sun Mar 23, 2014 7:38 am

Wine "ldd" -required dependencies (*.so files) WINE AppImage

Post by gamerz »

Hi!

I'm trying to make an AppImage http://www.appimage.org/ for WINE. I have to get all *.so dependencies for WINE but the command "ldd wine" does not show all the dependencies (only libwine.so.1 and a few others). WINE does rely on many other *.so files.
I tried "ldd" with many WINE files but with the same result. How can i gather the required *.so dependencies for a WINE AppImage?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Wine "ldd" -required dependencies (*.so files) WINE AppI

Post by Bob Wya »

gamerz wrote:Hi!

I'm trying to make an AppImage http://www.appimage.org/ for WINE. I have to get all *.so dependencies for WINE but the command "ldd wine" does not show all the dependencies (only libwine.so.1 and a few others). WINE does rely on many other *.so files.
I tried "ldd" with many WINE files but with the same result. How can i gather the required *.so dependencies for a WINE AppImage?
ldd and lsof show the libraries loaded either directly or at a given moment. They do not account for libraries loaded via dlopen. You can get a better picture of this using strace. But this is probably a bit of a sledgehammer to crack a nut!

Take a look the Ubuntu Development package (which includes most the Wine build dependencies):
Ubuntu: Package: libwine-development (2.0-3ubuntu1 and others) [universe]
The control file in the deb archive will summarise the build dependencies.

Also useful would be the:
Wine Staging
has a few extra build dependencies. But, if required, you easily check what these are - with the Arch or Gentoo package build scripts for wine-staging.

Bob
gamerz
Level 1
Level 1
Posts: 9
Joined: Sun Mar 23, 2014 7:38 am

Re: Wine "ldd" -required dependencies (*.so files) WINE AppI

Post by gamerz »

Thanks for the Information. So there is no way around to collect the required *.so files one by one? I want to avoid this because it's very time consuming.
gamerz
Level 1
Level 1
Posts: 9
Joined: Sun Mar 23, 2014 7:38 am

Re: Wine "ldd" -required dependencies (*.so files) WINE AppI

Post by gamerz »

[SOLVED] I found a script which does gather all *.so files :)
https://github.com/AppImage/AppImages/b ... nctions.sh
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Wine "ldd" -required dependencies (*.so files) WINE AppI

Post by Bob Wya »

gamerz wrote:[SOLVED] I found a script which does gather all *.so files :)
Github : AppImage/AppImages : functions.sh
That looks quite neat... I'll have to have a play around with it - thanks. 8)

Bob
probono
Newbie
Newbie
Posts: 3
Joined: Mon Dec 04, 2017 4:26 pm

Re: Wine "ldd" -required dependencies (*.so files) WINE AppI

Post by probono »

Locked