<div><br></div><div>Hi everyone,</div><div><br></div><div>I am trying to build NCL on Mac OS with ifort, clang compilers and XQuartz library&nbsp;these days and I have some trouble. I have solved some of these problem, but still left some. Thank you for reading and hope for solutions.</div><div><br></div><div>This is my operational system kernel information:</div><div>Darwin Kernel Version 16.6.0</div><div><br></div><div>The error information I met list as following:</div><div><br></div><div><div>clang &nbsp;-O &nbsp;-I../../../.././include -I/opt/X11/include &nbsp;-DDarwin &nbsp; &nbsp;-DCTXT -DX11 -DPS -DPDF -DPIX &nbsp;-DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -D_DARWIN_C_SOURCE -DNeedFuncProto &nbsp; &nbsp;-c -o cro_device.o cro_device.c</div><div>In file included from cro_device.c:26:</div><div>In file included from ./cro.h:147:</div><div>/opt/X11/include/cairo/cairo-ft.h:46:10: fatal error: 'ft2build.h' file not found</div><div>#include &lt;ft2build.h&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^</div><div>1 error generated.</div><div>make[5]: *** [cro_device.o] Error 1</div></div><div><br></div><div><br></div><div>Previously, I met another problem. Log file (make-output) showed that the compiler can not load the ifort dynamic libraries. I solved it by using static linking by setting</div><div><br></div><div><div>#define CtoFLibraries &nbsp;/opt/intel/lib/libifcore.a &nbsp;/opt/intel/lib/libsvml.a &nbsp;/opt/intel/lib/libimf.a /opt/intel/lib/libirc.a /opt/intel/lib/libiomp5.a</div><div>#define CtoFLibrariesUser &nbsp;/opt/intel/lib/libifcore.a &nbsp;/opt/intel/lib/libsvml.a /opt/intel/lib/libimf.a /opt/intel/lib/libirc.a /opt/intel/lib/libiomp5.a</div></div><div><br></div><div>But it was&nbsp;invalid for ifort -openmp option (Maybe change makefile setting will solve that. I have not tried it yet).</div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div style="text-align: left;">Kian Huang</div></div></div><div>&nbsp;</div>