Compiling ART on OSX

Will do!

I have some rough ideas but I need to take a look at the repo before reporting.

On my side, I’ll try compiling ART (and RT) using HomeBrew.

Ok, I tried comiling ART on the Mac Mini M1.

Using the same cmake command as RT:

export PKG_CONFIG_PATH=/opt/homebrew/Cellar/libffi/3.3_2/lib/pkgconfig:/opt/homebrew/Cellar/expat/2.2.10/lib/pkgconfig && \
/opt/homebrew/Cellar/cmake/3.19.4/bin/cmake  .. -DCMAKE_BUILD_TYPE="release" \
          -DCMAKE_OSX_DEPLOYMENT_TARGET="11.1" \
          -DPROC_TARGET_NUMBER="1" \
          -DCACHE_NAME_SUFFIX="5.8-dev" \
          -DCMAKE_C_COMPILER="/opt/homebrew/Cellar/llvm/11.0.1/bin/clang" \
          -DCMAKE_CXX_COMPILER="/opt/homebrew/Cellar/llvm/11.0.1/bin/clang++" \
          -DWITH_LTO="OFF" \
                -DLENSFUNDBDIR="/Users/sguyader/.local/share/lensfun/updates/version_2" \
          -DCMAKE_BUILD_TYPE=Release \
          -DOpenMP_C_FLAGS="-fopenmp=libomp" \
          -DOpenMP_CXX_FLAGS="-fopenmp=libomp" \
          -DOpenMP_C_LIB_NAMES="libomp" \
          -DOpenMP_CXX_LIB_NAMES="libomp" \
          -DOpenMP_libomp_LIBRARY="/opt/homebrew/lib/libomp.dylib" \
          -DOpenMP_CXX_FLAGS="-Wno-pass-failed -Wno-deprecated-register -Xpreprocessor -fopenmp /opt/homebrew/lib/libomp.dylib -I/opt/homebrew/include/" \
          -DOpenMP_CXX_LIB_NAMES="libomp" \
          -DOpenMP_C_FLAGS="-Wno-pass-failed -Wno-deprecated-register -Xpreprocessor -fopenmp /opt/homebrew/lib/libomp.dylib -I/opt/homebrew/include/" \
          -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
          -DCMAKE_EXE_LINKER_FLAGS="-L/opt/homebrew/Cellar/libffi/3.3_2/lib -L/opt/homebrew/lib" \
          -DCMAKE_AR="/opt/homebrew/Cellar/llvm/11.0.1/bin/llvm-ar" \
          -DCMAKE_RANLIB="/opt/homebrew/Cellar/llvm/11.0.1/bin/llvm-ranlib"

