www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dub freeimage package

reply "alexeibs" <alexei4203 yandex.ru> writes:
Does it work under Windows?
I didn't manage to link it with a simple test app. I added 
freeimage package into dependency list inside package.json and 
got an error "File Not Found freeimage.lib". Then I downloaded 
latest archive from 
http://freeimage.sourceforge.net/download.html, put freeimage.lib 
into dmd2 lib folder. And now it says "Not a Valid Library File".
Where can I find a proper lib file?
Jul 14 2014
parent reply "Brad Anderson" <eco gnuk.net> writes:
On Monday, 14 July 2014 at 20:56:22 UTC, alexeibs wrote:
 Does it work under Windows?
 I didn't manage to link it with a simple test app. I added 
 freeimage package into dependency list inside package.json and 
 got an error "File Not Found freeimage.lib". Then I downloaded 
 latest archive from 
 http://freeimage.sourceforge.net/download.html, put 
 freeimage.lib into dmd2 lib folder. And now it says "Not a 
 Valid Library File".
 Where can I find a proper lib file?
32-bit Windows builds require OMF format library files (generally this means you have to build the library with DMC). If you use derelict-freeimage you can just use the .dll. It's what I've done. Works fine.
Jul 14 2014
parent "alexeibs" <alexei4203 yandex.ru> writes:
On Monday, 14 July 2014 at 21:09:22 UTC, Brad Anderson wrote:
 On Monday, 14 July 2014 at 20:56:22 UTC, alexeibs wrote:
 Does it work under Windows?
 I didn't manage to link it with a simple test app. I added 
 freeimage package into dependency list inside package.json and 
 got an error "File Not Found freeimage.lib". Then I downloaded 
 latest archive from 
 http://freeimage.sourceforge.net/download.html, put 
 freeimage.lib into dmd2 lib folder. And now it says "Not a 
 Valid Library File".
 Where can I find a proper lib file?
32-bit Windows builds require OMF format library files (generally this means you have to build the library with DMC). If you use derelict-freeimage you can just use the .dll. It's what I've done. Works fine.
Thank you for your answer. derelict-fi works fine.
Jul 15 2014