<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 26, 2017, at 8:01 AM, Ken Cunningham <<a href="mailto:ken.cunningham.webuse@gmail.com" class="">ken.cunningham.webuse@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">On 2017-04-25, at 8:01 PM, Ryan Schmidt wrote:<br class=""><br class=""><blockquote type="cite" class=""><br class=""><br class=""><blockquote type="cite" class="">On Apr 25, 2017, at 19:48, Ken Cunningham <<a href="mailto:ken.cunningham.webuse@gmail.com" class="">ken.cunningham.webuse@gmail.com</a>> wrote:<br class=""><br class="">sudo port -v install imagemagick configure.cppflags-append="-fopenmp" configure.compiler=macports-clang-3.9<br class=""></blockquote><br class="">You can't augment a port's variables from the command line, only override them, which isn't recommended. <br class=""></blockquote><br class="">Ah, interesting. I usually put it in the portfiles directly, but could have sworn ... <br class=""><br class=""><br class=""><br class="">Re: ImageMagick and openmp. <br class=""><br class="">When i looked at the default MacPorts version built with Sierra, indeed, no openmp support was compiled in:<br class=""><br class="">$ Magick++-config --cxxflags --cppflags --ldflags --libs<br class="">-DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/opt/local/include/ImageMagick-6<br class="">-DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/opt/local/include/ImageMagick-6<br class="">-L/opt/local/lib -lMagick++-6.Q16 -lMagickWand-6.Q16 -lMagickCore-6.Q16<br class="">-L/opt/local/lib -lMagick++-6.Q16 -lMagickWand-6.Q16 -lMagickCore-6.Q16<br class=""><br class=""><br class="">but, uninstalling it:<br class=""><br class="">$ sudo port uninstall ImageMagick @6.9.8-3_0+x11<br class=""><br class="">installing clang-3.9<br class=""><br class="">$ sudo port install clang-3.9<br class=""><br class="">and then rebuilding imagemagick against clang-3.9:<br class=""><br class="">$ sudo port -v upgrade imagemagick configure.compiler=macports-clang-3.9<br class=""><br class="">and now you do get openmp support, as you can see:<br class=""><br class="">$ Magick++-config --cxxflags --cppflags --ldflags --libs<br class="">-fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/opt/local/include/ImageMagick-6<br class="">-fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/opt/local/include/ImageMagick-6<br class="">-L/opt/local/lib -lMagick++-6.Q16 -lMagickWand-6.Q16 -lMagickCore-6.Q16<br class="">-L/opt/local/lib -lMagick++-6.Q16 -lMagickWand-6.Q16 -lMagickCore-6.Q16<br class=""><br class=""><br class="">and <br class=""><br class="">$ identify --version<br class="">Version: ImageMagick 6.9.8-3 Q16 x86_64 2017-04-26 <a href="http://www.imagemagick.org" class="">http://www.imagemagick.org</a><br class="">Copyright: © 1999-2017 ImageMagick Studio LLC<br class="">License: <a href="http://www.imagemagick.org/script/license.php" class="">http://www.imagemagick.org/script/license.php</a><br class="">Features: Cipher DPC Modules OpenMP <br class="">Delegates (built-in): bzlib djvu fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms ltdl lzma openexr png ps tiff webp x xml zlib<br class=""><br class=""><br class=""><br class="">So it appears clang-3.9 has the mojo for Imagemagick to automatically add in openmp support, but this is not the default build on Sierra. I didn't change anything in the portfile.<br class=""><br class="">Are you OK just using the macports version with openmp support? Compiling your own version, you'd build it against clang-3.9 or greater, most easily done using clang_select to specify that version of clang for you.<br class=""><br class="">Let me know if I can help further.<br class=""><br class="">Best,<br class=""><br class="">Ken</div></div></blockquote><br class=""></div><div>Ken,</div><div><br class=""></div><div>That looks very promising. I do not want to use the ImageMagick port, mainly because I need to install both IM 6 and IM 7 and there is no IM 7 port. So I would like to do my own manual install of ImageMagick using all the ports from MacPorts.</div><div><br class=""></div><div>I think I can resolve what I need for my configure command if you would run</div><div><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div>convert -list configure</div></blockquote><div><br class=""></div><div>The send me what it says in the section for <span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">CONFIGURE</span><span style="background-color: rgb(255, 255, 255);" class=""> </span></div><div><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div><span style="background-color: rgb(255, 255, 255);" class="">or just send me the whole thing.</span></div><div><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div><span style="background-color: rgb(255, 255, 255);" class="">Thanks.</span></div><br class=""></body></html>