SDL3 library loads fine. But SDL3_image extension keeps failing with not found. I'm using D Lang's exists() and isFile() to verify that the library file is there
but this contradicts the noLibrary error?

================================================================================

dependency "bindbc-sdl" version="~>2.2.2" // most recent version of dub package

versions "SDL_3_4_10" // highest version in bindbc-sdl documentation
versions "SDL_Image_3_2"    // highest version

================================================================================

    version (Windows)
    {
        string execPath = thisExePath();
string everything = buildPath(dirName(execPath), "libraries", "SDL3_image.dll");

        writeln("everything = ", everything);

if (exists(everything)) // returns true for files or directories
        {
if (isFile(everything)) // verify it is actually a file
            {
                writeln("Found the SDL Image dll file at: ");
                writeln(everything);
            }
        }

        imgStatus = loadSDLImage();
        writeln("imgStatus = ", imgStatus);
        foreach(info; loader.errors)
        {
            writeln("info.error = ", fromStringz(info.error));
            writeln("info.message = ", fromStringz(info.message));
        }
    }

================================================================================

everything = C:\Users\Administrator\Documents\GitHub\Dfine\libraries\SDL3_image.dll
Found the SDL Image dll file at:
C:\Users\Administrator\Documents\GitHub\Dfine\libraries\SDL3_image.dll
imgStatus = noLibrary
info.error = SDL3_image.dll
info.message = The specified module could not be found.


Reply via email to