Ocean is the in-house framework for Computer Vision (CV) and Augmented Reality (AR) applications at Meta. It is platform independent and is mainly implemented in C/C++.
Disabling lzma, jbig, webp, and zstd
Some the dependencies of libtiff cause build errors, cf. issues
9
15
Since these dependencies are not absolutely required for Ocean, let's disable them for now.
Disabling harfbuzz
On Macs (Intel-based), when libharfbuzz*.a exists in a system-level directory, CMake currently selects that version and not the version that comes with Ocean.
This causes iOS builds to fail because CMake doesn't seems to notice that's intended for a different platform.
To work-around this problem, this diff disables the build and use of harfbuzz altogether.
Also, if harfbuzz is not absolutely required by freetype (or Ocean), we should probably remove it completely to reduce build times and complexity.
Testing
Confirm that the build of the third-party libraries and Ocean no longer fails because of missing JBIG::JBIG or similar
Summary
Disabling lzma, jbig, webp, and zstd Some the dependencies of libtiff cause build errors, cf. issues
9
15
Since these dependencies are not absolutely required for Ocean, let's disable them for now.
Disabling harfbuzz On Macs (Intel-based), when
libharfbuzz*.a
exists in a system-level directory, CMake currently selects that version and not the version that comes with Ocean.This causes iOS builds to fail because CMake doesn't seems to notice that's intended for a different platform.
To work-around this problem, this diff disables the build and use of harfbuzz altogether.
Also, if harfbuzz is not absolutely required by freetype (or Ocean), we should probably remove it completely to reduce build times and complexity.
Testing
Confirm that the build of the third-party libraries and Ocean no longer fails because of missing
JBIG::JBIG
or similarhttps://github.com/facebookresearch/ocean/blob/main/building_for_macos.md https://github.com/facebookresearch/ocean/blob/main/building_for_ios.md
Builds fine on Macs (for macOS and iOS). Testing on Windows, Linux, and Android is still required.