FFTW delegate not recognized by configure

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
friolator
Posts: 23
Joined: 2014-02-18T15:57:30-07:00
Authentication code: 6789

FFTW delegate not recognized by configure

Post by friolator »

ImageMagick-7.0.4-3
fftw-3.3.5

I'm installing from source and having the same issue on both Mac OS X 10.8.5 and CentOS 7. I'm able to install ImageMagick but for some reason it's not recognizing fftw as a delegate. here's what I'm doing:

1) install fftw from source:
./configure
make
sudo make install

That seems to work fine, and the libs are in /usr/local/lib/
-rw-r--r-- 1 root wheel 1553352 Jan 12 08:35 libfftw3.a
-rwxr-xr-x 1 root wheel 891 Jan 12 08:35 libfftw3.la

2) install ImageMagick from source:
./configure --with-fftw=yes

Result of the ./configure output is:

FFTW --with-fftw=yes no

Though it did pick up libtiff automatically with no issues, which I had already installed.

If I continue on to make/sudo make install, I get a working ImageMagick, with no fftw delegates.

>convert
grd-imac:ImageMagick-7.0.4-3 perry$ convert
Version: ImageMagick 7.0.4-3 Q16 x86_64 2017-01-12 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI
Delegates (built-in): bzlib tiff x


Am I missing something obvious here?

Thanks!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: FFTW delegate not recognized by configure

Post by magick »

Under CentOS 7, do you have EPEL installed? If not, install it and type:

Code: Select all

yum install fftw2-devel
Now type

Code: Select all

cd ImageMagick-7.0.4-3
./configure
make
make install
magick --list configure | grep DELEGATES
You should see fftw associated with the DELEGATES tag confirming the FFTW delegate library is utilized by ImageMagick.
friolator
Posts: 23
Joined: 2014-02-18T15:57:30-07:00
Authentication code: 6789

Re: FFTW delegate not recognized by configure

Post by friolator »

Ok, on the CentOS box, EPEL is installed. I've installed fftw2-devel with yum as described, and ran configure. The result is the same as above:

Code: Select all

FFTW --with-fftw=yes	no
When I make/make install and then run convert, it's not listed as a delegate either.
friolator
Posts: 23
Joined: 2014-02-18T15:57:30-07:00
Authentication code: 6789

Re: FFTW delegate not recognized by configure

Post by friolator »

I was finally able to get it to work by using yum to install fftw3-devel, not fftw2-devel as described above.

...there go 5 hours I'll never get back!

Thanks for the help. Now to figure out how to make this work on the mac. I'm not sure I understand what the yum version is doing differently than I am, installing from source. On the mac, I don't use the package tools like macports, but if I have to I suppose that's an option.
Post Reply