Menu

#115 Fixes for FreeImage - iOS, OSX, arm64 and x86_64

open
nobody
5
2023-01-30
2016-02-17
No

Updated version of https://sourceforge.net/p/freeimage/patches/96/ (3.16.0) patch.

The following code changes where made to successfully compile FreeImage for ARM64, armv7, i386, x86_64 for iOS using Xcode 6/7 on OS X 10.10 / 10.11 using Clang

  • Fixes: ARM64 issues.
  • Fixes: x86_64 issues
  • Fixes: tvOS issues
  • Updates Not updated CMakeLists with new dependancies
  • Updates Makefile.srcs with new dependancies
  • Fixes undefined types for LibJXR for OS X (including stdlib sources)
  • Fixes LibRawLite static casting issue (would not compile in clang without change)
  • Patches OpenEXR use of DEBUG preprocessor - will break for static release libraries
  • Patches ZLib use of DEBUG preprocessor - will break for static release libraries (patched for upstream https://github.com/madler/zlib/pull/80 )

All the above external patches have been since patched at the original repositories as well, so this should be automatically fixed for all the externals except for LibJXR (Microsoft)

All changes can be found on this Clone repo found here:
https://github.com/danoli3/FreeImage master is the current 3.17.0 fix.

Attached is a patch file of the changes from core 3.17.0 to 3.17.0 patched with the fixes.

1 Attachments

Discussion

  • Hervé Drolon

    Hervé Drolon - 2016-03-20

    Hi,

    Your patch modifies some 3rd party libraries, so it will be difficult to apply it.
    Modifications of these libraries should be done at the source (i.e. you should contact owners of each library).
    However, I'm interested by the LibJXR patch as we have an unsolved problem here with Linux OS.
    Are you able to load / save JXR files using this patch ?

    Hervé

     
  • Daniel Rosser

    Daniel Rosser - 2022-01-28

    @drolon Hi! I ended up getting most of these patches applied in dependancies
    Yes JXR saved in Linux

     
  • Anonymous

    Anonymous - 2023-01-30

    Please add Apple Silicon M1/M2 support

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB