<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Kian,<div class=""><br class=""></div><div class="">According to one of our other developers, changing your CtoFLibraries and CtoFLibrariesUser definitions to something like this might fix the linking issue:</div><div class=""><font face="Menlo" class="">#define CtoFLibraries -L "/opt/intel/lib" -lm -lintlc -lsvml -lifcore -lifport -liomp5<br class="">#define CtoFLibrariesUser -L "/opt/intel/lib" -lm -lintlc -lsvml -lifcore -lifport<br class=""></font><br class="">I hope this helps,</div><div class="">Kevin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 7, 2017, at 11:20 AM, Kevin Hallock <<a href="mailto:hallock@ucar.edu" class="">hallock@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Kian,<div class=""><br class=""></div><div class="">“ft2build.h” is provided by XQuartz in the “/opt/X11/include/freetype2” directory, so you might need to add “-I/opt/X11/include/freetype2” to your clang command.</div><div class=""><br class=""></div><div class="">I don’t have any experience with ifort myself, and I’m not sure why it’s failing to load the appropriate dynamic libraries, but I will ask some of the other NCL developers if they’ve experienced this behavior when using ifort.</div><div class=""><br class=""></div><div class="">Kevin</div><div class=""><br class=""></div><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Jul 7, 2017, at 1:41 AM, Kian <<a href="mailto:kian-huang@qq.com" class="">kian-huang@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""></div><div class="">Hi everyone,</div><div class=""><br class=""></div><div class="">I am trying to build NCL on Mac OS with ifort, clang compilers and XQuartz library 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 class=""><br class=""></div><div class="">This is my operational system kernel information:</div><div class="">Darwin Kernel Version 16.6.0</div><div class=""><br class=""></div><div class="">The error information I met list as following:</div><div class=""><br class=""></div><div class=""><div class="">clang -O -I../../../.././include -I/opt/X11/include -DDarwin -DCTXT -DX11 -DPS -DPDF -DPIX -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -D_DARWIN_C_SOURCE -DNeedFuncProto -c -o cro_device.o cro_device.c</div><div class="">In file included from cro_device.c:26:</div><div class="">In file included from ./cro.h:147:</div><div class="">/opt/X11/include/cairo/cairo-ft.h:46:10: fatal error: 'ft2build.h' file not found</div><div class="">#include <ft2build.h></div><div class=""> ^</div><div class="">1 error generated.</div><div class="">make[5]: *** [cro_device.o] Error 1</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class=""><div class="">#define CtoFLibraries /opt/intel/lib/libifcore.a /opt/intel/lib/libsvml.a /opt/intel/lib/libimf.a /opt/intel/lib/libirc.a /opt/intel/lib/libiomp5.a</div><div class="">#define CtoFLibrariesUser /opt/intel/lib/libifcore.a /opt/intel/lib/libsvml.a /opt/intel/lib/libimf.a /opt/intel/lib/libirc.a /opt/intel/lib/libiomp5.a</div></div><div class=""><br class=""></div><div class="">But it was invalid for ifort -openmp option (Maybe change makefile setting will solve that. I have not tried it yet).</div><div class=""><div style="color:#909090;font-family:Arial Narrow;font-size:12px" class="">------------------</div><div style="font-size: 14px; font-family: Verdana;" class=""><div style="text-align: left;" class="">Kian Huang</div></div></div><div class=""> </div>_______________________________________________<br class="">ncl-install mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>