I replicated it, copied the Dist folder from the zip beside app.json, set the right file to load and it worked.

http://downloads.sourceforge.net/freeimage/FreeImage3180Win32Win64.zip

```
$ dub run
Starting Performing "debug" build using C:\Tools\D\ldc2-1.31.0-windows-multilib\bin\ldc2.exe for x86_64. Up-to-date bindbc-loader 1.0.3: target for configuration [noBC] is up to date. Up-to-date bindbc-freeimage 1.0.2: target for configuration [dynamic] is up to date. Up-to-date bindbc-glfw 1.0.2: target for configuration [dynamic] is up to date. Building whatmeworry_freeimage ~master: building configuration [application]
     Linking whatmeworry_freeimage
Finished To force a rebuild of up-to-date targets, run again with --force
     Running whatmeworry_freeimage.exe
the file FreeImage.dll NOT FOUND
ret = fi318
ret = fi318
the file glfw3.dll NOT FOUND
retGLFW = noLibrary
retGLFW = noLibrary
```

Lets see if its a dependency problem, try adding:

libs "Dist/x64/FreeImage"

That'll statically linking against the DLL, if there is DLL's missing that it needs or something isn't right, it'll error.

Worst case scenario if that works, just use the static configuration for bindbc-freeimage.

https://github.com/BindBC/bindbc-freeimage/blob/master/dub.sdl#L21
  • My tiny program ... WhatMeWorry via Digitalmars-d-learn
    • Re: My tiny... Hipreme via Digitalmars-d-learn
    • Re: My tiny... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn

Reply via email to