Can't load FreeImage.dll with Windows

WhatMeWorry kheaser at gmail.com
Fri Mar 3 19:07:14 UTC 2023


I've tried distilling the problem to its very essence.

I downloaded the FreeImage.dll from 
https://freeimage.sourceforge.io/download.html
to the following directory:

where /R c:\ FreeImage.dll

c:\Users\Admin\Downloads\FreeImage3180Win32Win64\FreeImage\Dist\x64\FreeImage.dll

     dir 
c:\Users\Admin\Downloads\FreeImage3180Win32Win64\FreeImage\Dist\x64\FreeImage.dll
     07/31/2018  12:23 PM         6,942,208 FreeImage.dll
                    1 File(s)      6,942,208 bytes


dependency "bindbc-freeimage" version="~>1.0.0"
versions "FI_318"


but when I try to load the dll with the bindbc-freeimage package 
provided loadFreeImage function, all I get is no library found:

         writeln("The dub.sdl file of this project expects 
FreeImage version ", fiSupport);
         immutable FISupport fiLib = 
loadFreeImage("c:\\Users\\Admin\\Downloads\\FreeImage3180Win32Win64\\FreeImage\\Dist\\x64\\FreeImage.dll");	
         writeln("loadFreeImage returned: ", fiLib);


OUTPUT
-------------------------------------------------------------------
The dub.sdl file of this project expects FreeImage version fi318
loadFreeImage returned: noLibrary



I also tried:

loadFreeImage(`c:\Users\Admin\Downloads\FreeImage3180Win32Win64\FreeImage\Dist\x64\FreeImage.dll`);	
and
loadFreeImage(`c:/Users/Admin/Downloads/FreeImage3180Win32Win64/FreeImage/Dist/x64/FreeImage.dll`);	

but got same results.  Also tried version="~>1.0.2"



More information about the Digitalmars-d-learn mailing list