Compiling ART on OSX

Should be fixed now, thanks

Thanks so much for fixing that! It worked. Unfortunately, I get another error at a later stage during compiling. Any idea what his going on? It seems the path to ar is set wrong (/opt/local/bin/ar does not exist, should be /usr/bin/ar). I tried to add the following for cmake:

-DCMAKE_AR=“/usr/bin/ar” -DCMAKE_RANLIB=“/usr/bin/ranlib”

But cmake output reports this:

– Binutils version detected as less than 2.29 - setting CMake parameters to enable LTO linking:
CMAKE_AR=“/opt/local/bin/ar”
CMAKE_RANLIB=“/opt/local/bin/ranlib”

Should I with LTO to OFF? Does that hurt?

Original error message:

[ 44%] Linking CXX static library librtengine.a

cd /Users/myname/programs/code-art/build/rtengine && /usr/local/Cellar/cmake/3.19.1/bin/cmake -P CMakeFiles/rtengine.dir/cmake_clean_target.cmake

cd /Users/myname/programs/code-art/build/rtengine && /usr/local/Cellar/cmake/3.19.1/bin/cmake -E cmake_link_script CMakeFiles/rtengine.dir/link.txt --verbose=1

/opt/local/bin/ar qc librtengine.a CMakeFiles/rtengine.dir/badpixels.cc.o CMakeFiles/rtengine.dir/CA_correct_RT.cc.o CMakeFiles/rtengine.dir/FTblockDN.cc.o CMakeFiles/rtengine.dir/PF_correct_RT.cc.o CMakeFiles/rtengine.dir/alpha.cc.o CMakeFiles/rtengine.dir/ahd_demosaic_RT.cc.o CMakeFiles/rtengine.dir/amaze_demosaic_RT.cc.o CMakeFiles/rtengine.dir/cJSON.c.o CMakeFiles/rtengine.dir/calc_distort.cc.o CMakeFiles/rtengine.dir/camconst.cc.o CMakeFiles/rtengine.dir/cfa_linedn_RT.cc.o CMakeFiles/rtengine.dir/ciecam02.cc.o CMakeFiles/rtengine.dir/clutstore.cc.o CMakeFiles/rtengine.dir/color.cc.o CMakeFiles/rtengine.dir/colortemp.cc.o CMakeFiles/rtengine.dir/coord.cc.o CMakeFiles/rtengine.dir/cplx_wavelet_dec.cc.o CMakeFiles/rtengine.dir/curves.cc.o CMakeFiles/rtengine.dir/dcp.cc.o CMakeFiles/rtengine.dir/dcraw.cc.o CMakeFiles/rtengine.dir/dcrop.cc.o CMakeFiles/rtengine.dir/demosaic_algos.cc.o CMakeFiles/rtengine.dir/dfmanager.cc.o CMakeFiles/rtengine.dir/diagonalcurves.cc.o CMakeFiles/rtengine.dir/dual_demosaic_RT.cc.o CMakeFiles/rtengine.dir/dynamicprofile.cc.o CMakeFiles/rtengine.dir/eahd_demosaic.cc.o CMakeFiles/rtengine.dir/fast_demo.cc.o CMakeFiles/rtengine.dir/ffmanager.cc.o CMakeFiles/rtengine.dir/flatcurves.cc.o CMakeFiles/rtengine.dir/gauss.cc.o CMakeFiles/rtengine.dir/green_equil_RT.cc.o CMakeFiles/rtengine.dir/hilite_recon.cc.o CMakeFiles/rtengine.dir/hphd_demosaic_RT.cc.o CMakeFiles/rtengine.dir/iccjpeg.cc.o CMakeFiles/rtengine.dir/iccstore.cc.o CMakeFiles/rtengine.dir/iimage.cc.o CMakeFiles/rtengine.dir/image16.cc.o CMakeFiles/rtengine.dir/image8.cc.o CMakeFiles/rtengine.dir/imagedata.cc.o CMakeFiles/rtengine.dir/imagedimensions.cc.o CMakeFiles/rtengine.dir/imagefloat.cc.o CMakeFiles/rtengine.dir/imageio.cc.o CMakeFiles/rtengine.dir/improccoordinator.cc.o CMakeFiles/rtengine.dir/improcfun.cc.o CMakeFiles/rtengine.dir/impulse_denoise.cc.o CMakeFiles/rtengine.dir/init.cc.o CMakeFiles/rtengine.dir/iplab2rgb.cc.o CMakeFiles/rtengine.dir/ipresize.cc.o CMakeFiles/rtengine.dir/ipsharpen.cc.o CMakeFiles/rtengine.dir/iptransform.cc.o CMakeFiles/rtengine.dir/rtjpeg.cc.o CMakeFiles/rtengine.dir/klt/convolve.cc.o CMakeFiles/rtengine.dir/klt/error.cc.o CMakeFiles/rtengine.dir/klt/klt.cc.o CMakeFiles/rtengine.dir/klt/klt_util.cc.o CMakeFiles/rtengine.dir/klt/pnmio.cc.o CMakeFiles/rtengine.dir/klt/pyramid.cc.o CMakeFiles/rtengine.dir/klt/selectGoodFeatures.cc.o CMakeFiles/rtengine.dir/klt/storeFeatures.cc.o CMakeFiles/rtengine.dir/klt/trackFeatures.cc.o CMakeFiles/rtengine.dir/klt/writeFeatures.cc.o CMakeFiles/rtengine.dir/labimage.cc.o CMakeFiles/rtengine.dir/lcp.cc.o CMakeFiles/rtengine.dir/lmmse_demosaic.cc.o CMakeFiles/rtengine.dir/loadinitial.cc.o CMakeFiles/rtengine.dir/myfile.cc.o CMakeFiles/rtengine.dir/panasonic_decoders.cc.o CMakeFiles/rtengine.dir/pipettebuffer.cc.o CMakeFiles/rtengine.dir/pixelshift.cc.o CMakeFiles/rtengine.dir/previewimage.cc.o CMakeFiles/rtengine.dir/processingjob.cc.o CMakeFiles/rtengine.dir/procparams.cc.o CMakeFiles/rtengine.dir/profilestore.cc.o CMakeFiles/rtengine.dir/rawimage.cc.o CMakeFiles/rtengine.dir/rawimagesource.cc.o CMakeFiles/rtengine.dir/rcd_demosaic.cc.o CMakeFiles/rtengine.dir/refreshmap.cc.o CMakeFiles/rtengine.dir/rt_algo.cc.o CMakeFiles/rtengine.dir/rt_polygon.cc.o CMakeFiles/rtengine.dir/rtthumbnail.cc.o CMakeFiles/rtengine.dir/simpleprocess.cc.o CMakeFiles/rtengine.dir/ipspot.cc.o CMakeFiles/rtengine.dir/slicer.cc.o CMakeFiles/rtengine.dir/stdimagesource.cc.o CMakeFiles/rtengine.dir/utils.cc.o CMakeFiles/rtengine.dir/rtlensfun.cc.o CMakeFiles/rtengine.dir/tmo_fattal02.cc.o CMakeFiles/rtengine.dir/iplocalcontrast.cc.o CMakeFiles/rtengine.dir/histmatching.cc.o CMakeFiles/rtengine.dir/pdaflinesfilter.cc.o CMakeFiles/rtengine.dir/gamutwarning.cc.o CMakeFiles/rtengine.dir/iptoneequalizer.cc.o CMakeFiles/rtengine.dir/ipsoftlight.cc.o CMakeFiles/rtengine.dir/xtrans_demosaic.cc.o CMakeFiles/rtengine.dir/vng4_demosaic_RT.cc.o CMakeFiles/rtengine.dir/guidedfilter.cc.o CMakeFiles/rtengine.dir/ipdehaze.cc.o CMakeFiles/rtengine.dir/ipcolorcorrection.cc.o CMakeFiles/rtengine.dir/lj92.c.o CMakeFiles/rtengine.dir/ipsmoothing.cc.o CMakeFiles/rtengine.dir/iplogenc.cc.o CMakeFiles/rtengine.dir/labmasks.cc.o CMakeFiles/rtengine.dir/ipgrain.cc.o CMakeFiles/rtengine.dir/ipdenoise.cc.o CMakeFiles/rtengine.dir/iptextureboost.cc.o CMakeFiles/rtengine.dir/metadata.cc.o CMakeFiles/rtengine.dir/iplabadjustments.cc.o CMakeFiles/rtengine.dir/perspectivecorrection.cc.o CMakeFiles/rtengine.dir/iphsl.cc.o CMakeFiles/rtengine.dir/ipchmixer.cc.o CMakeFiles/rtengine.dir/ipexposure.cc.o CMakeFiles/rtengine.dir/iprgbcurves.cc.o CMakeFiles/rtengine.dir/ipbw.cc.o CMakeFiles/rtengine.dir/ipsaturation.cc.o CMakeFiles/rtengine.dir/ipfilmsim.cc.o CMakeFiles/rtengine.dir/iptonecurve.cc.o CMakeFiles/rtengine.dir/deconvautoradius.cc.o CMakeFiles/rtengine.dir/filmnegativeproc.cc.o CMakeFiles/rtengine.dir/filmnegativethumb.cc.o CMakeFiles/rtengine.dir/canon_cr3_decoder.cc.o CMakeFiles/rtengine.dir/pyramids.cc.o CMakeFiles/rtengine.dir/rawimage_gainmap.cc.o CMakeFiles/rtengine.dir/subprocess.cc.o CMakeFiles/rtengine.dir/bayer_bilinear_demosaic.cc.o CMakeFiles/rtengine.dir/gainmap.cc.o CMakeFiles/rtengine.dir/base64.cc.o CMakeFiles/rtengine.dir/imgiomanager.cc.o

