FreeImage - A library project to support popular graphics image formats

FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications. FreeImage is easy to use, fast, multithreading safe, compatible with all 32-bit versions of Windows, and cross-platform (works both with Linux and Mac OS X).

Refresh
Refresh
Source Files (show merged sources derived from linked package)
Filename Size Changed Actions
FreeImage3180.zip 0007415716 7.07 MB about 1 year
doxygen.patch 0000000613 613 Bytes about 1 year
freeimage-no-return-in-nonvoid.patch 0000000506 506 Bytes about 1 year
freeimage.changes 0000010256 10 KB about 1 year
freeimage.spec 0000005565 5.43 KB about 1 year
makefiles_fixes.patch 0000001842 1.8 KB over 3 years
unbundle.patch 0000028734 28.1 KB about 1 year
Comments for freeimage 2

Simon Puchert's avatar

simonpuchert wrote about 1 year ago

I tried to upgrade the package to see if that fixes some of its problems (at least the CVE-* patches are included).

The current build failures are: The function jpeg_read_icc_profile(j_decompress_ptr, JOCTET*, unsigned int) was declared 'extern' and later 'static'. (Source/FreeImage/PluginJPEG.cpp:506 vs. /usr/include/jpeglib.h:1066) What's even more crazy about this is that the first one is 'static BOOL' which is defined as an int32_t (!) and the other one is 'EXTERN(boolean)'.

The next problem just makes me smile, because the whole reason it exists is that MSVC "is not C99 ISO compliant" (quote from the source code). So much for Windows being a functional operating system (can they please start using a sane compiler like clang?). Source/FreeImage.h defines INT64 ("portable types for 32-bit / 64-bit OS") as 'int64_t' while /usr/include/libraw/libraw_types.h defines INT64 as 'long long' and a similar problem for UINT64.

Feel free to take over from here - I was hoping it would be an easy fix, but this kind of spaghetti-code just makes my brain-cells shrivel up in disgust.


Ondřej Súkup's avatar

mimi_vx wrote about 1 year ago

bad unbundle patch ... I suggest use from fedora ( and fix differencies between distros)