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
CVE-2019-12211_2019-12213.patch 0000005824 5.69 KB 3 months
FreeImage3180.zip 0007415716 7.07 MB almost 2 years
bigendian.patch 0000002565 2.5 KB 3 months
doxygen.patch 0000000613 613 Bytes almost 2 years
freeimage-no-return-in-nonvoid.patch 0000000506 506 Bytes almost 2 years
freeimage.changes 0000010704 10.5 KB 3 months
freeimage.spec 0000005352 5.23 KB 3 months
makefiles_fixes.patch 0000001842 1.8 KB about 4 years
unbundle.patch 0000028734 28.1 KB almost 2 years
Comments for freeimage 2

Simon Puchert's avatar

simonpuchert wrote almost 2 years 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 almost 2 years ago

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