Error running link command: No such file or directory

make[2]: *** [rtengine/librtengine.a] Error 2

make[1]: *** [rtengine/CMakeFiles/rtengine.dir/all] Error 2

make: *** [all] Error 2

The following cmake command worked, and I am able to get an executable. Unfortunately, when I move it to /Applications and run it, the executable crashes. I experience the same issue with compiling RT as reported here. Really puzzled why I am able to finish the compiling process, but end up with a faulty executable? Any ideas?

I use the following commands:

cmake … -DCMAKE_BUILD_TYPE=“release” -DPROC_TARGET_NUMBER=“2” -DCACHE_NAME_SUFFIX=“5.8-dev” -DCMAKE_C_COMPILER=“clang” -DCMAKE_CXX_COMPILER=“clang++” -DWITH_LTO=“OFF” -DLENSFUNDBDIR=“/Applications/RawTherapee.app/Contents/Resources/share/lensfun” -DOpenMP_C_FLAGS=-fopenmp=libomp -DOpenMP_CXX_FLAGS=-fopenmp=libomp -DOpenMP_C_LIB_NAMES=“libomp” -DOpenMP_CXX_LIB_NAMES=“libomp” -DOpenMP_libomp_LIBRARY=“/usr/local/lib/libomp.dylib” -DOpenMP_CXX_FLAGS=“-Wno-pass-failed -Wno-deprecated-register -Xpreprocessor -fopenmp /usr/local/lib/libomp.dylib -I/usr/local/include” -DOpenMP_CXX_LIB_NAMES=“libomp” -DOpenMP_C_FLAGS=“-Wno-pass-failed -Wno-deprecated-register -Xpreprocessor -fopenmp /usr/local/lib/libomp.dylib -I/usr/local/include” -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXE_LINKER_FLAGS=“-L/usr/local/opt/libffi/lib -L/usr/local/lib” -DCMAKE_AR=“/usr/bin/ar” -DCMAKE_RANLIB=“/usr/bin/ranlib” -DCMAKE_OSX_DEPLOYMENT_TARGET=“10.15”

