derelictorg / derelictfi Goto Github PK
View Code? Open in Web Editor NEWA dynamic binding to FreeImage for the D Programming Language.
A dynamic binding to FreeImage for the D Programming Language.
This is one of the dependency left that I have which are still ~master
.
Version of translated library is 3.15
I'm working on a 64x Linux Mint 17 computer and I've been having trouble getting any branch of DerelictFI to work, it'd just crash whenever I tried to run a program that loaded it.
I got it working after commenting out the following in freeimage.d:
myBindFunc( FreeImage_GetMemorySize, "FreeImage_GetMemorySize");
myBindFunc( FreeImage_ConvertFromRawBitsEx, "FreeImage_ConvertFromRawBitsEx" );
myBindFunc( FreeImage_ConvertToRGBAF, "FreeImage_ConvertToRGBAF" );
myBindFunc( FreeImage_ConvertToRGBAF, "FreeImage_ConvertToRGBAF" );
myBindFunc( FreeImage_SetMetadataKeyValue, "FreeImage_SetMetadataKeyValue" );
myBindFunc( FreeImage_JPEGTransformFromHandle, "FreeImage_JPEGTransformFromHandle" );
myBindFunc( FreeImage_JPEGTransformCombined, "FreeImage_JPEGTransformCombined" );
myBindFunc( FreeImage_JPEGTransformCombinedU, "FreeImage_JPEGTransformCombinedU" );
myBindFunc( FreeImage_JPEGTransformCombinedFromMemory, "FreeImage_JPEGTransformCombinedFromMemory" );
myBindFunc( FreeImage_RescaleRect, "FreeImage_RescaleRect" );
myBindFunc( FreeImage_CreateView, "FreeImage_CreateView" );
All of the above were throwing exceptions like: No symbol "FreeImage_RescaleRect" in current context.
It seems like the 3.17 in Ubuntu and ArchLinux at least do not include these functions, due to security reasons. I think these functions require a patch to libjpeg.
Perhaps a D version to include or disable these functions would be sufficient?
freeImageTest ~master: building configuration "application"...
source\app.d(2,8): Error: module freeimage is in file 'derelict\freeimage\freeimage.d' which cannot be read
import path[0] = source
import path[1] = C:\D\dmd2\windows\bin\..\..\src\phobos
import path[2] = C:\D\dmd2\windows\bin\..\..\src\druntime\import
dmd failed with exit code 1.
That's it. I can't build them.
I used DMD32 D Compiler v2.071.1 and code is here:
import std.stdio;
import derelict.freeimage.freeimage;
void main(string[] args)
{
DerelictFI.load(); `
}
{
"name": "miniapp",
"authors": [
"dummy"
],
"description": "A minimal D application.",
"copyright": "Copyright © 2016, dummy",
"license": "proprietary",
"derelict-fi": "~>2.0.2"
}
just recently a new version came out: http://freeimage.sourceforge.net/changeslog.html
no idea what has changed but maybe good to have it on the radar
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.