-- The C compiler identification is Clang 11.0.1
-- The CXX compiler identification is Clang 11.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/Cellar/llvm/11.0.1/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/homebrew/Cellar/llvm/11.0.1/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_BUILD_TYPE: Release
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'gtk+-3.0>=3.16'
--   Found gtk+-3.0, version 3.24.24
-- Checking for module 'gtkmm-3.0>=3.16'
--   Found gtkmm-3.0, version 3.24.3
-- Checking for module 'glib-2.0>=2.44'
--   Found glib-2.0, version 2.66.4
-- Checking for module 'glibmm-2.4>=2.44'
--   Found glibmm-2.4, version 2.66.0
-- Checking for module 'cairomm-1.0'
--   Found cairomm-1.0, version 1.14.2
-- Checking for module 'gio-2.0>=2.44'
--   Found gio-2.0, version 2.66.4
-- Checking for module 'giomm-2.4>=2.44'
--   Found giomm-2.4, version 2.66.0
-- Checking for module 'gthread-2.0>=2.44'
--   Found gthread-2.0, version 2.66.4
-- Checking for module 'gobject-2.0>=2.44'
--   Found gobject-2.0, version 2.66.4
-- Checking for module 'sigc++-2.0>=2.3.1'
--   Found sigc++-2.0, version 2.10.6
-- Checking for module 'lensfun>=0.2'
--   Found lensfun, version 0.3.95.0
-- Checking for module 'librsvg-2.0>=2.40'
--   Found librsvg-2.0, version 2.50.3
-- Checking for module 'exiv2>=0.24'
--   Found exiv2, version 0.27.3
-- searching for library exiv2 in /opt/homebrew/Cellar/exiv2/0.27.3/lib
--   result: /opt/homebrew/Cellar/exiv2/0.27.3/lib/libexiv2.dylib
-- Checking for module 'lcms2>=2.6'
--   Found lcms2, version 2.11
-- Checking for module 'expat>=2.1'
--   Found expat, version 2.2.10
-- Checking for module 'fftw3f'
--   Found fftw3f, version 3.3.9
-- Checking for module 'libtiff-4>=4.0.4'
--   Found libtiff-4, version 4.2.0
-- Found JPEG: /opt/homebrew/lib/libjpeg.dylib (found version "90") 
-- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libz.tbd (found version "1.2.11") 
-- Found PNG: /opt/homebrew/lib/libpng.dylib (found version "1.6.37") 
-- Found OpenMP_C: -Wno-pass-failed -Wno-deprecated-register -Xpreprocessor -fopenmp /opt/homebrew/lib/libomp.dylib -I/opt/homebrew/include/ (found version "5.0") 
-- Found OpenMP_CXX: -Wno-pass-failed -Wno-deprecated-register -Xpreprocessor -fopenmp /opt/homebrew/lib/libomp.dylib -I/opt/homebrew/include/ (found version "5.0") 
-- Found OpenMP: TRUE (found version "5.0")  
-- Performing Test _fftw3f_multithread
-- Performing Test _fftw3f_multithread - Failed
-- searching for library lensfun in /opt/homebrew/Cellar/lensfun/0.3.95_3/lib
--   result: /opt/homebrew/Cellar/lensfun/0.3.95_3/lib/liblensfun.dylib
-- Performing Test LENSFUN_HAS_LOAD_DIRECTORY
-- Performing Test LENSFUN_HAS_LOAD_DIRECTORY - Success
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.19.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:426 (message):
  The package name passed to `find_package_handle_standard_args`
  (MACINTEGRATION) does not match the name of the calling package
  (MacIntegration).  This can lead to problems in calling code that expects
  `find_package` result variables (e.g., `_FOUND`) to follow a certain
  pattern.
Call Stack (most recent call first):
  cmake/modules/FindMacIntegration.cmake:27 (find_package_handle_standard_args)
  rtgui/CMakeLists.txt:176 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found MACINTEGRATION: /opt/homebrew/lib/libgtkmacintegration-gtk3.dylib  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/sguyader/PhotoApps/art/build

Compilation failed with this:

{...}
In file included from /Users/sguyader/PhotoApps/art/rtengine/badpixels.cc:20:
/Users/sguyader/PhotoApps/art/rtengine/array2D.h:233:13: error: no member named 'fill' in namespace 'std'; did you mean simply 'fill'?
            std::fill(ptr_[i], ptr_[i]+width_, val);
            ^~~~~~~~~
            fill
