I have an user who would like to build darktable master on Mac OS but doesn’t find a comprehensive list of commands and operations to do so. I have never used Mac OS myself so I’m of little help.
I know @MStraeten builds on Win/Mac fluently, would you mind posting a short guide to get him started ? Thanks !
I didnt use homebrew to build darktable so i doubt i can give any qualified help … and even worse: i’m lost in space if the build environment is not bulletproof
I’m using the instructions valid for macports - i just followed the steps and it worked fine for me.
Btw: The macports way uses the apple system compiler
I’m having problems generating introspections from current master:
[ 60%] Generating introspection_levels.c
cd /tmp/darktable-20200629-29562-ek30c2/tools/introspection && /usr/bin/perl /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl /tmp/darktable-20200629-29562-ek30c2/src/iop/../ /tmp/darktable-20200629-29562-ek30c2/src/iop/levels.c /tmp/darktable-20200629-29562-ek30c2/build/src/iop/introspection_levels.c
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}{raw"
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}}"
Compilation failed in require at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
BEGIN failed--compilation aborted at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}{raw"
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}}"
Compilation failed in require at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
BEGIN failed--compilation aborted at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}{raw"
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}}"
Compilation failed in require at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
BEGIN failed--compilation aborted at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}{raw"
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}}"
Compilation failed in require at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
BEGIN failed--compilation aborted at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}{raw"
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}}"
Compilation failed in require at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
BEGIN failed--compilation aborted at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}{raw"
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}}"
Compilation failed in require at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
BEGIN failed--compilation aborted at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}{raw"
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}}"
Compilation failed in require at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
BEGIN failed--compilation aborted at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}{raw"
syntax error at /private/tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pm line 74, near "}}"
Compilation failed in require at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
BEGIN failed--compilation aborted at /tmp/darktable-20200629-29562-ek30c2/tools/introspection/parser.pl line 31.
make[2]: make[2]: *** [src/iop/introspection_negadoctor.c] Error 255
make[2]: *** [src/iop/introspection_toneequal.c] Error 255
*** [src/iop/introspection_lut3d.c] Error 255
make[2]: *** [src/iop/introspection_denoiseprofile.c] Error 255
make[2]: *** [src/iop/introspection_levels.c] Error 255
make[2]: *** [src/iop/introspection_filmic.c] Error 255
make[2]: *** [src/iop/introspection_hazeremoval.c] Error 255
make[1]: *** [src/iop/CMakeFiles/lut3d.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [src/iop/CMakeFiles/denoiseprofile.dir/all] Error 2
make[1]: *** [src/iop/CMakeFiles/levels.dir/all] Error 2
make[1]: *** [src/iop/CMakeFiles/toneequal.dir/all] Error 2
make[2]: *** [src/iop/introspection_finalscale.c] Error 255make[1]:
*** [src/iop/CMakeFiles/negadoctor.dir/all] Error 2
make[1]: *** [src/iop/CMakeFiles/hazeremoval.dir/all] Error 2
make[1]: *** [src/iop/CMakeFiles/filmic.dir/all] Error 2
make[1]: *** [src/iop/CMakeFiles/finalscale.dir/all] Error 2
make: *** [all] Error 2
Now, it’s possible to deploy latest commit (head) or 3.0.2 easily.
I’ll document how to specify branches and commits by hand(FAQ — Homebrew Documentation), and later I’ll try to make it with arguments if it worth the effort.