[prev in list] [next in list] [prev in thread] [next in thread] 

List:       macports-users
Subject:    Re: Is There a Port for a compiler compatible with OpenMP and Imagemagick
From:       Fred Weinhaus <fmw () alink ! net>
Date:       2017-04-26 17:24:36
Message-ID: C6F2DB79-535C-4D97-8318-24E4B2E06B8B () alink ! net
[Download RAW message or body]


> On Apr 26, 2017, at 9:13 AM, Ken Cunningham <ken.cunningham.webuse@gmail.com> \
> wrote: 
> > Ken,
> > 
> > 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. 
> > I think I can resolve what I need for my configure command if you would run
> > 
> > convert -list configure
> > 
> > The send me what it says in the section for CONFIGURE 
> > 
> > or just send me the whole thing.
> > 
> > Thanks.
> 
> Here you are. K
> 
> 
> Path: /opt/local/lib/ImageMagick-6.9.8//config-Q16/configure.xml
> 
> Name           Value
> -------------------------------------------------------------------------------
> CC             /opt/local/bin/clang-mp-3.9
> CFLAGS         -I/opt/local/include/libxml2 -I/opt/local/include/libpng16 \
> -D_THREAD_SAFE -I/opt/local/include/OpenEXR  -I/opt/local/include/openjpeg-2.1  \
> -I/opt/local/include/freetype2 -I/opt/local/include/freetype2     -fopenmp -pipe \
> -Os -arch x86_64 -Wall -mtune=westmere -fexceptions -D_FORTIFY_SOURCE=0 \
> -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 \
> CODER_PATH     /opt/local/lib/ImageMagick-6.9.8/modules-Q16/coders CONFIGURE      \
> ./configure  '--prefix=/opt/local' '--enable-shared' '--enable-static' \
> '--disable-ltdl-install' '--disable-silent-rules' '--with-frozenpaths' \
> '--with-openexr' '--disable-hdri' '--with-dps' '--with-bzlib' '--with-djvu' \
> '--with-fontconfig' '--with-gslib' '--with-jbig' '--with-jpeg' '--with-lcms' \
> '--with-openjp2' '--with-png' '--with-tiff' '--with-webp' '--with-zlib' \
> '--with-modules' '--with-xml' '--without-perl' '--without-fpx' '--without-wmf' \
> '--without-gvc' '--without-rsvg' '--without-lqr' '--without-pango' '--with-x' \
> '--with-gs-font-dir=/opt/local/share/fonts/urw-fonts' \
> 'CC=/opt/local/bin/clang-mp-3.9' 'CFLAGS=-pipe -Os -arch x86_64' \
> 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' \
> 'CPPFLAGS=-I/opt/local/include' 'CXX=/opt/local/bin/clang++-mp-3.9' 'CXXFLAGS=-pipe \
> -Os -stdlib=libc++ -arch x86_64' CONFIGURE_PATH /opt/local/etc/ImageMagick-6/
> COPYRIGHT      Copyright (C) 1999-2016 ImageMagick Studio LLC
> CPPFLAGS       -I/opt/local/include/ImageMagick-6
> CXX            /opt/local/bin/clang++-mp-3.9
> CXXFLAGS       -pipe -Os -stdlib=libc++ -arch x86_64 -D_THREAD_SAFE -pthread
> DEFS           -DHAVE_CONFIG_H
> DELEGATES      bzlib djvu mpeg fftw fontconfig freetype gslib jbig jng jpeg lcms \
> lzma openexr openjp2 png ps tiff webp x xml zlib DISTCHECK_CONFIG_FLAGS \
> 'CC=/opt/local/bin/clang-mp-3.9' 'CFLAGS=-pipe -Os -arch x86_64' \
> 'CPPFLAGS=-I/opt/local/include' 'CXX=/opt/local/bin/clang++-mp-3.9' \
> 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64'  \
> --disable-deprecated  --with-quantum-depth=16  --with-jemalloc=no  --with-umem=no  \
> --with-autotrace=no  --with-fpx=no  --with-fontpath=  \
> --with-gs-font-dir=/opt/local/share/fonts/urw-fonts  --with-gvc=no  --with-lqr=no  \
> --with-pango=no  --with-rsvg=no  --with-wmf=no  --with-perl=no  DOCUMENTATION_PATH \
> /opt/local/share/doc/ImageMagick-6 EXEC-PREFIX    /opt/local
> EXECUTABLE_PATH /opt/local/bin
> FEATURES       DPC Cipher OpenMP Modules
> FILTER_PATH    /opt/local/lib/ImageMagick-6.9.8/modules-Q16/filters
> GIT_REVISION   11445
> HOST           x86_64-apple-darwin16.5.0
> INCLUDE_PATH   /opt/local/include/ImageMagick-6
> LDFLAGS        -L/opt/local/lib -L/opt/local/lib -Wl,-headerpad_max_install_names \
> -arch x86_64  LIB_VERSION    0x698
> LIB_VERSION_NUMBER 6,9,8,3
> LIBRARY_PATH   /opt/local/lib/ImageMagick-6.9.8
> LIBS            -L/opt/local/lib -llcms2 -L/opt/local/lib -lfreetype   \
> -L/opt/local/lib -lfftw3  -L/opt/local/lib -lfontconfig -lfreetype -lXext   -lSM \
> -lICE -lX11  -lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl  -lm \
> -lgomp     NAME           ImageMagick
> PCFLAGS        -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
> PREFIX         /opt/local
> QuantumDepth   16
> RELEASE_DATE   2017-04-26
> SHARE_PATH     /opt/local/share/ImageMagick-6
> SHAREARCH_PATH /opt/local/lib/ImageMagick-6.9.8/config-Q16
> TARGET_CPU     x86_64
> TARGET_OS      darwin16.5.0
> TARGET_VENDOR  apple
> VERSION        6.9.8
> WEBSITE        http://www.imagemagick.org
> 
> Path: [built-in]
> 
> Name           Value
> -------------------------------------------------------------------------------
> FEATURES       OpenMP 
> NAME           ImageMagick
> QuantumDepth   16
> Macpro2010:~ cunningh$ 
> 
> 


Thanks very much. That gave me enough information to recompile ImageMagick from \
source to get OpenMP enabled. I did it by installing the clang-9 port and then using \
the following to compile ImageMagick from source:

./configure CC=/opt/local/bin/clang-mp-3.9 CXX=/opt/local/bin/clang++-mp-3.9 \
CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' \
--enable-openmp \
--enable-delegate-build --enable-shared --disable-static --disable-opencl \
--with-modules --with-quantum-depth=16 --without-wmf --with-rsvg \
--disable-silent-rules --disable-dependency-tracking --without-pango \
--with-lqr --with-gslib --with-gs-font-dir=/opt/local/share/ghostscript/fonts/

I really appreciate all the help you and Ryan provided. You guys are great.

Thanks again.

Fred=


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic