title: Magick: no decode delegate for this image format `PNG' (using FFTW and Magick++)
body: <p>I tried to get FFTW and ImageMagick installed in remote server which I have <strong>NO</strong> root access. I reference <a href="https://unix.stackexchange.com/questions/2117/install-development-files-locally-to-build-on-system-without-root-access">this post</a> and add following lines to my <code>bashrc</code>.  </p>
  
  <pre><code>export PATH=$PATH:~/usr/bin  
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/usr/lib  
  export C_INCLUDE_PATH=$C_INCLUDE_PATH:~/usr/include  
  export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:~/usr/include
  export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:~/usr/lib/pkgconfig
  </code></pre>
  
  <p>For <strong>FFTW</strong> installation, I ran command </p>
  
  <p><code>./configure --prefix=/home/foo/usr --enable-openmp</code> <code>make</code> <code>make install</code></p>
  
  <p>For <strong>libpng</strong> and <strong>ImageMagick</strong>, I ran command</p>
  
  <p><code>./configure --prefix=/home/foo/usr</code> <code>make</code> <code>make install</code></p>
  
  <p>To compile,</p>
  
  <p><code>g++ main.cpp -o main 'Magick++-config --cppflags --cxxflags --ldflags --libs' 'pkg-config fftw3 --libs' -Wall</code></p>
  
  <p>Compilation is succeed but following error appear when trying to run the program</p>
  
  <p><code>terminate called after throwing an instance of 'Magick::ErrorMissingDelegate'
    what():  Magick: no decode delegate for this image format PNG' @ error/constitute.c/ReadImage/501</code></p>
  
  <p>I got <code>DELEGATES bzlib djvu fftw fontconfig freetype jbig jpeg jng jp2 lcms2 lqr lzma openexr pango png rsvg tiff x11 xml wmf zlib</code> when i ran <code>convert -list configure</code></p>
  
  <p>Any one can help me with this?</p>
  
  <p>Thank you!</p>