/Users/sguyader/PhotoApps/art/rtengine/array2D.h:227:10: note: 'fill' declared here
    void fill(const T val)
         ^
{...}
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:764:67: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
                        if ((0.5 - varwt) * (0.5 - diffwt) > 0 && fabsf(0.5 - diffwt) < fabsf(0.5 - varwt)) {
                                                                  ^
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:764:67: note: use function 'std::abs' instead
                        if ((0.5 - varwt) * (0.5 - diffwt) > 0 && fabsf(0.5 - diffwt) < fabsf(0.5 - varwt)) {
                                                                  ^~~~~
                                                                  std::abs
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:764:89: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
                        if ((0.5 - varwt) * (0.5 - diffwt) > 0 && fabsf(0.5 - diffwt) < fabsf(0.5 - varwt)) {
                                                                                        ^
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:764:89: note: use function 'std::abs' instead
                        if ((0.5 - varwt) * (0.5 - diffwt) > 0 && fabsf(0.5 - diffwt) < fabsf(0.5 - varwt)) {
                                                                                        ^~~~~
                                                                                        std::abs
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:1232:29: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
                        if (fabsf(0.5 - pmwt[indx1]) < fabsf(0.5 - pmwtalt)) {
                            ^
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:1232:29: note: use function 'std::abs' instead
                        if (fabsf(0.5 - pmwt[indx1]) < fabsf(0.5 - pmwtalt)) {
                            ^~~~~
                            std::abs
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:1232:56: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
                        if (fabsf(0.5 - pmwt[indx1]) < fabsf(0.5 - pmwtalt)) {
                                                       ^
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:1232:56: note: use function 'std::abs' instead
                        if (fabsf(0.5 - pmwt[indx1]) < fabsf(0.5 - pmwtalt)) {
                                                       ^~~~~
                                                       std::abs
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:1300:29: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
                        if (fabsf(0.5 - pmwt[indx >> 1]) < fabsf(0.5 - hvwt[indx >> 1]) ) {
                            ^
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:1300:29: note: use function 'std::abs' instead
                        if (fabsf(0.5 - pmwt[indx >> 1]) < fabsf(0.5 - hvwt[indx >> 1]) ) {
                            ^~~~~
                            std::abs
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:1300:60: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
                        if (fabsf(0.5 - pmwt[indx >> 1]) < fabsf(0.5 - hvwt[indx >> 1]) ) {
                                                           ^
/Users/sguyader/PhotoApps/art/rtengine/amaze_demosaic_RT.cc:1300:60: note: use function 'std::abs' instead
                        if (fabsf(0.5 - pmwt[indx >> 1]) < fabsf(0.5 - hvwt[indx >> 1]) ) {
                                                           ^~~~~
                                                           std::abs
/Users/sguyader/PhotoApps/art/rtengine/array2D.h:233:32: error: too many arguments to function call, expected single argument 'val', have 3 arguments
            std::fill(ptr_[i], ptr_[i]+width_, val);
                 ~~~~          ^~~~~~~~~~~~~~~~~~~
/Users/sguyader/PhotoApps/art/rtengine/array2D.h:172:13: note: in instantiation of member function 'rtengine::array2D<float>::fill' requested here
            fill(0);
            ^
/Users/sguyader/PhotoApps/art/rtengine/badpixels.cc:489:24: note: in instantiation of member function 'rtengine::array2D<float>::array2D' requested here
        array2D<float> cfablur(W, 5, ARRAY2D_CLEAR_DATA);
                       ^
/Users/sguyader/PhotoApps/art/rtengine/array2D.h:227:10: note: 'fill' declared here
    void fill(const T val)
         ^
2 errors generated.
make[2]: *** [rtengine/CMakeFiles/rtengine.dir/badpixels.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
6 warnings generated.
make[1]: *** [rtengine/CMakeFiles/rtengine.dir/all] Error 2
make: *** [all] Error 2

Looks like there’s a missing include. Sorry, I’ll fix that asap

should be fixed now

1 Like

Good news: with the latest fixes, ART compiled on MacOS 11.1 ARM, and I was able run the build from the console, open a raw file, and export it to jpeg.

Now, I got a bunch of messages in the console output:

During the compilation, I get the same warning multiple times as when building ART about OpenMP:

clang-11: warning: /opt/homebrew/lib/libomp.dylib: 'linker' input unused [-Wunused-command-line-argument]

When ART is launched and used to load and process a raw file, I get see:

(ART:2533): GLib-GObject-WARNING **: 19:01:32.175: invalid cast from 'GtkMenuBar' to 'GtkWindow'

(ART:2533): Gtk-CRITICAL **: 19:01:32.175: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed
OMP: Info #270: omp_get_nested routine deprecated, please use omp_get_max_active_levels instead.
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
OMP: Info #270: omp_get_nested routine deprecated, please use omp_get_max_active_levels instead.
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
OMP: Info #270: omp_get_nested routine deprecated, please use omp_get_max_active_levels instead.
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
/Users/sguyader/Pictures/CW6A0393-2.jpg: Empty input file
/Users/sguyader/Pictures/CW6A0393-2.jpg: Empty input file

When I close ART it doesn’t close cleanly but crashes. In the console output:

ART(2533,0x1018efd40) malloc: *** error for object 0x155822000: pointer being freed was not allocated
ART(2533,0x1018efd40) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort      ./ART

An exerpt of the rather long crash report:

Process:               ART [2475]
Path:                  /Users/USER/*/ART
Identifier:            ART
Version:               0
Code Type:             ARM-64 (Native)
Parent Process:        zsh [2470]
Responsible:           Terminal [661]
User ID:               501

Date/Time:             2021-02-02 18:55:37.346 -0400
OS Version:            macOS 11.1 (20C69)
Report Version:        12
Anonymous UUID:        645651DB-3F03-76CF-AC23-A5BF04C101EF


Time Awake Since Boot: 810 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
ART(2475,0x10597bd40) malloc: *** error for object 0x15567fc00: pointer being freed was not allocated
 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00000001a586fcec __pthread_kill + 8
1   libsystem_pthread.dylib       	0x00000001a58a0c24 pthread_kill + 292
2   libsystem_c.dylib             	0x00000001a57e8864 abort + 104
3   libsystem_malloc.dylib        	0x00000001a56d3d08 malloc_vreport + 560
4   libsystem_malloc.dylib        	0x00000001a56d7458 malloc_report + 64
5   libsystem_malloc.dylib        	0x00000001a56c6100 free + 532
6   liblensfun.2.dylib            	0x00000001071c2198 lfLens::~lfLens() + 96
7   liblensfun.2.dylib            	0x00000001071bbc2c lfDatabase::~lfDatabase() + 140
8   liblensfun.2.dylib            	0x00000001071bbcf0 lfDatabase::Destroy() + 16
9   ART                           	0x0000000105324464 rtengine::LFDatabase::~LFDatabase() + 48
10  libsystem_c.dylib             	0x00000001a57c8828 __cxa_finalize_ranges + 408
11  libsystem_c.dylib             	0x00000001a57c8ba4 exit + 60
12  libdyld.dylib                 	0x00000001a58bcf38 start + 8
{...}

Also, when I issue sudo make macosx_bundle I get this (and the bundle crashes like RT):

/opt/homebrew/Cellar/cmake/3.19.4/bin/cmake -S/Users/sguyader/PhotoApps/art -B/Users/sguyader/PhotoApps/art/build --check-build-system CMakeFiles/Makefile.cmake 0
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/Makefile2 macosx_bundle
/opt/homebrew/Cellar/cmake/3.19.4/bin/cmake -S/Users/sguyader/PhotoApps/art -B/Users/sguyader/PhotoApps/art/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/Cellar/cmake/3.19.4/bin/cmake -E cmake_progress_start /Users/sguyader/PhotoApps/art/build/CMakeFiles 0
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/Makefile2 rtdata/CMakeFiles/macosx_bundle.dir/all
/Library/Developer/CommandLineTools/usr/bin/make  -f rtdata/CMakeFiles/macosx_bundle.dir/build.make rtdata/CMakeFiles/macosx_bundle.dir/depend
cd /Users/sguyader/PhotoApps/art/build && /opt/homebrew/Cellar/cmake/3.19.4/bin/cmake -E cmake_depends "Unix Makefiles" /Users/sguyader/PhotoApps/art /Users/sguyader/PhotoApps/art/rtdata /Users/sguyader/PhotoApps/art/build /Users/sguyader/PhotoApps/art/build/rtdata /Users/sguyader/PhotoApps/art/build/rtdata/CMakeFiles/macosx_bundle.dir/DependInfo.cmake --color=
Scanning dependencies of target macosx_bundle
/Library/Developer/CommandLineTools/usr/bin/make  -f rtdata/CMakeFiles/macosx_bundle.dir/build.make rtdata/CMakeFiles/macosx_bundle.dir/build
Creating macOS bundle
DUMMY_VARIABLE= PROJECT_NAME="ART" PROJECT_SOURCE_DIR="/Users/sguyader/PhotoApps/art" CMAKE_BUILD_TYPE="Release" GTK_PREFIX="/opt/homebrew/Cellar/gtk+3/3.24.24" PROC_BIT_DEPTH=64 sh /Users/sguyader/PhotoApps/art/tools/osx/macosx_bundle.sh
PROJECT_NAME:           ART
PROJECT_VERSION:        1.7.1.91
PROJECT_SOURCE_DIR:     /Users/sguyader/PhotoApps/art
CMAKE_BUILD_TYPE:       Release
PROC_BIT_DEPTH:         64
MINIMUM_SYSTEM_VERSION: 11.1
GTK_PREFIX:             /opt/homebrew/Cellar/gtk+3/3.24.24
PWD:                    /Users/sguyader/PhotoApps/art/build
/Users/sguyader/PhotoApps/art/tools/osx/macosx_bundle.sh: line 108: cmake: command not found
/Users/sguyader/PhotoApps/art/tools/osx/macosx_bundle.sh: line 109: cmake: command not found

-- Removing old files:

-- Creating bundle container:

-- Copying release files:
ditto: Cannot get the real path for source '/local/lib/libexiv2.27.dylib'
ditto: Cannot get the real path for source '/local/share/lensfun/version_2/*'
ditto: Cannot get the real path for source '/local/lib/liblensfun.2.dylib'
ditto: Cannot get the real path for source '/local/lib/libomp.dylib'

-- Copying dependencies from /opt/homebrew/Cellar/gtk+3/3.24.24:
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libomp.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libexpat.1.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libgtkmacintegration-gtk3.4.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libfftw3f.3.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libfftw3f_omp.3.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libgiomm-2.4.1.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libgio-2.0.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libglibmm-2.4.1.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libgobject-2.0.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libglib-2.0.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libintl.8.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libsigc-2.0.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libgthread-2.0.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libgtkmm-3.0.1.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libatkmm-1.6.1.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libgdkmm-3.0.1.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libgtk-3.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libgdk-3.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libatk-1.0.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libcairo-gobject.2.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libpangomm-1.4.1.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libcairomm-1.0.1.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libpangocairo-1.0.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libpango-1.0.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libharfbuzz.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libcairo.2.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libgdk_pixbuf-2.0.0.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libjpeg.9.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/liblcms2.2.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libpng16.16.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libtiff.5.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/liblensfun.2.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/librsvg-2.2.dylib (No such file or directory)
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: ART.app/Contents/Frameworks/libexiv2.27.dylib (No such file or directory)

-- Modifying install names: ART.app/Contents/MacOS/ART-cli
   install_name_tool -change '/opt/homebrew/opt/libomp/lib/libomp.dylib' '@rpath/libomp.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/cairomm@1.14/lib/libcairomm-1.0.1.dylib' '@rpath/libcairomm-1.0.1.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/libsigc++@2/lib/libsigc-2.0.0.dylib' '@rpath/libsigc-2.0.0.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/cairo/lib/libcairo.2.dylib' '@rpath/libcairo.2.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/expat/lib/libexpat.1.dylib' '@rpath/libexpat.1.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/gtk-mac-integration/lib/libgtkmacintegration-gtk3.4.dylib' '@rpath/libgtkmacintegration-gtk3.4.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/fftw/lib/libfftw3f.3.dylib' '@rpath/libfftw3f.3.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/fftw/lib/libfftw3f_omp.3.dylib' '@rpath/libfftw3f_omp.3.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/glibmm@2.66/lib/libgiomm-2.4.1.dylib' '@rpath/libgiomm-2.4.1.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/glib/lib/libgio-2.0.0.dylib' '@rpath/libgio-2.0.0.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/glibmm@2.66/lib/libglibmm-2.4.1.dylib' '@rpath/libglibmm-2.4.1.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/glib/lib/libgobject-2.0.0.dylib' '@rpath/libgobject-2.0.0.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/glib/lib/libglib-2.0.0.dylib' '@rpath/libglib-2.0.0.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/gettext/lib/libintl.8.dylib' '@rpath/libintl.8.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/glib/lib/libgthread-2.0.0.dylib' '@rpath/libgthread-2.0.0.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/jpeg/lib/libjpeg.9.dylib' '@rpath/libjpeg.9.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/little-cms2/lib/liblcms2.2.dylib' '@rpath/liblcms2.2.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/libpng/lib/libpng16.16.dylib' '@rpath/libpng16.16.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/libtiff/lib/libtiff.5.dylib' '@rpath/libtiff.5.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/lensfun/lib/liblensfun.2.dylib' '@rpath/liblensfun.2.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/librsvg/lib/librsvg-2.2.dylib' '@rpath/librsvg-2.2.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/gdk-pixbuf/lib/libgdk_pixbuf-2.0.0.dylib' '@rpath/libgdk_pixbuf-2.0.0.dylib' 'ART.app/Contents/MacOS/ART-cli'
   install_name_tool -change '/opt/homebrew/opt/exiv2/lib/libexiv2.27.dylib' '@rpath/libexiv2.27.dylib' 'ART.app/Contents/MacOS/ART-cli'

-- Modifying install names: ART.app/Contents/MacOS/ART
   install_name_tool -change '/opt/homebrew/opt/libomp/lib/libomp.dylib' '@rpath/libomp.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/expat/lib/libexpat.1.dylib' '@rpath/libexpat.1.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/gtk-mac-integration/lib/libgtkmacintegration-gtk3.4.dylib' '@rpath/libgtkmacintegration-gtk3.4.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/fftw/lib/libfftw3f.3.dylib' '@rpath/libfftw3f.3.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/fftw/lib/libfftw3f_omp.3.dylib' '@rpath/libfftw3f_omp.3.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/glibmm@2.66/lib/libgiomm-2.4.1.dylib' '@rpath/libgiomm-2.4.1.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/glib/lib/libgio-2.0.0.dylib' '@rpath/libgio-2.0.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/glibmm@2.66/lib/libglibmm-2.4.1.dylib' '@rpath/libglibmm-2.4.1.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/glib/lib/libgobject-2.0.0.dylib' '@rpath/libgobject-2.0.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/glib/lib/libglib-2.0.0.dylib' '@rpath/libglib-2.0.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/gettext/lib/libintl.8.dylib' '@rpath/libintl.8.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/libsigc++@2/lib/libsigc-2.0.0.dylib' '@rpath/libsigc-2.0.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/glib/lib/libgthread-2.0.0.dylib' '@rpath/libgthread-2.0.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/gtkmm3/lib/libgtkmm-3.0.1.dylib' '@rpath/libgtkmm-3.0.1.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/atkmm@2.28/lib/libatkmm-1.6.1.dylib' '@rpath/libatkmm-1.6.1.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/gtkmm3/lib/libgdkmm-3.0.1.dylib' '@rpath/libgdkmm-3.0.1.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/gtk+3/lib/libgtk-3.0.dylib' '@rpath/libgtk-3.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/gtk+3/lib/libgdk-3.0.dylib' '@rpath/libgdk-3.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/atk/lib/libatk-1.0.0.dylib' '@rpath/libatk-1.0.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/cairo/lib/libcairo-gobject.2.dylib' '@rpath/libcairo-gobject.2.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/pangomm@2.46/lib/libpangomm-1.4.1.dylib' '@rpath/libpangomm-1.4.1.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/cairomm@1.14/lib/libcairomm-1.0.1.dylib' '@rpath/libcairomm-1.0.1.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/pango/lib/libpangocairo-1.0.0.dylib' '@rpath/libpangocairo-1.0.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/pango/lib/libpango-1.0.0.dylib' '@rpath/libpango-1.0.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/harfbuzz/lib/libharfbuzz.0.dylib' '@rpath/libharfbuzz.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/cairo/lib/libcairo.2.dylib' '@rpath/libcairo.2.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/gdk-pixbuf/lib/libgdk_pixbuf-2.0.0.dylib' '@rpath/libgdk_pixbuf-2.0.0.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/jpeg/lib/libjpeg.9.dylib' '@rpath/libjpeg.9.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/little-cms2/lib/liblcms2.2.dylib' '@rpath/liblcms2.2.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/libpng/lib/libpng16.16.dylib' '@rpath/libpng16.16.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/libtiff/lib/libtiff.5.dylib' '@rpath/libtiff.5.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/lensfun/lib/liblensfun.2.dylib' '@rpath/liblensfun.2.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/librsvg/lib/librsvg-2.2.dylib' '@rpath/librsvg-2.2.dylib' 'ART.app/Contents/MacOS/ART'
   install_name_tool -change '/opt/homebrew/opt/exiv2/lib/libexiv2.27.dylib' '@rpath/libexiv2.27.dylib' 'ART.app/Contents/MacOS/ART'
ditto: Cannot get the real path for source '/local/lib/libjpeg.62.dylib'
ditto: Cannot get the real path for source ''
ditto: Cannot get the real path for source '/local/lib/libz.1.dylib'
ditto: Cannot get the real path for source '/local/lib/libpng16.16.dylib'
ditto: Cannot get the real path for source '/local/lib/libtiff.5.dylib'
ditto: Cannot get the real path for source '/local/share/lensfun/version_2/*'
ditto: Cannot get the real path for source '/local/lib/liblensfun.2.dylib'
ditto: Cannot get the real path for source '/local/lib/libomp.dylib'

-- Copying configuration files from /opt/homebrew/Cellar/gtk+3/3.24.24:

-- Copying library modules from /opt/homebrew/Cellar/gtk+3/3.24.24:
ditto: Cannot get the real path for source '/opt/homebrew/Cellar/gtk+3/3.24.24/lib/gdk-pixbuf-2.0'

-- Removing static libraries and cache files:

-- Flattening the Frameworks folder
ditto: Cannot get the real path for source 'ART.app/Contents/Frameworks/gdk-pixbuf-2.0/2*/loaders/*.so'
ditto: Cannot get the real path for source 'ART.app/Contents/Frameworks/gtk-3.0/3*/immodules/*.dylib'
ditto: Cannot get the real path for source 'ART.app/Contents/Frameworks/gtk-3.0/3*/immodules/*.so'
rm: ART.app/Contents/Frameworks/gdk-pixbuf-2.0: No such file or directory

-- Build glib database:
ditto: Cannot get the real path for source '/local/share/glib-2.0/schemas'
/Users/sguyader/PhotoApps/art/tools/osx/macosx_bundle.sh: line 203: /local/bin/glib-compile-schemas: No such file or directory

-- Copy GTK+3 theme and icon resources:
ditto: Cannot get the real path for source '/local/share/themes/Mac/gtk-3.0/gtk-keys.css'
ditto: Cannot get the real path for source '/local/share/themes/Default/gtk-3.0/gtk-keys.css'

-- Copy Adwaita icons
ditto: Cannot get the real path for source '/local/share/icons/Adwaita/16x16/actions/*'
ditto: Cannot get the real path for source '/local/share/icons/Adwaita/16x16/devices/*'
ditto: Cannot get the real path for source '/local/share/icons/Adwaita/16x16/mimetypes/*'
ditto: Cannot get the real path for source '/local/share/icons/Adwaita/16x16/places/*'
ditto: Cannot get the real path for source '/local/share/icons/Adwaita/16x16/status/*'
ditto: Cannot get the real path for source '/local/share/icons/Adwaita/48x48/devices/*'
ditto: Cannot get the real path for source '/local/share/icons/Adwaita/index.theme'
/Users/sguyader/PhotoApps/art/tools/osx/macosx_bundle.sh: line 218: /local/bin/gtk-update-icon-cache: No such file or directory
ditto: Cannot get the real path for source '/local/share/icons/hicolor'

-- Build GTK3 databases:
/Users/sguyader/PhotoApps/art/tools/osx/macosx_bundle.sh: line 223: /local/bin/gdk-pixbuf-query-loaders: No such file or directory
/Users/sguyader/PhotoApps/art/tools/osx/macosx_bundle.sh: line 224: /local/bin/gtk-query-immodules-3.0: No such file or directory

-- Modifying install names: ART.app/Contents/MacOS/ART-cli

-- Modifying install names: ART.app/Contents/MacOS/ART

-- Registering @rpath in Frameworks folder:
   install_name_tool -delete_rpath /opt/local/lib 'ART.app/Contents/Frameworks/*'
error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: can't open file: ART.app/Contents/Frameworks/* (No such file or directory)
   install_name_tool -add_rpath /Applications/ART.app/Contents/Frameworks 'ART.app/Contents/Frameworks/*'
error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: can't open file: ART.app/Contents/Frameworks/* (No such file or directory)

-- Copying shared files from /opt/homebrew/Cellar/gtk+3/3.24.24:
ditto: Cannot get the real path for source '/local/share/mime'

-- Installing required application bundle files:
/Users/sguyader/PhotoApps/art/tools/osx/macosx_bundle.sh: line 262: update-mime-database: command not found

-- Registering @rpath into the executable:
   install_name_tool -add_rpath /Applications/ART.app/Contents/Frameworks 'ART.app/Contents/MacOS/bin/ART-bin'
   install_name_tool -add_rpath /Applications/ART.app/Contents/Frameworks 'ART.app/Contents/MacOS/ART-cli'

-- Modifying install names: ART.app/Contents/MacOS/ART-cli

-- Modifying install names: ART.app/Contents/MacOS/ART

-- Registering @rpath in Frameworks folder:
   install_name_tool -delete_rpath /opt/local/lib 'ART.app/Contents/Frameworks/*'
error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: can't open file: ART.app/Contents/Frameworks/* (No such file or directory)
   install_name_tool -add_rpath /Applications/ART.app/Contents/Frameworks 'ART.app/Contents/Frameworks/*'
error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: can't open file: ART.app/Contents/Frameworks/* (No such file or directory)

-- Codesigning:
/Users/sguyader/PhotoApps/art/tools/osx/macosx_bundle.sh: line 281: cmake: command not found
/Users/sguyader/PhotoApps/art/tools/osx/macosx_bundle.sh: line 296: cmake: command not found

-- Preparing disk image sources at /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/1758.gg8DdvyF:

-- Creating disk image:
.................................................................
created: /Users/sguyader/PhotoApps/art/build/ART_OSX_11.1_64_1.7.1-91-ga030cb27b.dmg

-- Zipping disk image for redistribution:
  adding: ART_OSX_11.1_64_1.7.1-91-ga030cb27b.dmg (deflated 2%)
  adding: Resources/AboutThisBuild.txt (deflated 40%)

-- Removing disk image caches:

-- Finishing build:
Script complete.
Built target macosx_bundle
/opt/homebrew/Cellar/cmake/3.19.4/bin/cmake -E cmake_progress_start /Users/sguyader/PhotoApps/art/build/CMakeFiles 0

To your cmake command add the following flag:

-DLOCAL_PREFIX:STRING="/opt"

Because the script assumes the libs are in prefix/local/lib. /opt and /usr are typical. Although it should be defaulting to /usr.

Thanks, I’m really new to MacOS. But shouldn’t this be -DLOCAL_PREFIX:STRING="/opt/homebrew/opt"? Because under /optthere’s only the single homebrew directory.

I am not sure about how brew is setting things up there. Usually you will want to use the unversioned paths for everything. As soon as you have an update it might require manually updating your commands. If you see a full version number in the paths, it could mean headache later on. The proper paths to use are package-manager agnostic, like /opt/local/lib/libomp.dylib and not something like `/mypackagemanager/whatever/3.2.3.3/whatever. This way A/RT may be built using any management scheme.

I understand that about the versioned paths. But if I look at the directories, what I see is that under /opt there’s only 1 folder: /opt/homebrew. There’s no /opt/local/lib. However ther’s a /opt/homebrew/lib, /opt/homebrew/include, /opt/homebrew/opt/share

With homebrew everything should be symlinked in /usr/local.

Should be… But actually on my system in/usr/local/ I only have 1 thing, it’s a binary in /usr/local/bin and it has nothing to do with Homebrew… No symlinks whatsoever

OK, some progress here, I found how to set it up for unversioned paths:

export PKG_CONFIG_PATH=/opt/homebrew/opt/libffi/lib/pkgconfig:/opt/homebrew/opt/expat/lib/pkgconfig && \
cmake  .. -DCMAKE_BUILD_TYPE="release" \
		-DLOCAL_PREFIX:STRING="/opt/homebrew" \
          -DCMAKE_OSX_DEPLOYMENT_TARGET="11.2" \
          -DPROC_TARGET_NUMBER="1" \
          -DCACHE_NAME_SUFFIX="5.8-dev" \
          -DCMAKE_C_COMPILER="clang" \
          -DCMAKE_CXX_COMPILER="clang++" \
          -DWITH_LTO="ON" \
		-DLENSFUNDBDIR="/Users/sguyader/.local/share/lensfun/updates/version_2" \
          -DOpenMP_C_FLAGS="-fopenmp=libomp" \
          -DOpenMP_CXX_FLAGS="-fopenmp=libomp" \
          -DOpenMP_C_LIB_NAMES="libomp" \
          -DOpenMP_CXX_LIB_NAMES="libomp" \
          -DOpenMP_libomp_LIBRARY="/opt/homebrew/lib/libomp.dylib" \
          -DOpenMP_CXX_FLAGS="-Wno-pass-failed -Wno-deprecated-register -Xpreprocessor -fopenmp /opt/homebrew/lib/libomp.dylib -I/opt/homebrew/include/" \
          -DOpenMP_CXX_LIB_NAMES="libomp" \
          -DOpenMP_C_FLAGS="-Wno-pass-failed -Wno-deprecated-register -Xpreprocessor -fopenmp /opt/homebrew/lib/libomp.dylib -I/opt/homebrew/include/" \
          -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
          -DCMAKE_EXE_LINKER_FLAGS="-L/opt/homebrew/opt/libffi/lib -L/opt/homebrew/opt/expat/lib -L/opt/homebrew/lib" \
          -DCMAKE_AR="/opt/homebrew/opt/llvm/bin/llvm-ar" \
          -DCMAKE_RANLIB="/opt/homebrew/opt/llvm/bin/llvm-ranlib"

Note that I updated my system to MacOS X 11.2 tonight, and the MacOS clang was apparently also updated to the same version as the previously Homebrew-installed clang (clang-1200.0.32.29, LLVM 10.0.0).

Now remains that libomp.dylib problem for the MacOS bundle.

It is confusing, but Apple Clang ≠ llvm-clang; it is a divergent fork. Can you provide the results of the locate libomp.dylib command on your system? TIA.

Also note the following caveat from brew doctor:

Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/usr/local).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.

PS, totally random formatting…

Also note that the deprecated gtk-mac-integration used in A/RT is in the list of bottles that wont build on arm yet.

I’ll let you know when I’m back home.

I found this: gtk-mac-integration — Homebrew Formulae
Doesn’t it mean that gtk-mac-integration can be built on ARM?

Apple Silicon support in Homebrew · Issue #10152 · Homebrew/brew · GitHub Yes it is certainly possible it works now but I have no way to test.

sguyader@MinideSebastien ~ % locate libomp.dylib

WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:

  sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.

But issuing sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist didn’t change the outcome.

So either libomp didn’t get installed or your system hasn’t yet generated the locate database. You might need to run the “daily” scripts, etc. sudo periodic daily weekly monthly.