brezerk / q4wine

Q4Wine is a Qt GUI for W.I.N.E. It will help you manage wine prefixes and installed applications.
http://q4wine.brezblock.org.ua/
GNU General Public License v3.0
208 stars 40 forks source link

Wizard does not preload debian default library paths #68

Closed tehnick closed 8 years ago

tehnick commented 8 years ago

Issue description: http://bugs.debian.org/815018

Some useful links: https://tracker.debian.org/pkg/wine https://packages.debian.org/sid/amd64/libwine/filelist https://packages.debian.org/sid/i386/libwine/filelist https://packages.debian.org/sid/arm64/libwine/filelist https://packages.debian.org/sid/armel/libwine/filelist https://packages.debian.org/sid/armhf/libwine/filelist https://packages.debian.org/sid/kfreebsd-i386/libwine/filelist ... https://packages.debian.org/sid/all/wine/filelist https://packages.debian.org/sid/all/wine-binfmt/filelist https://packages.debian.org/sid/i386/wine32/filelist https://packages.debian.org/sid/i386/wine32-preloader/filelist https://packages.debian.org/sid/i386/wine32-tools/filelist https://packages.debian.org/sid/amd64/wine64/filelist https://packages.debian.org/sid/amd64/wine64-preloader/filelist https://packages.debian.org/sid/amd64/wine64-tools/filelist

tehnick commented 8 years ago

Tiny note about Debian and Ubuntu multiarch scheme:

/usr/lib -> /usr/lib/<triplet>
/usr/lib/<pkgdir> -> /usr/lib/<triplet>/<pkgdir>
/usr/include: remains, used for arch-independent headers
/usr/include/<triplet>: used for arch-varying headers 
/usr/bin: no change
/usr/share: no change
/usr/sbin: no change

More details: https://wiki.debian.org/Multiarch/Implementation#What_does_the_end_result_look_like.3F

tehnick commented 8 years ago

I have tried first strartup wizard in current version from master branch (1.2-r2-54-g5e03363) built with Qt5 5.5.1 in Debian unstable and have found few more problems. Let's see all process step by step: desktop_540 desktop_541 desktop_542 desktop_543 desktop_544 desktop_545 desktop_546 desktop_547 desktop_549

tehnick commented 8 years ago

Ok. Let's set the path to win64 libraries: desktop_550 desktop_551 Nothing changed...

tehnick commented 8 years ago

BTW, first startup wizard dialog looks much better in stable release: desktop_552 So issue #21 is not completely fixed yet.

brezerk commented 8 years ago

thx. will look into it :)

brezerk commented 8 years ago

hi @tehnick ,

Regarding to the links above:

/usr/lib/x86_64-linux-gnu/wine/libwine.so.1
/usr/lib/i386-linux-gnu/wine/libwine.so.1

can you show output of /sbin/ldconfig -p | grep libwine.so on your system please? Also, it will be nice to see the output of q4wine compiled with -DDEBUG=ON option, if possible.

tehnick commented 8 years ago

can you show output of /sbin/ldconfig -p | grep libwine.so on your system please?

Output is empty.

Also, it will be nice to see the output of q4wine compiled with -DDEBUG=ON option, if possible.

Probably later. That do you want to find there?

brezerk commented 8 years ago

Probably later. That do you want to find there? Output is empty.

I guess this is the root cause :) Does /sbin/ldconfig -p | grep -i wine returns anything?

tehnick commented 8 years ago
$ /sbin/ldconfig -p | grep wine
        libkwineffects.so.6 (libc6) => /usr/lib/i386-linux-gnu/libkwineffects.so.6
$ /sbin/ldconfig -p | grep wine
        libkwineffects.so.6 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libkwineffects.so.6
brezerk commented 8 years ago

sigh just wonder why there is no libwine.so =\

tehnick commented 8 years ago

just wonder why there is no libwine.so =\

Probably because this is wine-specific library. See: https://github.com/brezerk/q4wine/issues/68#issuecomment-185396471

...
/usr/lib/<pkgdir> -> /usr/lib/<triplet>/<pkgdir>
...
brezerk commented 8 years ago

@tehnick does your system have any wine-devel pkg or so? If yes, can you install it and see if /sbin/ldconfig -p | grep libwine.so will work?

brezerk commented 8 years ago

well. on the other hand, it seems like there is no need to strictly require this option:

       WINEDLLPATH
              Specifies the path(s) in which to search for builtin dlls and Winelib applications. This is a list of directories separated by
              ":". In addition to any directory specified in WINEDLLPATH, Wine will also look in /usr/lib32/wine.

So option allows additionally specify extra paths where to look at. It will use default path anyway.

brezerk commented 8 years ago

Should be fixed with: https://github.com/brezerk/q4wine/commit/d3b5c0f1e587e621a1a659e2dee4f1c2306c4472

tehnick commented 8 years ago

does your system have any wine-devel pkg or so?

Yes. libwine-dev

If yes, can you install it and see if /sbin/ldconfig -p | grep libwine.so will work?

No.

Should be fixed with: d3b5c0f

Ok. It works for me. Thanks.