Managed to build ART 1.12.1 on macOS Monterey

Have to revert one of the previous changes. I found out those libs I was removing are all used for cairo font display.

https://kd6kxr.keybase.pub/ART_macOS_Universal_latest.zip is updated now. Feel free to redistribute the package and/or the link. I’m going see what is going on with fancy dmg backgrounds on the new macOS beta and see if I can come up with a fancy dmg, as installation to /Applications is required on mac now, due to the mac app being sandboxed with hardened runtime for system integrity protection.

I also have a VM with some of the older Mojave-compatible dependencies and may be able to generate an app for that system.

For those interested in the build, here was my final cmake commands.

M1:

cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_OSX_ARCHITECTURES=arm64 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=12.3 \
-DPROC_TARGET_NUMBER="2" \
-DPROC_LABEL="arm64" \
-DCACHE_NAME_SUFFIX="1-dev" \
-DCMAKE_C_COMPILER="clang" \
-DCMAKE_CXX_COMPILER="clang++" \
-DWITH_LTO="ON" \
-DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk" \
-DCMAKE_OSX_DEPLOYMENT_TARGET="12.3" \
-DLOCAL_PREFIX:STRING="/opt/homebrew" \
-DLENSFUNDBDIR="/Applications/ART.app/Contents/Resources/share/lensfun" \
-DCODESIGNID:STRING="Developer ID Application: Doctor Who (1234512345)" \
-DNOTARY:STRING="--username doctorwho@bbc.uk --password abcd-abcd-abcd-abcd" \
-DCMAKE_CXX_FLAGS_RELEASE="-O3 -DNDEBUG=1 -I/opt/homebrew/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include -Wno-pass-failed -arch arm64 -Wno-deprecated-register -Wno-unused-command-line-argument -std=c++11" \
-DCMAKE_C_FLAGS_RELEASE="-O3 -DNDEBUG=1 -I/opt/homebrew/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include -Wno-pass-failed -arch arm64 -Wno-deprecated-register -Wno-unused-command-line-argument"  \
-DCMAKE_EXE_LINKER_FLAGS="-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib -Wl,-headerpad_max_install_names -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -arch arm64" \
-DOpenMP_C_FLAGS="-fopenmp=lomp" \
-DOpenMP_CXX_FLAGS="-fopenmp=lomp" \
-DOpenMP_C_LIB_NAMES="libomp" \
-DOpenMP_CXX_LIB_NAMES="libomp" \
-DOpenMP_libomp_LIBRARY="/opt/homebrew/lib/libomp.dylib" \
-DOpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp /opt/homebrew/lib/libomp.dylib -I/opt/homebrew/include" \
-DOpenMP_CXX_LIB_NAMES="libomp" \
-DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp /opt/homebrew/lib/libomp.dylib -I/opt/homebrew/include" \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DFANCY_DMG:BOOL=ON  \
-DOSX_NIGHTLY:BOOL=ON \
-DOSX_UNIVERSAL:BOOL=ON \
-DOSX_UNIVERSAL_URL:STRING="https://kd6kxr.keybase.pub/ART_macOS_x86_64_latest.zip"  \
.. && make -j8 install && sudo make macosx_bundle

Intel:

 cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_OSX_ARCHITECTURES=x86_64 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=11.3 \
-DPROC_TARGET_NUMBER="10" \
-DPROC_LABEL="sandybridge-ivybridge" \
-DCACHE_NAME_SUFFIX="5-dev" \
-DCMAKE_C_COMPILER="clang" \
-DCMAKE_CXX_COMPILER="clang++" \
-DWITH_LTO="ON" \
-DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk" \
-DCMAKE_OSX_DEPLOYMENT_TARGET="11.3" \
-DLOCAL_PREFIX:STRING="/usr/local" \
-DLENSFUNDBDIR="/Applications/ART.app/Contents/Resources/share/lensfun" \
-DCODESIGNID:STRING="Developer ID Application: Doctor Who (1234512345)" \
-DNOTARY:STRING="--username doctorwho@bbc.uk --password abcd-abcd-abcd-abcd" \
-DCMAKE_CXX_FLAGS_RELEASE="-I/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include -Wno-pass-failed -Wno-deprecated-register -Wno-unused-command-line-argument -std=c++11 -DNDEBUG=1 -O3" \
-DCMAKE_C_FLAGS_RELEASE="-I/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include -Wno-pass-failed -Wno-deprecated-register -Wno-unused-command-line-argument" \
-DCMAKE_EXE_LINKER_FLAGS="-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/lib -Wl,-undefined,dynamic_lookup -Wl,-headerpad_max_install_names -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -O3 -DNDEBUG=1" \
-DOpenMP_C_FLAGS="-fopenmp=lomp" \
-DOpenMP_CXX_FLAGS="-fopenmp=lomp" \
-DOpenMP_C_LIB_NAMES="libomp" \
-DOpenMP_CXX_LIB_NAMES="libomp" \
-DOpenMP_libomp_LIBRARY="/usr/local/lib/libomp.dylib" \
-DOpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp /usr/local/lib/libomp.dylib -I/usr/local/include" \
-DOpenMP_CXX_LIB_NAMES="libomp" \
-DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp /usr/local/lib/libomp.dylib -I/usr/local/include" \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON  \
-DOSX_NIGHTLY:BOOL=ON  \
.. && make -j8 install && sudo make macosx_bundle
1 Like