make -j$(sysctl -n hw.ncpu) install

sudo make macosx_bundle

Unfortunately I don’t have access to osx, so I won’t be able to help… :frowning:

1 Like

Please include a crash report.

Hi Hiram,

Thanks for getting back to me. Here is the crash report:

EXECRASH.txt (77.8 KB)

Other outputs:

CMAKE.txt (4.7 KB)
MAKE.txt (987.5 KB)
BUNDLE.txt (17.6 KB)

Hope this helps you getting some pointers to what could be wrong, as this happens with both RT and ART.

I tried to compile for generic processor, but same thing happens. Did get some errors during sudo make macosx_bundle. Same happens when I use `-DPROC_TARGET_NUMBER=“1” instead of “2”, but they aren’t listed in the BUNDLE.txt in the previous reply:

BUNDLE_ERRORS.txt (132.6 KB)

Hi, I just got a new Mac mini (M1 Silicon) and I wouldn’t mind helping for OS X compilation.
For information, I just installed the official RT 5.8 Mac Os build and, while it’s not blazingly fast, at least it works and doesn’t crash.
Is there any pointer as to how what steps I should follow? I’m brand new with Mac OS.

That would be great!
I can’t be of any help unfortunately, but maybe @HIRAM has some tips?

I’ve tested the ART v 1.5 build for OSX knot for Big Sur), and placed it in the Applications directory. I also had to force MacOS to allow running.
With those steps ART runs almost fine, except that it doesn’t show any file in the file browser. But if I right click on an image in the Mac OS finder and ask it to open with ART, then I can process and export the file.

An addition to my post above: when an image is exported in a folder, then the images become visible in ART’s file browser. Quite strange…

For information, to allow running ART as it is an unsigned application, I ran this command in the Applications folder:

sudo xattr -rd com.apple.quarantine art.app

Hi Sebastien, if you collect more tips and/or manage to make more progress please let me know, it would be good to have this info in the wiki

I’m not sure about installing and running both ART and RT on the same Mac. The Info.plists are having some overlapping data which could definitely lead to some undefined results.

Hi, do you have any hints on what should be changed on the ART side to avoid the clash? Thanks!

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