I'm configuring ImageMagick with:
Code: Select all
./configure --enable-hdri --with-quantum-depth=32 --with-magick-plus-plus=no CFLAGS=-DMAGICKCORE_EXCLUDE_DEPRECATED=1 CXXFLAGS=-DMAGICKCORE_EXCLUDE_DEPRECATED=1
Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.8.9
CC = gcc -std=gnu99 -std=gnu99
CFLAGS = -I/usr/include/freetype2 -fopenmp -DMAGICKCORE_EXCLUDE_DEPRECATED=1 -Wall -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=32
CPPFLAGS = -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=32 -I/usr/include/libxml2
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS =
LIBS =
CXX = g++
CXXFLAGS = -DMAGICKCORE_EXCLUDE_DEPRECATED=1 -pthread
FEATURES = DPC HDRI OpenMP
DELEGATES = bzlib mpeg fftw freetype jng jpeg png ps xml zlib
Running Wand-config to get the cflags
Code: Select all
> /usr/local/bin/Wand-config --cflags
-fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=32 -I/usr/local/include/ImageMagick-6
I have a report from a Windows user, that for them the MAGICKCORE_EXCLUDE_DEPRECATED is set in the file "include/magick/magick-baseconfig.h" However it does not appear to be set in the file generated for the Centos build.
*Edit*
Someone suggested I try "--enable-deprecated". That does seem to set the define in magick-baseconfig.h but the value isn't set available through the Wand-config program and it's not currently listed as an option on the Advanced Unix installation page - http://www.imagemagick.org/script/advan ... lation.php
Is this just a documentation needs updating issue?
cheers
Dan