Re: WINEDLLPATH weirdness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Erik de Castro Lopo wrote:

> vitamin wrote:
> 
> > What happens if you do?
> > 
> > Code:
> > if [ -f $exe ]; then
> >    exec wine $exe
> >    fi
> 
> Wow! It works just like its supposed to. Thanks. Unfortunately
> now I need to understand why.

Sorry, that was a mistake, I still had a symlink in the local
directory which pointed to the DLL.

I've updated my test script as follows:

    #!/bin/bash

    exe=`pwd`/.libs/floating_point_test.exe
    dll=libsndfile-1.dll
    dlldir=/home/erikd/Bzr/libsndfile-mingw/src/.libs

    if [ ! -f $exe ]; then
        echo "No exe. Stopping."
        exit 1
        fi

    if [ ! -f "$dlldir/$dll" ]; then
        echo "Can't find DLL."
        exit 1
        fi

    echo "Trying with symlink"
    ln -s "$dlldir/$dll" $dll

    if [ -f $exe ]; then
        wine $exe
        fi

    echo "Trying without symlink"
    export WINEDLLPATH="$dlldir:$WINEDLLPATH"

    if [ -f libsndfile-1.dll ]; then
        echo "Deleting DLL symlink."
        rm -f libsndfile-1.dll
        fi

    if [ -f $exe ]; then
        wine $exe
        fi

The first invocation of wine when the symlink is present works,
the second where I just try to rely on WINEDLLPATH doesn't.

Is it possible that wine is ignoring WINEDLLPATH?

Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
Linux, the UNIX defragmentation tool.


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux