openjpeg icon indicating copy to clipboard operation
openjpeg copied to clipboard

Add support for Apple framework builds

Open Treata11 opened this issue 8 months ago • 2 comments

Treata11 avatar Apr 25 '25 14:04 Treata11

Greetings,

In I introduced the required properties for framework generation as described in CMake documentation

I built the project with the following:

cmake -S. -B build_iOS \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_CODEC=OFF \
-DOPJ_FRAMEWORK=ON \
-DCMAKE_SYSTEM_NAME=iOS

sudo cmake --build build_iOS --target install --config Release

And the framework artifact is created at build_iOS/bin/openjp2.framework with openjpeg.h & opj_config.h as the public headers & also some resources.

Treata11 avatar Apr 25 '25 19:04 Treata11

I've tried this PR on Linux and "make install" fails with:

CMake Error at cmake_install.cmake:80 (file):
  file INSTALL cannot find
  "/home/even/openjpeg/openjpeg/build/OpenJPEGTargets.cmake": No such file or
  directory.

rouault avatar Sep 20 '25 16:09 rouault