Discussion:
DLL search path problem
(too old to reply)
kcc1967
2007-09-24 15:24:41 UTC
Permalink
Hi,

I have some GNOME dlls built by using cross MinGW under Linux.
The dlls are located at /opt/xmingw/i686-mingw32/bin and there are a
lot
of them ...

Everything works fine if I copy all dlls to ~/.wine/drive_c/windows/
system32 ... but
I really don't want to do that.

I try the put /opt/xmingw/i686-mingw32/bin in
PATH environment variable and invoke by myapp as "wine /abs_path/
myapp.exe".
This doesn't work.

However. (cd /opt/xmingw/i686-mingw32/bin; wine /abs_path/myapp.exe)
works fine.

Anyone know what's the correct way to ask Wine to search DLL which is
not
in current directory or under system32 ? Thanks.

Regards
KC
kcc1967
2007-09-25 03:21:15 UTC
Permalink
Hi

I were use 0.9.44 and just upgrade to 0.9.45 and tested the issue.
The problem is still there.
wine does NOT use PATH environment variable for DLL search (WinXP/2K
does).
Can someone confirm this ? Is this a bug, or a feature ? Thanks

Regards
KC
Post by kcc1967
Hi,
I have some GNOME dlls built by using cross MinGW under Linux.
The dlls are located at /opt/xmingw/i686-mingw32/bin and there are a
lot
of them ...
Everything works fine if I copy all dlls to ~/.wine/drive_c/windows/
system32 ... but
I really don't want to do that.
I try the put /opt/xmingw/i686-mingw32/bin in
PATH environment variable and invoke by myapp as "wine /abs_path/
myapp.exe".
This doesn't work.
However. (cd /opt/xmingw/i686-mingw32/bin; wine /abs_path/myapp.exe)
works fine.
Anyone know what's the correct way to ask Wine to search DLL which is
not
in current directory or under system32 ? Thanks.
Regards
KC
Samuel Suther
2007-09-25 07:43:03 UTC
Permalink
In Your .wine-Dir u have a file named: system.reg.
Nearly the end of the file, there is a Key named PATH:

Here u can insert your dll-Path. Dont forget to add two backslashes as
separator "\\"

Copy all files into system-dir from windows/system isn't a good Idea!
Post by kcc1967
Hi
I were use 0.9.44 and just upgrade to 0.9.45 and tested the issue.
The problem is still there.
wine does NOT use PATH environment variable for DLL search (WinXP/2K
does).
Can someone confirm this ? Is this a bug, or a feature ? Thanks
Regards
KC
Post by kcc1967
Hi,
I have some GNOME dlls built by using cross MinGW under Linux.
The dlls are located at /opt/xmingw/i686-mingw32/bin and there are a
lot
of them ...
Everything works fine if I copy all dlls to ~/.wine/drive_c/windows/
system32 ... but
I really don't want to do that.
I try the put /opt/xmingw/i686-mingw32/bin in
PATH environment variable and invoke by myapp as "wine /abs_path/
myapp.exe".
This doesn't work.
However. (cd /opt/xmingw/i686-mingw32/bin; wine /abs_path/myapp.exe)
works fine.
Anyone know what's the correct way to ask Wine to search DLL which is
not
in current directory or under system32 ? Thanks.
Regards
KC
Loading...